export const name = 'Exchanger'; export const address = '0x5c509Ce65A297B08dfBd233AB9ECDb2c8C3d0ee9'; export const source = 'ExchangerWithFeeRecAlternatives'; export const abi = [ 'constructor(address _owner, address _resolver)', 'event AtomicSynthExchange(address indexed account, bytes32 fromCurrencyKey, uint256 fromAmount, bytes32 toCurrencyKey, uint256 toAmount, address toAddress)', 'event CacheUpdated(bytes32 name, address destination)', 'event ExchangeEntryAppended(address indexed account, bytes32 src, uint256 amount, bytes32 dest, uint256 amountReceived, uint256 exchangeFeeRate, uint256 roundIdForSrc, uint256 roundIdForDest)', 'event ExchangeEntrySettled(address indexed from, bytes32 src, uint256 amount, bytes32 dest, uint256 reclaim, uint256 rebate, uint256 srcRoundIdAtPeriodEnd, uint256 destRoundIdAtPeriodEnd, uint256 exchangeTimestamp)', 'event ExchangeRebate(address indexed account, bytes32 currencyKey, uint256 amount)', 'event ExchangeReclaim(address indexed account, bytes32 currencyKey, uint256 amount)', 'event OwnerChanged(address oldOwner, address newOwner)', 'event OwnerNominated(address newOwner)', 'event SynthExchange(address indexed account, bytes32 fromCurrencyKey, uint256 fromAmount, bytes32 toCurrencyKey, uint256 toAmount, address toAddress)', 'function CONTRACT_NAME() view returns (bytes32)', 'function acceptOwnership()', 'function calculateAmountAfterSettlement(address from, bytes32 currencyKey, uint256 amount, uint256 refunded) view returns (uint256 amountAfterSettlement)', 'function dynamicFeeRateForExchange(bytes32 sourceCurrencyKey, bytes32 destinationCurrencyKey) view returns (uint256 feeRate, bool tooVolatile)', 'function exchange(tuple(address fromAccount, address destAccount, bytes32 sourceCurrencyKey, bytes32 destCurrencyKey, uint256 sourceAmount, uint256 destAmount, uint256 fee, uint256 reclaimed, uint256 refunded, uint16 destChainId) args) payable returns (uint256 amountReceived)', 'function exchangeAtomically(uint256 minAmount, tuple(address fromAccount, address destAccount, bytes32 sourceCurrencyKey, bytes32 destCurrencyKey, uint256 sourceAmount, uint256 destAmount, uint256 fee, uint256 reclaimed, uint256 refunded, uint16 destChainId) args) payable returns (uint256 amountReceived)', 'function feeRateForExchange(bytes32 sourceCurrencyKey, bytes32 destinationCurrencyKey) view returns (uint256)', 'function getAmountsForAtomicExchange(uint256 sourceAmount, bytes32 sourceCurrencyKey, bytes32 destinationCurrencyKey) view returns (uint256 amountReceived, uint256 fee, uint256 exchangeFeeRate)', 'function getAmountsForExchange(uint256 sourceAmount, bytes32 sourceCurrencyKey, bytes32 destinationCurrencyKey) view returns (uint256 amountReceived, uint256 fee, uint256 exchangeFeeRate)', 'function getSendExchangeGasFee(address _account, bytes32 _sourceKey, uint256 _sourceAmount, bytes32 _destKey, uint16 _destChainId) view returns (uint256)', 'function isResolverCached() view returns (bool)', 'function isSynthRateInvalid(bytes32 currencyKey) view returns (bool)', 'function lastAtomicVolume() view returns (uint64 time, uint192 volume)', 'function maxSecsLeftInWaitingPeriod(address account, bytes32 currencyKey) view returns (uint256)', 'function nominateNewOwner(address _owner)', 'function nominatedOwner() view returns (address)', 'function owner() view returns (address)', 'function rebuildCache()', 'function resolver() view returns (address)', 'function resolverAddressesRequired() view returns (bytes32[] addresses)', 'function settle(address from, bytes32 currencyKey) returns (uint256 reclaimed, uint256 refunded, uint256 numEntriesSettled)', 'function settlementOwing(address account, bytes32 currencyKey) view returns (uint256 reclaimAmount, uint256 rebateAmount, uint256 numEntries)', 'function suspendSynthWithInvalidRate(bytes32 currencyKey)', 'function updateDestinationForExchange(address recipient, bytes32 destinationKey, uint256 destinationAmount)', ];