Skip to content

regolith-labs/ore-stake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,025 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ORE Stake

A staking protocol for ORE holders to receive a share of protocol revenues.

API

  • Consts – Program constants.
  • Error – Custom program errors.
  • Event – Custom program events.
  • Instruction – Declared instructions and arguments.

Instructions

  • Claim – Claims accrued staking rewards.
  • Close – Closes a stake account and reclaims rent.
  • Compound – Compounds accrued rewards back into the stake deposit.
  • Deposit – Deposits ORE into a stake account.
  • Distribute – Distributes ORE to the treasury for vesting to stakers.
  • Init – Initializes the program (treasury, treasury token account, and vesting account).
  • Log – Logs non-truncatable event data.
  • Withdraw – Withdraws ORE from a stake account.

State

  • Stake – A user's staking position (balance, rewards, compound fee settings).
  • Treasury – Singleton tracking the global rewards factor and total staked amount.
  • Vesting – Singleton tracking the current reward vesting schedule.

Tests

To run the test suite, use the Solana toolchain:

cargo test-sbf

For line coverage, use llvm-cov:

cargo llvm-cov

About

ORE staking protocol.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors