Integrate YBridge Contract
XY Finance deploys smart contracts on most mainstream chains and benefits all types of users in terms of secure cross-chain swaps.
Integration Notice
yBridge
State-Changing Functions
swapWithReferrer
function swapWithReferrer(
address aggregatorAdaptor,
IDexAggregatorAdaptor.SwapDescription memory swapDesc,
bytes memory aggregatorData,
PreviousDstChainDescription calldata dstChainDesc, ## Renamed after 2024/7/17
address referrer
) singleChainSwapWithReferrer
View Functions
getEverClosed
getTokenBalance
Events
System Setting Related Events
StartSwapIdSet
YBridgeVaultSet
AggregatorAdaptorSet
AggregatorSet
AcceptSwapRequestSet
User Related Events
SwapRequested
AggregatorSwapped
CloseSwapCompleted
SwappedForUser
SwapRefunded
Last updated