diff --git a/indexer/includes/actions/issue.php b/indexer/includes/actions/issue.php index 2ba422b..ed062aa 100644 --- a/indexer/includes/actions/issue.php +++ b/indexer/includes/actions/issue.php @@ -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); diff --git a/indexer/includes/config.php b/indexer/includes/config.php index 3aa3db2..879eeb5 100644 --- a/indexer/includes/config.php +++ b/indexer/includes/config.php @@ -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