debug logs

This commit is contained in:
Hardhat Chad
2025-08-18 09:14:15 -07:00
parent 8c440a117a
commit 22f7e68b40
2 changed files with 14 additions and 1 deletions

View File

@@ -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,