Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add RSK tokens #8666

Merged
merged 1 commit into from
Mar 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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