This commit is contained in:
Hardhat Chad
2025-10-09 09:27:05 -07:00
parent 7f98f16512
commit 25ec6250c4
2 changed files with 18 additions and 5 deletions

View File

@@ -95,7 +95,7 @@ pub fn process_bury(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResult
// Share some ORE with stakers.
let mut shared_amount = 0;
if treasury.total_staked > 0 {
shared_amount = ONE_ORE / 10_000; // TODO: calculate shared amount
shared_amount = total_ore / 10; // Share 10% of buyback ORE with stakers
treasury.stake_rewards_factor +=
Numeric::from_fraction(shared_amount, treasury.total_staked);
}