mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-20 15:10:32 +00:00
remove staking
This commit is contained in:
@@ -1,18 +1,12 @@
|
||||
mod close;
|
||||
mod deposit;
|
||||
mod free;
|
||||
mod mine;
|
||||
mod open;
|
||||
mod swap;
|
||||
mod withdraw;
|
||||
|
||||
use close::*;
|
||||
use deposit::*;
|
||||
use free::*;
|
||||
use mine::*;
|
||||
use open::*;
|
||||
use swap::*;
|
||||
use withdraw::*;
|
||||
|
||||
use ore_api::instruction::*;
|
||||
use steel::*;
|
||||
@@ -25,17 +19,9 @@ pub fn process_instruction(
|
||||
let (ix, data) = parse_instruction(&ore_api::ID, program_id, data)?;
|
||||
|
||||
match ix {
|
||||
// Mine
|
||||
OreInstruction::Open => process_open(accounts, data)?,
|
||||
OreInstruction::Close => process_close(accounts, data)?,
|
||||
OreInstruction::Mine => process_mine(accounts, data)?,
|
||||
|
||||
// Stake
|
||||
OreInstruction::Deposit => process_deposit(accounts, data)?,
|
||||
OreInstruction::Withdraw => process_withdraw(accounts, data)?,
|
||||
|
||||
// Trade
|
||||
OreInstruction::Free => process_free(accounts, data)?,
|
||||
OreInstruction::Swap => process_swap(accounts, data)?,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user