Skip to content

Commit

Permalink
use the correct subdao when finding delegate and escrow accounts (#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldjeffrey authored Feb 18, 2025
1 parent fc57aaa commit 41e48fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solana/src/burn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ impl SolanaNetwork for SolanaRpc {
type Transaction = Transaction;

async fn payer_balance(&self, payer: &PublicKeyBinary) -> Result<u64, SolanaRpcError> {
let delegated_dc_key = SubDao::Iot.delegated_dc_key(payer);
let escrow_account = SubDao::Iot.escrow_key(&delegated_dc_key);
let delegated_dc_key = self.sub_dao.delegated_dc_key(payer);
let escrow_account = self.sub_dao.escrow_key(&delegated_dc_key);

let amount = match token::balance_for_address(&self, &escrow_account).await? {
Some(token_balance) => token_balance.amount.amount,
Expand Down

0 comments on commit 41e48fb

Please sign in to comment.