https://github.com/oraichain/cw20-staking
A repo for staking cw20 token
https://github.com/oraichain/cw20-staking
Last synced: about 2 months ago
JSON representation
A repo for staking cw20 token
- Host: GitHub
- URL: https://github.com/oraichain/cw20-staking
- Owner: oraichain
- License: other
- Created: 2024-02-06T10:25:01.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-20T09:52:59.000Z (3 months ago)
- Last Synced: 2025-04-06T04:26:13.766Z (2 months ago)
- Language: Rust
- Size: 175 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Oraiswap Staking
The Staking Contract contains the logic for LP Token staking and reward distribution. Staking rewards for LP stakers come from the new ORAIX tokens generated by Orai multisig contract for each phrase and are split between all combined staking pools. The new ORAIX tokens are distributed in proportion to size of staked LP tokens multiplied by the weight of that asset's staking pool.
# Reward formula
```rust
staker_pending_reward = pool_reward_per_bond * staker_bond_amount
```where
```rust
pool_reward_per_bond = pool_reward_per_bond + deposit_reward_amount / pool_total_bond_amount
```where ```deposit_reward_amount / pool_total_bond_amount``` measures the amount of reward amount a bond unit will receive
initially, ```pool_reward_per_bond``` is 0