cleaning
This commit is contained in:
parent
c040ad0850
commit
28a5ed6a9a
@ -72,21 +72,13 @@ contract CompliantForwarder is ExchangeSelectors{
|
|||||||
mstore(add(addressesToValidate_, offset), addressToValidate)
|
mstore(add(addressesToValidate_, offset), addressToValidate)
|
||||||
}
|
}
|
||||||
|
|
||||||
function toGlobalCalldataOffset(offset) -> globalOffset {
|
function exchangeCalldataload(offset) -> value {
|
||||||
globalOffset := add(0x4, offset)
|
|
||||||
}
|
|
||||||
|
|
||||||
function toExchangeCalldataOffset(offset, orderParamIndex) -> exchangeOffset {
|
|
||||||
// exchangeTxPtr at global level
|
// exchangeTxPtr at global level
|
||||||
// 0x20 for length offset into exchange TX
|
// 0x20 for length offset into exchange TX
|
||||||
// 0x4 for function selector in exhcange TX
|
// 0x4 for function selector in exhcange TX
|
||||||
let exchangeTxPtr := calldataload(0x44)
|
let exchangeTxPtr := calldataload(0x44)
|
||||||
exchangeOffset := add(0x4, add(exchangeTxPtr, add(0x24, offset)))
|
let exchangeOffset := add(0x4, add(exchangeTxPtr, add(0x24, offset)))
|
||||||
}
|
value := calldataload(exchangeOffset)
|
||||||
|
|
||||||
function exchangeCalldataload(offset) -> value {
|
|
||||||
|
|
||||||
value := calldataload(toExchangeCalldataOffset(offset, 0))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function appendMakerAddressFromOrder(orderParamIndex) {
|
function appendMakerAddressFromOrder(orderParamIndex) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user