issues
search
Ellipsis-Labs
/
phoenix-sdk
SDK for interacting with the Phoenix DEX.
83
stars
41
forks
source link
Jli/ts amount in given out
#95
Closed
throwbackjams
closed
1 year ago
throwbackjams
commented
1 year ago
Main components:
Add method on Market class to calculate the amount of units in given a desired amount of units out
Add Mocha testing library (+ mocha types and Chai, which is used for asserts in Mocha)
Write unit test on the above function using Mocha
Fix outdate docs on the
getMarketExpectedOutAmount
utility function
Main components:
getMarketExpectedOutAmount
utility function