Skip to content

Commit

Permalink
cleanup callback_amount
Browse files Browse the repository at this point in the history
  • Loading branch information
jdogresorg committed May 20, 2024
1 parent 5a0f370 commit c895d78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion indexer/includes/actions/issue.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function btnsIssue( $params=null, $data=null, $error=null){
$divisible = ($btInfo->DECIMALS==0) ? 0 : 1;

// Set CALLBACK_TICK divisibillity flag
$divisible2 = ($cbInfo->DECIMALS==0) ? 0 : 1;
$divisible2 = ($cbInfo && $cbInfo->DECIMALS>0) ? 1 : 0;

// Verify AMOUNT field formats
foreach($fieldList['AMOUNT'] as $name){
Expand Down
2 changes: 1 addition & 1 deletion indexer/sql/tokens.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ CREATE TABLE tokens (
lock_callback TINYINT(1) NOT NULL DEFAULT 0, -- Locks CALLBACK_BLOCK/TICK/AMOUNT
callback_block INTEGER UNSIGNED, -- block_index after which CALLBACK cand be used
callback_tick_id INTEGER UNSIGNED, -- id of record in index_tickers table
callback_amount BIGINT UNSIGNED, -- AMOUNT users get if CALLBACK
callback_amount VARCHAR(250), -- AMOUNT users get if CALLBACK
allow_list_id INTEGER UNSIGNED NOT NULL default 0, -- id of record in index_transactions table
block_list_id INTEGER UNSIGNED NOT NULL default 0, -- id of record in index_transactions table
mint_address_max VARCHAR(250), -- Maximum amount of supply an address can MINT
Expand Down

0 comments on commit c895d78

Please sign in to comment.