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

Enable Rango Exchange swap plugin #4984

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
12 changes: 12 additions & 0 deletions src/components/services/ContactsLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,18 @@ const merchantPartners = [
jobTitle: '',
familyName: '',
recordID: ''
},
{
givenName: 'Rango Exchange',
hasThumbnail: true,
thumbnailPath: 'rango.png',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please submit this png to us as part of the PR in the PR comments. It should be square 256x256 or 512x512 png with transparent background

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emailAddresses: [],
postalAddresses: [],
middleName: '',
company: '',
jobTitle: '',
familyName: '',
recordID: ''
}
].map(({ thumbnailPath, ...rest }) => ({ ...rest, thumbnailPath: `${EDGE_CONTENT_SERVER_URI}/${thumbnailPath}` }))

Expand Down
8 changes: 8 additions & 0 deletions src/envConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,14 @@ export const asEnvConfig = asObject({
appId: asOptional(asString, 'edge')
}).withRest
),
RANGO_INIT: asCorePluginInit(
asObject({
appId: asOptional(asString, 'edge'),
rangoApiKey: asOptional(asString, ''),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please send apikey over Discord

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK , it's already sent to you by Martin.

referrerAddress: asOptional(asString, ''),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What type of address is this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be an EVM wallet address.

referrerFee: asOptional(asString, '0.5')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change to 0.75

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems you have already changed it in the other PR.

}).withRest
),

// App options:
APP_CONFIG: asOptional(asString, 'edge'),
Expand Down
1 change: 1 addition & 0 deletions src/util/corePlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export const swapPlugins = {
thorchainda: ENV.THORCHAIN_INIT,
velodrome: true,
xrpdex: ENV.XRPDEX_INIT,
rango: ENV.RANGO_INIT,

cosmosibc: true,
transfer: true
Expand Down