fix: Calldata size for Ekubo pay callback

- And doc clarification
This commit is contained in:
TAMARA LIPOWSKI
2025-04-15 14:28:30 -04:00
committed by Diana Carvalho
parent d9066d0a09
commit be65c890bb

View File

@@ -189,8 +189,8 @@ contract EkuboExecutor is
mstore(add(free, 52), shl(96, sender)) mstore(add(free, 52), shl(96, sender))
mstore(add(free, 72), shl(248, transferType)) mstore(add(free, 72), shl(248, transferType))
// 4 (selector) + 32 (token) + 16 (amount) + 20 (recipient) + 1 (transferType) = 73 // 4 (selector) + 32 (token) + 16 (amount) + 20 (sender) + 1 (transferType) = 73
if iszero(call(gas(), target, 0, free, 132, 0, 0)) { if iszero(call(gas(), target, 0, free, 73, 0, 0)) {
returndatacopy(0, 0, returndatasize()) returndatacopy(0, 0, returndatasize())
revert(0, returndatasize()) revert(0, returndatasize())
} }