if strategy.isTendable():
strategy.tend({"from": deployer})
strategy.harvest({"from": deployer})
E brownie.exceptions.VirtualMachineError: revert: STF
E Trace step -1, program counter 3405:
E File "contracts/MyStrategy.sol", line 169, in MyStrategy.harvest:
E 0
E );
E
E ISwapRouter(ROUTER).exactInputSingle(fromRewardToAAVEParams);
E
E bytes memory path = abi.encodePacked(AAVE_TOKEN, uint24(10000), WETH_TOKEN, uint24(10000), want);
E ISwapRouter.ExactInputParams memory fromAAVETowBTCParams = ISwapRouter.ExactInputParams(
../daomoon/tests/examples/test_harvest_flow.py:219: VirtualMachineError
------------------------------------------------------------------- Captured stdout setup --------------------------------------------------------------------
Fetching source of 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D from api.etherscan.io...
____ test_withdrawother ____
deployer = <Account '0x33A4622B82D4c04a53e170c638B944ce27cffce3'>, sett = <SettV3 Contract '0x81FBb5403fBeAdd744f24da28977F0292B815Aba'> controller = <Controller Contract '0x93079019DC27Ad21e59ab4C380585cA812CeB315'>, strategy = <MyStrategy Contract '0x00d23748fB22bE27ff47a72a593D9C38ea6Dab6E'> want = <IERC20 Contract '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599'>
def test_withdraw_other(deployer, sett, controller, strategy, want): """
Non-controller shouldn't be able to do either """
Setup
randomUser = accounts[6] startingBalance = want.balanceOf(deployer) depositAmount = startingBalance // 2 assert startingBalance >= depositAmount
End Setup
Deposit
want.approve(sett, MaxUint256, {"from": deployer}) sett.deposit(depositAmount, {"from": deployer})
chain.sleep(15) chain.mine()
sett.earn({"from": deployer})
chain.sleep(days(0.5)) chain.mine()
if strategy.isTendable(): strategy.tend({"from": deployer}) strategy.harvest({"from": deployer}) E brownie.exceptions.VirtualMachineError: revert: STF E Trace step -1, program counter 3405: E File "contracts/MyStrategy.sol", line 169, in MyStrategy.harvest: E 0 E ); E E ISwapRouter(ROUTER).exactInputSingle(fromRewardToAAVEParams); E E bytes memory path = abi.encodePacked(AAVE_TOKEN, uint24(10000), WETH_TOKEN, uint24(10000), want); E ISwapRouter.ExactInputParams memory fromAAVETowBTCParams = ISwapRouter.ExactInputParams(
../daomoon/tests/examples/test_harvest_flow.py:219: VirtualMachineError ------------------------------------------------------------------- Captured stdout setup -------------------------------------------------------------------- Fetching source of 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D from api.etherscan.io...