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