mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Aave's calculation is messing with token's amt
This commit is contained in:
parent
6aa6c4ea7e
commit
450766b0da
|
@ -124,7 +124,7 @@ abstract contract InstaLiteConnector is Events, Basic {
|
|||
|
||||
uint finalBal = astethToken.balanceOf(address(this));
|
||||
|
||||
require(amt <= (finalBal - initialBal), "lack-of-steth");
|
||||
require(amt <= (1e9 + finalBal - initialBal), "lack-of-steth");
|
||||
|
||||
setUint(setId, _amt);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user