mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
errors fixes
This commit is contained in:
parent
c0ea8a5523
commit
866e3456e7
|
@ -189,7 +189,8 @@ abstract contract Helpers is DSMath, Basic {
|
|||
}
|
||||
amt = bal_ < allowance_ ? bal_ : allowance_;
|
||||
}
|
||||
convertEthToWeth(isEth, TokenInterface(token), amt);
|
||||
if (src == address(this))
|
||||
convertEthToWeth(isEth, TokenInterface(token), amt);
|
||||
} else {
|
||||
if (amt == uint256(-1)) {
|
||||
uint256 allowance_ = TokenInterface(token).allowance(
|
||||
|
|
|
@ -481,9 +481,7 @@ abstract contract CompoundV3Resolver is Events, Helpers {
|
|||
}
|
||||
|
||||
convertEthToWeth(isEth, tokenContract, amt_);
|
||||
|
||||
approve(tokenContract, market, amt_);
|
||||
|
||||
CometInterface(market).supply(token_, amt_);
|
||||
|
||||
setUint(setId, amt_);
|
||||
|
|
Loading…
Reference in New Issue
Block a user