Socket
Socket
Sign inDemoInstall

@float-capital/js-client

Package Overview
Dependencies
50
Maintainers
5
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @float-capital/js-client

API for Float DAO smart contracts


Version published
Maintainers
5
Created

Readme

Source

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

Keywords

FAQs

Last updated on 24 May 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc