Aave's calculation is messing with token's amt

This commit is contained in:
Samyak Jain 2022-04-26 22:39:51 +04:00
parent 6aa6c4ea7e
commit 450766b0da

View File

@ -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);