StableBond Logo

Developer Docs

Are you a developer interested in integrating Stablebonds into your application? Our SDK libraries are designed to simplify the process, offering robust tools for seamless interaction with Stablebonds. Whether you're working in TypeScript or Rust, we've got you covered with intuitive, reliable, and easy-to-use libraries.

Devnet Test Site: devnet.etherfuse.com

This is our test site that targets the Solana devnet environment. We use custom payment tokens for testing purposes; please reach out to us to get access to these tokens. Please note, there are ongoing complications regarding full authorization of KYC on the devnet site, and if you want access, we can and will whitelist your wallet address upon request.

Overview of Bond Minting and Burning

Tokens are minted by taking the amount of purchasing of the digital currency (currently USDC), converting into the native fiat currency (USD, MXN, EUR, etc.) and then dividing that by the current value of the token. Since tokens appreciate in value according to their underlying interest rate, the amount of tokens minted will differ from the amount of currency purchased. Current exchange rates are publicly available and defined by Switchboard On-Demand Oracles listed here.

For example, if you wanted to purchase 1000 USDC worth of CETES bonds, and the value of USDC was 1, the current MXN/USD rate was 20, and the current accrued value of a CETES was 1.10 MXN, the math would be as follows:

1000 USDC
×
1 USD
1 USDC
×
20 MXN
1 USD
×
1 CETES
1.10 MXN
=
18,182 CETES

SDK Libraries

TypeScript SDK: @etherfuse/stablebond-sdk

The TypeScript SDK provides the tools to integrate Stablebonds into JavaScript and TypeScript projects on the Solana blockchain. It's ideal for developers building web and mobile applications. Use this SDK to interact with Stablebonds, including retrieving available bonds, performing transactions, and more. We use this SDK on this site ourselves.

Rust SDK: stablebond-sdk

The Rust SDK provides a comprehensive suite of tools for working with Stablebonds on the Solana blockchain. It's perfect for projects requiring direct interaction with Stablebonds, such as querying bond data, managing transactions, and building financial applications in Rust.

Rust Arbitration Crate: etherfuse-arb

Designed for advanced use cases, this crate is a specialized tool for managing arbitration and validation processes related to Stablebonds on the Solana blockchain. It's ideal for developers working on arbitration modules, settlement layers, or other components requiring transaction verification and dispute resolution in Stablebonds workflows.

Powered by etherfuse
Privacy

© etherfuse 2024

StableBond Logo