Merge pull request #211 from Instadapp/lite-connector-quick-fix

Lite connector fix
This commit is contained in:
Thrilok kumar 2022-04-27 18:49:34 +05:30 committed by GitHub
commit 3cd689a12b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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