File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -111,4 +111,4 @@ SuccinctVAppStateTest:test_Step_WhenValid() (gas: 120853)
111111SuccinctVAppStateTest:test_Step_WhenValidTwice() (gas: 177445)
112112SuccinctVAppWithdrawTest:test_RevertWithdraw_WhenBelowMinimum() (gas: 27115)
113113SuccinctVAppWithdrawTest:test_RevertWithdraw_WhenZeroAddress() (gas: 26810)
114- SuccinctVAppWithdrawTest:test_Withdraw_WhenValid() (gas: 503946 )
114+ SuccinctVAppWithdrawTest:test_Withdraw_WhenValid() (gas: 503997 )
Original file line number Diff line number Diff line change @@ -224,11 +224,8 @@ contract SuccinctVApp is
224224 //
225225 // Otherwise if the `_to` is not a prover vault, we can just transfer the $PROVE directly.
226226 if (ISuccinctStaking (staking).isProver (_to)) {
227- // Deposit $PROVE to mint $iPROVE, sending it to this contract.
228- uint256 iPROVE = IERC4626 (iProve).deposit (amount, address (this ));
229-
230- // Transfer the $iPROVE from this contract to the prover vault.
231- IERC20 (iProve).safeTransfer (_to, iPROVE);
227+ // Deposit $PROVE to mint $iPROVE, sending it to the prover vault.
228+ IERC4626 (iProve).deposit (amount, _to);
232229 } else {
233230 // Transfer the $PROVE from this contract to the `_to` address.
234231 IERC20 (prove).safeTransfer (_to, amount);
You can’t perform that action at this time.
0 commit comments