fixing another withdraw amt balanceOf issue

This commit is contained in:
Lecky Lao 2020-08-20 23:01:45 +10:00
parent 8518f72e37
commit a2b929a794

View File

@ -137,7 +137,7 @@ contract CurveGauge is GaugeHelper {
TokenInterface crv_token = TokenInterface(address(gauge.crv_token()));
Balances memory balances;
_amt = _amt == uint(-1) ? TokenInterface(address(gauge.lp_token())).balanceOf(address(this)) : _amt;
_amt = _amt == uint(-1) ? gauge.balanceOf(address(this)) : _amt;
balances.intialCRVBal = crv_token.balanceOf(address(this));
IMintor(getCurveMintorAddr()).mint(curveGaugeAddr);
gauge.withdraw(_amt);