migrate to steel

This commit is contained in:
Hardhat Chad
2024-09-25 06:45:37 +00:00
parent e8f0721fca
commit 7814e28847
21 changed files with 34 additions and 22 deletions

View File

@@ -1,10 +1,10 @@
use ore_api::{consts::*, error::OreError, instruction::Stake};
use ore_utils::*;
use solana_program::{
account_info::AccountInfo, entrypoint::ProgramResult, program_error::ProgramError,
program_pack::Pack,
};
use spl_token::state::Mint;
use steel::*;
/// Upgrade allows a user to migrate a v1 token to a v2 token at a 1:1 exchange rate.
pub fn process_upgrade(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResult {