Bonded-StableCoin is a decentralized stablecoin system leveraging bonding curves for dynamic pricing and minting. It is designed to be fully autonomous, transparent, and backed by reserve logic.
- Stablecoin with algorithmic backing
- Bonding curve mechanism
- Smart contracts written in Solidity
- Frontend interaction via ethers.js and React
π Explore the sections on the left to learn more.
The Bonded-StableCoin system consists of:
- Smart Contract (
BondedStableCoin.sol
) β Handles minting, burning, and bonding logic - Frontend β Connects users via wallet (e.g., MetaMask)
- Hardhat Backend β Development & deployment environment
- ERC-20 token standard
- ETH reserve tracking
- Mint/Burn entry points
- UI hooks (optional integration with DApps)
Bonding curves determine token price based on supply.
Currently:
Price = 1 ETH per token (flat, can evolve)
Future iterations may use:
Price = k * (Supply ^ exponent)
- Algorithmic control of supply
- Dynamic pricing
- Built-in incentive mechanics
Implements:
- ERC-20 standard
- Mint function (receives ETH)
- Burn function (returns ETH)
- Basic bonding curve logic
function mint() public payable
function burn(uint256 amount) public
- Reentrancy protection
- Overflow/underflow checks (via Solidity 0.8.x)
- Node.js
- Hardhat
- MetaMask / testnet ETH
npm install
npx hardhat compile
npx hardhat run scripts/deploy.js --network <your-network>
Use a .env
file for private keys and API keys.
A: Yes. ETH reserves back the token supply directly.
A: Via bonding curve logic that determines mint/burn pricing algorithmically.
A: Absolutely! Open issues, submit PRs, or suggest improvements.
Stablecoin β A token designed to maintain a stable value.
Bonding Curve β A mathematical function defining the price of a token based on its supply.
Minting β Creating new tokens in exchange for ETH.
Burning β Destroying tokens to redeem ETH.
Reserve β The ETH pool backing the stablecoin.
ERC-20 β A widely-used Ethereum token standard.