1.0.0-dev.1 Initial Dev Release
Pre-release
Pre-release
Change Log
Param TransferDescription
-
Added
allowPartialFill
option. In case of multi route swapping, turning on this param allows some swap routes to fail and refund the failed amount in to user as bridge token while also sending the amount gained from success swaps to user. (NOTE: this parameter should always be set to false for the initial release) -
Added
nativeIn
option. Set this param to true if swapping with native token (e.g. ETH, BNB) as the token in.
Event RequestDone
- Added
refundAmount
field. In case ofallowPartialFill == true
or normal swap failure on the destination chain, the refunded amount (as bridge token) is recorded in this field (originally it reuses thedstAmount
field in theRequestDone
event).
Event RequestSent
- Added
transferId
field.
Fee's Sign Data Encoding
- Sign data is changed to include
srcChainId
,amountIn
andtokenIn
to prevent user from using signed fee of small swaps (low gas cost) for huge swaps.
keccak256(abi.encodePacked("executor fee", srcChainId, dstChainId, amountIn, tokenIn, feeDeadline, fee))