Skip to content

Commit

Permalink
use SOURCE/DESTINATION from send
Browse files Browse the repository at this point in the history
  • Loading branch information
jdogresorg committed Aug 11, 2023
1 parent 71a684b commit 7072ff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions indexer/includes/actions/send.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ function btnsSend($params=null, $data=null, $error=null){
$addresses[$send->DESTINATION] = 1;

// Debit AMOUNT from SOURCE address
createDebit('SEND', $send->BLOCK_INDEX, $send->TX_HASH, $send->TICK, $send->AMOUNT, $data->SOURCE);
createDebit('SEND', $send->BLOCK_INDEX, $send->TX_HASH, $send->TICK, $send->AMOUNT, $send->SOURCE);

// Credit AMOUNT to DESTINATION address
createCredit('SEND', $send->BLOCK_INDEX, $send->TX_HASH, $send->TICK, $send->AMOUNT, $data->DESTINATION);
createCredit('SEND', $send->BLOCK_INDEX, $send->TX_HASH, $send->TICK, $send->AMOUNT, $send->DESTINATION);

// Update balances for SOURCE and DESTINATION addresses
updateBalances([$send->SOURCE, $send->DESTINATION]);
Expand Down

0 comments on commit 7072ff6

Please sign in to comment.