Understanding Bluefin's Spot CLMM
Developers can interact with Bluefin's Spot CLMM through off-chain and on-chain components.
The off-chain components are a series of exposed API endpoints that enables users to retrieve data such as:
- Exchange Data (TVL, total volume and total fees on the protocol).
- Pools Data (Addresses, transactions, TVL, fees, etc.).
- Tokens Data (Symbol, address, price, etc.).
However, these APIs are only for collecting the information, and in order to perform actions such as swapping, opening/closing positions, claiming fees/rewards and providing/removing liquidity to a pool, users must interact with the on-chain contracts. Bluefin offers two alternatives for this interaction:
- The first being through our Spot SDK, which enables developers to make the contract calls through Typescript functions. If a user wanted to set up their own SDK in any other language, they can reference the
on-chain-calls.ts
interface from Bluefin's Typescript SDK and adapt the required functions to the corresponding language. - The second option is to directly interact with our move contracts through the users own smart contracts. For this purpose we've created interfaces with all of the methods available in our deployment.