This commit is contained in:
Hardhat Chad
2025-09-24 09:49:00 -07:00
parent 5c15b33690
commit d95cd22bac
6 changed files with 16 additions and 22 deletions

View File

@@ -1,10 +1,6 @@
use ore_api::prelude::*;
use solana_program::pubkey;
use solana_program::pubkey::Pubkey;
use steel::*;
const TOKEN_B_MINT: Pubkey = pubkey!("So11111111111111111111111111111111111111112");
/// Send SOL from the treasury to the WSOL account.
pub fn process_wrap(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResult {
// Load accounts.
@@ -19,7 +15,7 @@ pub fn process_wrap(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResult
let treasury = treasury_info.as_account_mut::<Treasury>(&ore_api::ID)?;
treasury_sol_info
.is_writable()?
.as_associated_token_account(treasury_info.key, &TOKEN_B_MINT)?;
.as_associated_token_account(treasury_info.key, &SOL_MINT)?;
system_program.is_program(&system_program::ID)?;
// Send SOL to the WSOL account.