(Legacy) Integrate X Swap Contract
XY Finance deploys smart contracts of Swapper (X Swap) on most mainstream chains and benefits all types of users in terms of secure cross-chain swaps.
XSwapper
Code
Events
System Setting Related Events
StartSwapIdSet
event StartSwapIdSet(uint256 _swapId);FeeStructureSet
event FeeStructureSet(uint32 _toChainId, address _YPoolToken, uint256 _gas, uint256 _min, uint256 _max, uint256 _rate, uint256 _decimals);YPoolVaultSet
AggregatorAdaptorSet
SwapValidatorXYChainSet
AcceptSwapRequestSet
X Swap Related Events
SwapRequested
CloseSwapCompleted
SwappedForUser
SwapCompleted
State-Changing Functions
swap
swapWithReferrer
singleChainSwap
singleChainSwapWithReferrer
View Functions
getSwapRequest
getFeeStructure
getEverClosed
getTokenBalance
Last updated