Skip to content

IExchanger

Description

Source: contracts/interfaces/IExchanger.sol

Views

calculateAmountAfterSettlement

Source

Details

Signature

calculateAmountAfterSettlement(address from, bytes32 currencyKey, uint256 amount, uint256 refunded) returns (uint256)

Visibility

external

State Mutability

view

feeRateForExchange

Source

Details

Signature

feeRateForExchange(bytes32 sourceCurrencyKey, bytes32 destinationCurrencyKey) returns (uint256)

Visibility

external

State Mutability

view

getAmountsForExchange

Source

Details

Signature

getAmountsForExchange(uint256 sourceAmount, bytes32 sourceCurrencyKey, bytes32 destinationCurrencyKey) returns (uint256, uint256, uint256)

Visibility

external

State Mutability

view

hasWaitingPeriodOrSettlementOwing

Source

Details

Signature

hasWaitingPeriodOrSettlementOwing(address account, bytes32 currencyKey) returns (bool)

Visibility

external

State Mutability

view

maxSecsLeftInWaitingPeriod

Source

Details

Signature

maxSecsLeftInWaitingPeriod(address account, bytes32 currencyKey) returns (uint256)

Visibility

external

State Mutability

view

settlementOwing

Source

Details

Signature

settlementOwing(address account, bytes32 currencyKey) returns (uint256, uint256, uint256)

Visibility

external

State Mutability

view

External Functions

exchange

Source

Details

Signature

exchange(address from, bytes32 sourceCurrencyKey, uint256 sourceAmount, bytes32 destinationCurrencyKey, address destinationAddress) returns (uint256)

Visibility

external

State Mutability

nonpayable

exchangeOnBehalf

Source

Details

Signature

exchangeOnBehalf(address exchangeForAddress, address from, bytes32 sourceCurrencyKey, uint256 sourceAmount, bytes32 destinationCurrencyKey) returns (uint256)

Visibility

external

State Mutability

nonpayable

settle

Source

Details

Signature

settle(address from, bytes32 currencyKey) returns (uint256, uint256, uint256)

Visibility

external

State Mutability

nonpayable