yield-sync / v1-emp

0 stars 0 forks source link

Write TypeScript function that calculates how much of each tokens must be deposited #11

Closed aleem-ahmed closed 6 months ago

aleem-ahmed commented 6 months ago

There are 2 scenarios where the user may need to calculate how much of each token is required.

1) A user wants to deposit a given amount but does not know how much of each token is required 2) A user has a balance of at least 1 of the tokens and wants to know how much of the other token he needs to have

Things to consider: