You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know why
unwrap_calldata = encode(['address', 'uint256'], [eoa.address, slippage]) this one accept only slippage = 0; but it does not unwrap and I receive weth anyway
do you have any clue?
thanks a lot
The text was updated successfully, but these errors were encountered:
to = router.address # router here, eoa address in unwrap
amount = 1 * 10 ** 4
slippage = 0
FEE = 10000
path = [TOKEN_ADDRESS, WETH_ADDRESS]
from_eoa = True
unwrap_calldata = encode(['address', 'uint256'], [eoa.address, slippage])
v2_calldata = encode(['address', 'uint256', 'uint256', 'address[]', 'bool'], [to, amount, slippage, path, from_eoa])
deadline = 2*10**10
approve_permit = token.functions.approve(PERMIT_ADDRESS, amount)
approve_router = permit.functions.approve(TOKEN_ADDRESS, ROUTER_ADDRESS, amount, deadline)
I don't know why
unwrap_calldata = encode(['address', 'uint256'], [eoa.address, slippage]) this one accept only slippage = 0; but it does not unwrap and I receive weth anyway
do you have any clue?
thanks a lot
The text was updated successfully, but these errors were encountered: