import-fix

This commit is contained in:
Richa-iitr 2022-09-07 22:28:41 +05:30
parent 5a53219cb5
commit da1ffbb285
2 changed files with 3 additions and 3 deletions

View File

@ -811,7 +811,7 @@ abstract contract CompoundV3Resolver is Events, Helpers {
address token_ = token == ethAddr ? wethAddr : token;
amt_ = amt_ == uint256(-1) ? _getAccountSupplyBalanceOfAsset(address(this), market, token) : amt_;
amt_ = amt_ == uint256(-1) ? _getAccountSupplyBalanceOfAsset(address(this), market, token_) : amt_;
CometInterface(market).transferAssetFrom(address(this), dest, token_, amt_);
@ -853,7 +853,7 @@ abstract contract CompoundV3Resolver is Events, Helpers {
address token_ = token == ethAddr ? wethAddr : token;
amt_ = amt_ == uint256(-1) ? _getAccountSupplyBalanceOfAsset(src, market, token) : amt_;
amt_ = amt_ == uint256(-1) ? _getAccountSupplyBalanceOfAsset(src, market, token_) : amt_;
CometInterface(market).transferAssetFrom(src, dest, token_, amt_);

View File

@ -344,7 +344,7 @@ describe("Import Compound v3 Position", function () {
{
connector: "COMPOUND-V3-X",
method: "transferAssetOnBehalf",
args: [market, tokens.weth.address, wallet.address, dsaWallet0.address, ethers.constants.MaxUint256, 0, 0]
args: [market, tokens.eth.address, wallet.address, dsaWallet0.address, ethers.constants.MaxUint256, 0, 0]
},
{
connector: "COMPOUND-V3-X",