mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 07:26:51 +00:00
cleanup
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user