AmountCalculator
A helper contract for calculations related to order amounts
Functions
getMakingAmount
Calculates maker amount
Parameters:
Name
Type
Description
orderMakerAmount
uint256
orderTakerAmount
uint256
swapTakerAmount
uint256
Return Values:
Name
Type
Description
Result
uint256
Floored maker amount
getTakingAmount
Calculates taker amount
Parameters:
Name
Type
Description
orderMakerAmount
uint256
orderTakerAmount
uint256
swapMakerAmount
uint256
Return Values:
Name
Type
Description
Result
uint256
Ceiled taker amount
arbitraryStaticCall
Performs an arbitrary call to target with data
Parameters:
Name
Type
Description
target
address
data
bytes
Return Values:
Name
Type
Description
Result
uint256
Bytes transmuted to uint256
Last updated