diff --git a/api-template.yaml b/api-template.yaml index 0431fe7e..ae30f389 100644 --- a/api-template.yaml +++ b/api-template.yaml @@ -107,6 +107,8 @@ Parameters: Type: 'AWS::SSM::Parameter::Value' AuthleteApiSecret: Type: 'AWS::SSM::Parameter::Value' + BurnAddress: + Type: 'AWS::SSM::Parameter::Value' Globals: Function: @@ -152,6 +154,7 @@ Globals: ELASTIC_SEARCH_ENDPOINT: !Ref ElasticSearchEndpoint PAID_ARTICLES_TABLE_NAME: !Ref PaidArticlesTableName PAID_STATUS_TABLE_NAME: !Ref PaidStatusTableName + BURN_ADDRESS: !Ref BurnAddress Resources: RestApi: diff --git a/deploy.sh b/deploy.sh index 251811d4..b1630311 100755 --- a/deploy.sh +++ b/deploy.sh @@ -89,6 +89,7 @@ aws cloudformation deploy \ DailyLimitTokenSendValue=${SSM_PARAMS_PREFIX}DailyLimitTokenSendValue \ AuthleteApiKey=${SSM_PARAMS_PREFIX}AuthleteApiKey \ AuthleteApiSecret=${SSM_PARAMS_PREFIX}AuthleteApiSecret \ + BurnAddress=${SSM_PARAMS_PREFIX}BurnAddress \ --capabilities CAPABILITY_IAM \ --no-fail-on-empty-changeset diff --git a/src/handlers/me/wallet/tip/me_wallet_tip.py b/src/handlers/me/wallet/tip/me_wallet_tip.py index 3f761b47..908c2233 100644 --- a/src/handlers/me/wallet/tip/me_wallet_tip.py +++ b/src/handlers/me/wallet/tip/me_wallet_tip.py @@ -167,7 +167,7 @@ def __burn_transaction(burn_quantity, user_eth_address, auth, headers): burn_payload = json.dumps( { 'from_user_eth_address': user_eth_address, - 'to_user_eth_address': os.environ['BurnAddress'], + 'to_user_eth_address': os.environ['BURN_ADDRESS'], 'tip_value': burn_token } )