Skip to content

getMinRateByPair #140

Answered by barakman
jurgenBE asked this question in Q&A
Discussion options

You must be logged in to vote

on the site : https://docs.carbondefi.xyz/developer-guides/carbon-defi-sdk/sdk-functions/getminratebypair and then use the @bancor/carbon-sdk, but i don't see an example for this, only the import { PayableOverrides, TradeActionBNStr, TokenPair, MatchActionBNStr, StrategyUpdate, EncodedStrategyBNStr, } from '@bancor/carbon-sdk'; etc.. can you give an example how to use this for example ?

const minRate: string = await getMinRateByPair(sourceTokenAddress, targetTokenAddress);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by barakman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants