Skip to content

Commit

Permalink
Add usdc to allowedSafeTransferAssets in SwapOperator
Browse files Browse the repository at this point in the history
  • Loading branch information
MilGard91 authored and roxdanila committed May 22, 2024
1 parent 9f9cb74 commit 6b1fee9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/modules/capital/SwapOperator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ contract SwapOperator is ISwapOperator {
address _enzymeV4VaultProxyAddress,
address _safe,
address _dai,
address _usdc,
IEnzymeFundValueCalculatorRouter _enzymeFundValueCalculatorRouter,
uint _minPoolEth
) {
Expand All @@ -97,6 +98,7 @@ contract SwapOperator is ISwapOperator {
minPoolEth = _minPoolEth;
safe = _safe;
allowedSafeTransferAssets[_dai] = true;
allowedSafeTransferAssets[_usdc] = true;
allowedSafeTransferAssets[ETH] = true;
}

Expand Down
1 change: 1 addition & 0 deletions test/fork/cover-re.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ describe('coverRe', function () {
EnzymeAdress.ENZYMEV4_VAULT_PROXY_ADDRESS,
GNOSIS_SAFE_ADDRESS, // _safe
Address.DAI_ADDRESS, // _dai
Address.USDC_ADDRESS, // _usdc
EnzymeAdress.ENZYME_FUND_VALUE_CALCULATOR_ROUTER,
0, // Min Pool ETH
]);
Expand Down
1 change: 1 addition & 0 deletions test/integration/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ async function setup() {
AddressZero, // _enzymeV4VaultProxyAddress
AddressZero, // _safe
dai.address, // _dai
usdc.address, // _usdc
AddressZero, // _enzymeFundValueCalculatorRouter
'0',
]);
Expand Down
1 change: 1 addition & 0 deletions test/unit/SwapOperator/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ async function setup() {
enzymeV4Vault.address,
await owner.getAddress(), // _safe
dai.address,
usdc.address,
enzymeFundValueCalculatorRouter.address,
parseEther('1'),
);
Expand Down

0 comments on commit 6b1fee9

Please sign in to comment.