sygma-sdk icon indicating copy to clipboard operation
sygma-sdk copied to clipboard

Liquidity helper in SDK v3

Open saadahmsiddiqui opened this issue 8 months ago • 1 comments

When transferring fungible assets, its important to know whether liquidity is available on destination chain. Therefore, v3 SDK should provide interface to be able to query liquidity on destination chain and it should throw and error if there isn't enough liquidity.

Implementation details

  • Interface for querying liquidity, fungible transfer passed as parameter
  • Destination provider should also be provided or created on demand by the SDK to query balances

Testing details

  • Units tests for error and success cases

Acceptance Criteria

  • A clean tested interface to query liquidity on destination chain for a specific 'transfer' object

saadahmsiddiqui avatar Jun 12 '24 10:06 saadahmsiddiqui