Marginly SDK
Allows to biuld contract calls and use math calculations for applications on top of Marginly.
MarginlyPoolExecute
Contains an abstract class with methods to generate calls input for Marginly contracts.
MarginlyPoolPosition
This class is used to construct a Marginly position representation with real values from pools inner discounted ones. Moreover it contains methods for position characteristics calculations such as:
leverage
liquidation price
available withdraw amounts
MarginlyPoolMath
Contains low level math, used in contract calculations and other modules of sdk including:
FP96 math
discounted-to-real values conversions
X96 price conversions
low level position/pool parameters calculations (e.g. leverage, liquidation price)
Tests
Run tests
Last updated