Crates.io | yi |
lib.rs | yi |
version | 0.4.0 |
source | src |
created_at | 2022-02-09 06:03:59.836361 |
updated_at | 2022-04-23 23:08:34.560715 |
description | Yi Token by Crate Protocol: the standard for auto-compounding single token staking pools. |
homepage | https://crate.so |
repository | https://github.com/CrateProtocol/yi |
max_upload_size | |
id | 529528 |
size | 27,880 |
Yi Token by Crate Protocol: the primitive for auto-compounding single token staking pools.
Yi is a Solana primitive for building single-sided, auto-compounded stake pools. It allows projects to launch Yi Tokens, which are tokens convertible to and from an underlying token.
Some example use cases include:
First, create a Yi Token by invoking the [yi::create_yi_token
] instruction. Then, anyone may stake
tokens into the pool via [yi::stake
].
To send auto-compounded rewards to the pool, deposit tokens to the [YiToken::underlying_tokens
] token account.
This will increase the conversion rate of Yi Tokens to underlying tokens.
To exit the pool, invoke [yi::unstake
].
Yi Tokens may take stake or unstake fees. These fees cannot be changed after the construction of the Yi Token. Fees get distributed to stakers within the Yi Token pool.
@crateprotocol/yi
yi
The Yi program is deployed on mainnet-beta
and devnet
at YiiTopEnX2vyoWdXuG45ovDFYZars4XZ4w6td6RVTFm
.
Yi Token by Crate Protocol is licensed under the Affero General Public License, version 3.0.