Skip to content

Commit

Permalink
add BEP-20 tokens (Binance Smart Chain): BNB, BUSDm BTCB
Browse files Browse the repository at this point in the history
add to Listing vote: CTW, WCA
  • Loading branch information
serdrdoor committed Mar 17, 2022
1 parent 0747cb2 commit f184518
Show file tree
Hide file tree
Showing 13 changed files with 68 additions and 17 deletions.
Binary file added app/assets/asset-symbols/rudex.bnb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/asset-symbols/rudex.btcb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/asset-symbols/rudex.busd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/assets/asset-symbols/symbols.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ require("file-loader?name=asset-symbols/[name].png!./rudex.trx.png");
require("file-loader?name=asset-symbols/[name].png!./rudex.dec.png");
require("file-loader?name=asset-symbols/[name].png!./rudex.sps.png");

require("file-loader?name=asset-symbols/[name].png!./rudex.bnb.png");
require("file-loader?name=asset-symbols/[name].png!./rudex.busd.png");
require("file-loader?name=asset-symbols/[name].png!./rudex.btcb.png");

//Delisted
require("file-loader?name=asset-symbols/[name].png!./rudex.ppy.png");
require("file-loader?name=asset-symbols/[name].png!./rudex.smoke.png");
Expand Down
2 changes: 2 additions & 0 deletions app/assets/coins-logo/coins.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ require("file-loader?name=coins-logo/[name].png!./cri.png");
require("file-loader?name=coins-logo/[name].png!./gwn.png");
require("file-loader?name=coins-logo/[name].png!./rat.png");
require("file-loader?name=coins-logo/[name].png!./ttt.png");
require("file-loader?name=coins-logo/[name].png!./ctw.png");
require("file-loader?name=coins-logo/[name].png!./wca.png");

require("file-loader?name=coins-logo/[name].png!./pzm.png");
Binary file added app/assets/coins-logo/ctw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/coins-logo/wca.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 29 additions & 1 deletion app/branding.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ export function getMyMarketsQuotes() {
"RUDEX.TRX",

"RUDEX.DEC",
"RUDEX.SPS"
"RUDEX.SPS",

"RUDEX.BNB",
"RUDEX.BUSD",
"RUDEX.BTCB"

//"RUDEX.PPY",
//"RUDEX.SMOKE",
Expand Down Expand Up @@ -282,6 +286,10 @@ export function getFeaturedMarkets(quotes = []) {
["RUDEX.USDT", "RUDEX.DEC"],
["RUDEX.USDT", "RUDEX.SPS"],

["RUDEX.USDT", "RUDEX.BNB"],
["RUDEX.USDT", "RUDEX.BUSD"],
["RUDEX.USDT", "RUDEX.BTCB"],

//["RUDEX.USDT", "RUDEX.PPY"],
//["RUDEX.USDT", "RUDEX.SMOKE"],
//["RUDEX.USDT", "RUDEX.WLS"],
Expand All @@ -306,6 +314,9 @@ export function getFeaturedMarkets(quotes = []) {
["RUDEX.BTC", "RUDEX.BTS"],
["RUDEX.BTC", "RUDEX.TRX"],

["RUDEX.BTC", "RUDEX.BNB"],
["RUDEX.BTC", "RUDEX.BTCB"],

//["RUDEX.BTC", "RUDEX.PPY"],
//["RUDEX.BTC", "RUDEX.SMOKE"],
//["RUDEX.BTC", "RUDEX.WLS"],
Expand Down Expand Up @@ -510,6 +521,22 @@ export function getListingCoins() {
account: "rudex-ttt",
goal: 10000,
votes: 0
},
{
name: "Clean the World",
ticker: "CTW",
page: "https://www.clean-the-world-official.com",
account: "rudex-ctw",
goal: 5000,
votes: 0
},
{
name: "WaterCoin Acua",
ticker: "WCA",
page: "https://watercoinacua.com",
account: "rudex-wca",
goal: 5000,
votes: 0
}

//Disabled
Expand Down Expand Up @@ -570,6 +597,7 @@ export function getListedCoins() {
{
name: "PRIZM",
ticker: "PZM",
page: "https://pzm.space",
account: "rudex-prizm",
goal: 10000,
votes: 0
Expand Down
2 changes: 2 additions & 0 deletions app/components/Account/AccountDepositWithdraw.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ class AccountDepositWithdraw extends React.Component {
<RuDexGateway
account={account}
coins={rudexGatewayCoins}
network={"native"}
gateway={"rudex"}
/>
) : null}
Expand Down Expand Up @@ -353,6 +354,7 @@ class AccountDepositWithdraw extends React.Component {
<RuDexGateway
account={account}
coins={rudexGatewayCoinsBEP20}
network={"bsc-tokens"}
gateway={"rudex"}
/>
) : null}
Expand Down
4 changes: 4 additions & 0 deletions app/components/Account/AccountOverview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ class AccountOverview extends React.Component {
"RUDEX.DEC",
"RUDEX.SPS",

"RUDEX.BNB",
"RUDEX.BUSD",
"RUDEX.BTCB",

//Delisted
"RUDEX.PPY",
"RUDEX.SMOKE",
Expand Down
16 changes: 6 additions & 10 deletions app/components/Account/AccountPortfolioList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -784,11 +784,9 @@ class AccountPortfolioList extends React.Component {
) : (
<Translate content="modal.deposit.submit" />
),
customizable: atLeastOneHas.deposit
? undefined
: {
default: false
},
customizable: {
default: false
},
dataIndex: "deposit",
align: "center",
render: item => {
Expand All @@ -798,11 +796,9 @@ class AccountPortfolioList extends React.Component {
{
className: "column-hide-medium",
title: <Translate content="modal.withdraw.submit" />,
customizable: atLeastOneHas.withdraw
? undefined
: {
default: false
},
customizable: {
default: false
},
dataIndex: "withdraw",
align: "center",
render: item => {
Expand Down
25 changes: 20 additions & 5 deletions app/components/DepositWithdraw/rudex/RuDexGateway.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import "react-select/dist/react-select.css";

class RuDexGateway extends React.Component {
constructor(props) {
super();
super(props);

this.state = {
activeCoin: this._getActiveCoin(props, {action: "deposit"}),
Expand All @@ -27,9 +27,18 @@ class RuDexGateway extends React.Component {
}

_getActiveCoin(props, state) {
let cachedCoin = props.viewSettings.get("activeCoin_rudex", null);
let firstTimeCoin = "RUDEX.GOLOS";
let activeCoin = cachedCoin ? cachedCoin : firstTimeCoin;
let cachedCoin;
let firstTimeCoin;
let activeCoin;

cachedCoin = props.viewSettings.get(
"activeCoin_rudex_" + props.network,
null
);
//firstTimeCoin = "GOLOS";
firstTimeCoin = props.coins[0].name;

activeCoin = cachedCoin ? cachedCoin : firstTimeCoin;

if (state.action === "withdraw") {
activeCoin = this._findCoinByName(props, activeCoin).symbol;
Expand All @@ -44,6 +53,12 @@ class RuDexGateway extends React.Component {
activeCoin: this._getActiveCoin(nextProps, this.state.action)
});
}

if (nextProps.network !== this.props.network) {
this.setState({
activeCoin: this._getActiveCoin(nextProps, this.state.action)
});
}
}

/* onSelectCoin(e) {
Expand All @@ -66,7 +81,7 @@ class RuDexGateway extends React.Component {
if (this.state.action === "withdraw") {
coinName = this._findCoinBySymbol(this.props, coinName).backingCoin;
}
setting["activeCoin_rudex"] = coinName;
setting["activeCoin_rudex_" + this.props.network] = coinName;
SettingsActions.changeViewSetting(setting);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "RuDEX3-light",
"version": "3.3.220301",
"version": "3.3.220317",
"description": "Advanced wallet interface for the Graphene financial blockchain.",
"homepage": "https://github.com/blckchnd/rudex-ui",
"author": "RuDEX Team <[email protected]>",
Expand Down

0 comments on commit f184518

Please sign in to comment.