-
Notifications
You must be signed in to change notification settings - Fork 23
Closed as not planned
Description
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
Metadata
Metadata
Assignees
Labels
No labels