#saber #anchor #solana #crates #cashio

brrr

Handles the printing and burning of $CASH, using Saber LP Arrows as collateral

6 releases

0.3.1 Apr 23, 2022
0.3.0 Apr 23, 2022
0.2.1 Mar 23, 2022
0.1.4 Dec 24, 2021
0.1.0 Nov 5, 2021

#21 in #saber

AGPL-3.0

42KB
727 lines

🖨 brrr

Crates.io Docs.rs License

Handles the printing and burning of $CASH, using Saber LP Arrows as collateral.

Addresses

The program address is the same on devnet, testnet, and mainnet-beta.

Program Address: BRRRot6ig147TBU6EGp7TMesmQrwu729CbG6qu2ZUHWm

Mechanism

There are two instructions that handle each of these actions: print_cash and burn_cash.

print_cash

This instruction prints $CASH in exchange for Arrow Saber LP tokens.

The issue authority of print_cash is BJ9L3jNu6tvrUxPHTMfwyA8Lgw2X6ky5bVNyDqiXSxgA.

burn_cash

This instruction burns $CASH in exchange for Arrow Saber LP tokens.

The withdraw authority of burn_cash is 7Twx9JYz3gB4rF3h2cyUMnQWj9QEtmwviTvVD7xjAGEw.

Dependencies

~27–39MB
~646K SLoC