mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
fixing another withdraw amt balanceOf issue
This commit is contained in:
parent
8518f72e37
commit
a2b929a794
|
@ -137,7 +137,7 @@ contract CurveGauge is GaugeHelper {
|
||||||
TokenInterface crv_token = TokenInterface(address(gauge.crv_token()));
|
TokenInterface crv_token = TokenInterface(address(gauge.crv_token()));
|
||||||
Balances memory balances;
|
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));
|
balances.intialCRVBal = crv_token.balanceOf(address(this));
|
||||||
IMintor(getCurveMintorAddr()).mint(curveGaugeAddr);
|
IMintor(getCurveMintorAddr()).mint(curveGaugeAddr);
|
||||||
gauge.withdraw(_amt);
|
gauge.withdraw(_amt);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user