From e646feef4d1e187dba38c4bef1dc8a6ff1d27b36 Mon Sep 17 00:00:00 2001 From: Aditya Anand M C Date: Wed, 24 Mar 2021 15:29:31 +0530 Subject: [PATCH] add RSK tokens (#8666) --- app/assets/v2/js/pages/bounty_details2.js | 6 ++++++ app/dashboard/sync/rsk.py | 4 ++-- app/grants/sync/rsk.py | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/app/assets/v2/js/pages/bounty_details2.js b/app/assets/v2/js/pages/bounty_details2.js index 808023b9312..c887da6706c 100644 --- a/app/assets/v2/js/pages/bounty_details2.js +++ b/app/assets/v2/js/pages/bounty_details2.js @@ -139,6 +139,8 @@ Vue.mixin({ case 'RBTC': case 'RDOC': case 'DOC': + case 'RIF': + case 'SOV': url = `https://explorer.rsk.co/tx/${txn}`; break; @@ -193,6 +195,8 @@ Vue.mixin({ case 'RBTC': case 'RDOC': case 'DOC': + case 'RIF': + case 'SOV': url = `https://explorer.rsk.co/address/${address}`; break; @@ -414,6 +418,8 @@ Vue.mixin({ case 'RBTC': case 'DOC': case 'RDOC': + case 'RIF': + case 'SOV': tenant = 'RSK'; break; diff --git a/app/dashboard/sync/rsk.py b/app/dashboard/sync/rsk.py index 3c17b069c0e..35d92d34015 100644 --- a/app/dashboard/sync/rsk.py +++ b/app/dashboard/sync/rsk.py @@ -14,7 +14,7 @@ def find_txn_on_rsk_explorer(fulfillment): # amount = fulfillment.payout_amount payeeAddress = fulfillment.fulfiller_address - if token_name not in ['RBTC', 'RDOC', 'DOC']: + if token_name not in ['RBTC', 'RDOC', 'DOC', 'RIF', 'SOV']: return None url = f'https://blockscout.com/rsk/mainnet/api?module=account&action=txlist&address={funderAddress}' @@ -44,7 +44,7 @@ def get_rsk_txn_status(fulfillment): # amount = fulfillment.payout_amount - if token_name not in ['RBTC', 'RDOC', 'DOC']: + if token_name not in ['RBTC', 'RDOC', 'DOC', 'RIF', 'SOV']: return None if not txnid or txnid == "0x0": diff --git a/app/grants/sync/rsk.py b/app/grants/sync/rsk.py index 9652b488a59..d4c845edb19 100644 --- a/app/grants/sync/rsk.py +++ b/app/grants/sync/rsk.py @@ -16,7 +16,7 @@ def find_txn_on_rsk_explorer(contribution): if subscription.tenant != 'RSK': return None - if token_symbol not in ['RBTC', 'RDOC', 'DOC']: + if token_symbol not in ['RBTC', 'RDOC', 'DOC', 'RIF', 'SOV']: return None to_address = grant.rsk_payout_address @@ -58,7 +58,7 @@ def get_rsk_txn_status(contribution, network='mainnet'): from_address = subscription.contributor_address # amount = subscription.amount_per_period - if token_symbol not in ['RBTC', 'RDOC', 'DOC']: + if token_symbol not in ['RBTC', 'RDOC', 'DOC', 'RIF', 'SOV']: return None