mirror of
https://github.com/d0zingcat/ore.git
synced 2026-06-08 15:11:42 +00:00
warning
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
use core::panic;
|
|
||||||
|
|
||||||
use ore_api::prelude::*;
|
use ore_api::prelude::*;
|
||||||
use steel::*;
|
use steel::*;
|
||||||
|
|
||||||
@@ -7,8 +5,6 @@ use crate::whitelist::AUTHORIZED_ACCOUNTS;
|
|||||||
|
|
||||||
/// Swap in a hashpower market.
|
/// Swap in a hashpower market.
|
||||||
pub fn process_swap(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResult {
|
pub fn process_swap(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResult {
|
||||||
// panic!("Program is currently paused");
|
|
||||||
|
|
||||||
// Parse args.
|
// Parse args.
|
||||||
let args = Swap::try_from_bytes(data)?;
|
let args = Swap::try_from_bytes(data)?;
|
||||||
let amount = u64::from_le_bytes(args.amount);
|
let amount = u64::from_le_bytes(args.amount);
|
||||||
|
|||||||
Reference in New Issue
Block a user