Skip to content

Commit

Permalink
Merge branch 'master' of github.com:jdogresorg/Broadcast-Token-Naming…
Browse files Browse the repository at this point in the history
…-System
  • Loading branch information
jdogresorg committed May 22, 2024
2 parents 230fa39 + f35d577 commit 65ca78e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/actions/SLEEP.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This command pauses all `token` `ACTIONS` until `RESUME_BLOCK` is reached
## Formats

### Version `0`
- `VERSION|TICK|RESUME_BLOCK`
- `VERSION|TICK|RESUME_BLOCK|MEMO`

## Examples
```
Expand Down
10 changes: 6 additions & 4 deletions indexer/includes/actions/callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,13 @@ function btnsCallback($params=null, $data=null, $error=null){
$balances = debitBalances($balances, $btInfo->CALLBACK_TICK, $data->CALLBACK_TICK);

// Calculate total number of database hits for this CALLBACK
$db_hits = count($holders) * 3; // 1 debits, 1 credits, 1 balances
$db_hits += 4; // 1 debits, 1 credits, 1 balances, 1 callback
if(!$error){
$db_hits = count($holders) * 3; // 1 debits, 1 credits, 1 balances
$db_hits += 4; // 1 debits, 1 credits, 1 balances, 1 callback

// Determine total transaction FEE based on database hits
$fees->AMOUNT = getTransactionFee($db_hits, $fees->TICK);
// Determine total transaction FEE based on database hits
$fees->AMOUNT = getTransactionFee($db_hits, $fees->TICK);
}

// Verify SOURCE has enough balances to cover FEE AMOUNT
if(!$error && !hasBalance($balances, $fees->TICK, $fees->AMOUNT))
Expand Down

0 comments on commit 65ca78e

Please sign in to comment.