Skip to content

Commit

Permalink
👷🚀 fix zap usdc decimals + deploy test engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Flocqst committed Nov 22, 2024
1 parent ed7b9bc commit 70eb5e0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions deployments/Base.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"MulticallerWithSender": "0x45316C04257bA9bd8CA00587Fe74eCD74938C3a2",
"Zap": "0xaEd5977ed65d340b4B8e58Ec3EC3b04b19308f21"
},
"UnwindUSDC Fix": {
"EngineImplementation": "0x2d77EA3d3D7dc5D1F337b2c928Bf37ba465155e9",
"EngineProxy": "0x15Dd9d58F0b0A1b90CD6bc24C89625B8f5199699",
"MulticallerWithSender": "0x8bbbF9d71536A2f4cBb69faAEb5BF66867da60F9",
"Zap": "0x74D3dD7736fc57975B1b921286872ad5CD5e1715"
"Unwind USDC": {
"EngineImplementation": "0x48102a5ad542A676f1373F9cb48A1A0d9B32239D",
"EngineProxy": "0xa5D8b733108D798d8faAf78eE1CaF9fE335cE233",
"MulticallerWithSender": "0xabcA02D1B960399D7D65EBF4047E80391af5d6A2",
"Zap": "0x64b6Ae998Fbba6d24dD7a2469842119A014835CD"
}
}
2 changes: 1 addition & 1 deletion script/utils/parameters/BaseParameters.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ contract BaseParameters {
// https://usecannon.com/packages/synthetix-spot-market/3.3.5/84531-andromeda
uint128 public constant SUSDC_SPOT_MARKET_ID = 1;

address public constant ZAP = 0x74D3dD7736fc57975B1b921286872ad5CD5e1715;
address public constant ZAP = 0x64b6Ae998Fbba6d24dD7a2469842119A014835CD;
}
2 changes: 1 addition & 1 deletion src/utils/MulticallerWithSender.sol
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ contract MulticallerWithSender {
if iszero(
call(
gas(), // Remaining gas.
0x15Dd9d58F0b0A1b90CD6bc24C89625B8f5199699, // Engine Proxy address.
0xa5D8b733108D798d8faAf78eE1CaF9fE335cE233, // Engine Proxy address.
calldataload(values.offset), // ETH to send.
memPtr, // Start of input calldata in memory.
calldataload(o), // Size of input calldata.
Expand Down
2 changes: 1 addition & 1 deletion src/utils/zap/Zap.sol
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ contract Zap is Reentrancy, Errors, Flush(msg.sender) {
_withdraw(_collateralId, _collateralAmount, _accountId);

if (_collateral == USDC) {
unwound = _zapOut(_collateralAmount, _collateralAmount);
unwound = _zapOut(_collateralAmount, _collateralAmount / 1e12);
} else {
// unwrap withdrawn synthetix perp position collateral;
// i.e., sETH -> WETH, sUSDe -> USDe, sUSDC -> USDC (...)
Expand Down

0 comments on commit 70eb5e0

Please sign in to comment.