mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
import-fix
This commit is contained in:
parent
5a53219cb5
commit
da1ffbb285
|
@ -811,7 +811,7 @@ abstract contract CompoundV3Resolver is Events, Helpers {
|
||||||
|
|
||||||
address token_ = token == ethAddr ? wethAddr : token;
|
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_);
|
CometInterface(market).transferAssetFrom(address(this), dest, token_, amt_);
|
||||||
|
|
||||||
|
@ -853,7 +853,7 @@ abstract contract CompoundV3Resolver is Events, Helpers {
|
||||||
|
|
||||||
address token_ = token == ethAddr ? wethAddr : token;
|
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_);
|
CometInterface(market).transferAssetFrom(src, dest, token_, amt_);
|
||||||
|
|
||||||
|
|
|
@ -344,7 +344,7 @@ describe("Import Compound v3 Position", function () {
|
||||||
{
|
{
|
||||||
connector: "COMPOUND-V3-X",
|
connector: "COMPOUND-V3-X",
|
||||||
method: "transferAssetOnBehalf",
|
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",
|
connector: "COMPOUND-V3-X",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user