Structs§
- Soroswap
Library - Soroswap
Library Args - SoroswapLibraryArgs is a type for building arg lists for functions defined in “SoroswapLibrary”.
- Soroswap
Library Client - SoroswapLibraryClient is a client for calling the contract defined in “SoroswapLibrary”.
Enums§
Traits§
Functions§
- get_
amount_ in - Given an output amount of an asset and pair reserves, returns a required input amount of the other asset.
- get_
amount_ out - Given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset.
- get_
amounts_ in - Performs chained getAmountIn calculations on any number of pairs.
- get_
amounts_ out - Performs chained getAmountOut calculations on any number of pairs.
- get_
reserves_ with_ factory - Fetches and sorts the reserves for a pair of tokens.
- get_
reserves_ with_ pair - Fetches and sorts the reserves for a pair of tokens given the pair address.
- pair_
for - Calculates the deterministic address for a pair without making any external calls. check https://github.com/paltalabs/deterministic-address-soroban
- quote
- Given some amount of an asset and pair reserves, returns an equivalent amount of the other asset.
- sort_
tokens - Sorts two token addresses in a consistent order.