Rescript and Javascript library for Float
This library is used to interact with the Float smart contracts, which can also be accessed via the DApp: https://float.capital
Can view the contract addresses and other config here: https://github.com/Float-Capital/config
Can read the docs here: https://docs.float.capital/
Getting started
Rescript
Javascript
Full list of APIs
Float.Chain.contracts // read
Float.Chain.updateSystemStateMulti // write
Float.Market.contracts // read
Float.Market.unsettledPositions // read
Float.Market.stakedPositions // read
Float.Market.positions // read
Float.Market.fundingRateAprs // read
Float.Market.unconfirmedExposures // read
Float.Market.exposures // read
Float.Market.leverage // read
Float.Market.fundingRateMultiplier // read
Float.Market.syntheticTokenPrices // read
Float.Market.updateSystemState // write
Float.Market.settleOutstandingActions // write
Float.Market.claimFloatCustom // write
Float.MarketSide.syntheticToken // read
Float.MarketSide.name // read
Float.MarketSide.poolValue // read
Float.MarketSide.syntheticTokenPrice // read
Float.MarketSide.exposure // read
Float.MarketSide.unconfirmedExposure // read
Float.MarketSide.fundingRateApr // read
Float.MarketSide.positions // read
Float.MarketSide.stakedPositions // read
Float.MarketSide.unsettledPositions // read
Float.MarketSide.mint // write
Float.MarketSide.mintAndStake // write
Float.MarketSide.stake // write
Float.MarketSide.unstake // write
Float.MarketSide.redeem // write
Float.MarketSide.shift // write
Float.MarketSide.shiftStake // write