Skip to content

1.0.0-dev.1 Initial Dev Release

Pre-release
Pre-release
Compare
Choose a tag to compare
@padoriku padoriku released this 15 Mar 07:55
· 133 commits to main since this 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 of allowPartialFill == true or normal swap failure on the destination chain, the refunded amount (as bridge token) is recorded in this field (originally it reuses the dstAmount field in the RequestDone event).

Event RequestSent

  • Added transferId field.

Fee's Sign Data Encoding

  • Sign data is changed to include srcChainId, amountIn and tokenIn 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))