Tiny Bonds enable anyone to raise liquidity or capital in exchange for their tokens. Tiny Bonds is a virtual constant product AMM with dutch auction functionality.
- Protocol XYZ wants to sell some of their XYZ tokens for DAI, so they call
create()
within theTinyBondsFactory
to create their ownTinyBonds
market. - Protocol XYZ decides to sell
100 XYZ
tokens and will accept a price anywhere between10
and15 DAI
with a maturity of5 days
. - Price will start at
15 DAI
and decrease exponentially to a floor price of10 DAI
assuming no purchases are made. - Alice notices the bond price is currently
12.5 DAI
while the markets spot is still around15 DAI
so she decides to bond50 XYZ
tokens for625 DAI
. - Over the next 5 days, Alice can linearly redeem the XYZ token that she bonded.
TinyBonds.sol
:TinyBonds
enable anyone to raise liquidity or capital in exchange for their tokens.TinyBondsFactory.sol
: Minimal proxy factory that createsTinyBonds
clones.
To install with Foundry:
forge install 0xClandestine/tiny-bonds
This project uses Foundry as the development framework.
forge install
forge build
forge test