Skip to content

Commit

Permalink
add RSK tokens (#8666)
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc authored Mar 24, 2021
1 parent 5c2a8dd commit e646fee
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions app/assets/v2/js/pages/bounty_details2.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ Vue.mixin({
case 'RBTC':
case 'RDOC':
case 'DOC':
case 'RIF':
case 'SOV':
url = `https://explorer.rsk.co/tx/${txn}`;
break;

Expand Down Expand Up @@ -193,6 +195,8 @@ Vue.mixin({
case 'RBTC':
case 'RDOC':
case 'DOC':
case 'RIF':
case 'SOV':
url = `https://explorer.rsk.co/address/${address}`;
break;

Expand Down Expand Up @@ -414,6 +418,8 @@ Vue.mixin({
case 'RBTC':
case 'DOC':
case 'RDOC':
case 'RIF':
case 'SOV':
tenant = 'RSK';
break;

Expand Down
4 changes: 2 additions & 2 deletions app/dashboard/sync/rsk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
Expand Down Expand Up @@ -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":
Expand Down
4 changes: 2 additions & 2 deletions app/grants/sync/rsk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit e646fee

Please sign in to comment.