Skip to content

Commit

Permalink
update helium-anchor-gen for incentive_escrow_fund_bps field
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldjeffrey committed Sep 10, 2024
1 parent b36909e commit 481fea3
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 41 deletions.
78 changes: 39 additions & 39 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions solana/src/carrier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ impl SolanaNetwork for SolanaRpc {
);
let carrier_data = self.provider.get_account_data(&carrier_pda).await?;
let mut carrier_data = carrier_data.as_ref();
let _carrier = CarrierV0::try_deserialize(&mut carrier_data)?;
let bps: u16 = 0; // carrier.incentive_escrow_fund_bps (not available right now)
let carrier = CarrierV0::try_deserialize(&mut carrier_data)?;

let bps = carrier.incentive_escrow_fund_bps;
let percent = Decimal::from(bps) / dec!(10_000);
Ok(percent)
}
Expand Down

0 comments on commit 481fea3

Please sign in to comment.