mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 15:10:13 +00:00
base rewards
This commit is contained in:
@@ -123,6 +123,7 @@ pub fn process_mine(accounts: &[AccountInfo], data: &[u8]) -> ProgramResult {
|
||||
//
|
||||
// Boosts are incentives that can multiply a miner's rewards by staking tokens in the ORE Boosts program.
|
||||
// Up to 3 boosts can be applied on any given mine operation.
|
||||
let base_reward = reward;
|
||||
let mut applied_boosts = [Pubkey::new_from_array([0; 32]); 3];
|
||||
for i in 0..3 {
|
||||
if optional_accounts.len().gt(&(i * 2)) {
|
||||
@@ -166,7 +167,7 @@ pub fn process_mine(accounts: &[AccountInfo], data: &[u8]) -> ProgramResult {
|
||||
}
|
||||
// Log base reward after boost rewards.
|
||||
// Parser looks for base reward first, and then for the variable number of boost rewards.
|
||||
sol_log(&format!("Base: {}", reward));
|
||||
sol_log(&format!("Base: {}", base_reward));
|
||||
|
||||
// Apply liveness penalty.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user