sora-xor / sora2-network

SORA is a new economic system aimed at creating a supranational, world economic system with built-in tools for decentralized finance (DeFi). The SORA network implements a new way of parachain architecture on Polkadot and Kusama network, with the capability to bridge external blockchains (like Ethereum) to the Polkadot ecosystem.
Other
51 stars 23 forks source link

[Bug]: Swap fails when user want to get all xor from xor-eth pool #1101

Closed ra9mls closed 1 month ago

ra9mls commented 3 months ago

Preconditions

Pool tech account has small amount of XOR and about 998 KXOR image

Steps to reproduce

  1. Make a liquidityProxy.quote for this xor amount for ETH-XOR swap image
  2. Make a swap with the same params

Actual behavior

Swap failed with Balance too low to send value error (It means not enough XOR on tech pool account)

Screenshot 2024-06-18 at 13 32 43

Expected behavior

User can got all XOR from XOR-ETH pool if it has KXOR only

Environment

{"label"=>"Development"}

Operating System

No response

Additional context

No response