hirosystems / stacks-pyth-bridge

Retrieve trading pairs (BTC-USD, STX-USD, etc) from Clarity smart contracts.
Apache License 2.0
12 stars 6 forks source link

feat: add cbtc example #16

Closed lgalabru closed 1 year ago

lgalabru commented 1 year ago

Adding an example, basing the effort on cBTC. We are introducing a cbtc-pool contract allowing cbtc holders to add cBTC to a liquidity pool. Users can swap cBTC with STX (STX/USD + BTC/USD prices being read from Pyth), then burn their cBTC to get BTC.