Skip to content

Commit

Permalink
GAS updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jdogresorg committed Feb 14, 2024
1 parent f1be294 commit b8eac1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions indexer/includes/actions/issue.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ function btnsIssue( $params=null, $data=null, $error=null){
if(!$error && in_array($data->TICK,RESERVED_TICKS))
$error = 'invalid: TICK (reserved)';

// Verify only GAS_ADDRESS can issue GAS token
if(!$error && strtoupper($data->TICK)=='GAS' && $data->SOURCE!=GAS_ADDRESS)
$error = 'invalid: GAS_ADDRESS';

// Get information on BTNS token
$btInfo = getTokenInfo($data->TICK);
$isDistributed = isDistributed($data->TICK);
Expand Down
2 changes: 1 addition & 1 deletion indexer/includes/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
define("MAX_TICK_LENGTH",250);

// Reserved BTNS TICK names
$reserved = array('BTC','XCP','GAS');
$reserved = array('BTC','XCP');
define("RESERVED_TICKS",$reserved);

// Min/Max MAX_SUPPLY
Expand Down

0 comments on commit b8eac1a

Please sign in to comment.