mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-19 15:10:29 +00:00
debug logs
This commit is contained in:
@@ -112,6 +112,8 @@ pub fn process_swap(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResult
|
||||
miner.total_hashpower += swap_event.base_to_transfer;
|
||||
block.total_hashpower += swap_event.base_to_transfer;
|
||||
|
||||
// TODO if base to transfer is 0, then fail
|
||||
|
||||
// Transfer ORE from signer to market.
|
||||
transfer(
|
||||
signer_info,
|
||||
@@ -127,6 +129,8 @@ pub fn process_swap(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResult
|
||||
miner.total_hashpower -= swap_event.base_to_transfer;
|
||||
block.total_hashpower -= swap_event.base_to_transfer;
|
||||
|
||||
// TODO if quote to transfer is 0, then fail
|
||||
|
||||
// Transfer ORE from market to signer.
|
||||
transfer_signed(
|
||||
market_info,
|
||||
|
||||
Reference in New Issue
Block a user