- copy svg logos to
krypt-swap/src/front/shared/images/logo
folder - in
krypt-swap/src/front/client/index.js
set up your url and image
export default {
colored: {
yourUrl: imageName,
localhost: base,
'app.kryptoken.site': logoColored,
},
common: {
yourUrl: imageName,
'app.kryptoken.site': logoBlack,
},
}
(Way to index.html: krypt-wallet/src/front/client/index.html
)
- For change preloader go to
index.html
and change url to tour image
<div id="loader" class="loader">
<img id="loaderImg" src="https://kryptoken.site/wp-content/uploads/2022/04/kryptlogo.png" />
</div>
- change Cryptocurrency color
krypt-wallet/src/front/shared/components/ui/CurrencyIcon/images
- change icon to your (with the same name, e.x. "bitcoin.svg")
- change Cryptocurrency icon
krypt-wallet/src/front/shared/pages/Exchange/CurrencySlider/images
Set your own links in krypt-swap/src/front/shared/helpers/links.js
To prevent any conflicts in future (when you will update your source from our branch)
-
find in source text like this:
<FormattedMessage id="Row313" defaultMessage="Deposit" />
-
go to folder
krypt-wallet/src/front/shared/localisation
open en.json find string with the same id ("Row313"){ "id": "Row313", "message": "Deposit", "files": [ "shared/pages/Currency/Currency.js" ] },
-
change text in
message
value
- go to
krypt-swap/src/front/config/mainnet/erc20.js
- go to
krypt-swap/src/core/swap.app/constants/COINS.js
and add token there too - go to
krypt-swap/src/front/shared/redux/reducers/currencies.js
and add token there too
- go to
krypt-swap/src/front/shared/redux/reducers/currencies.js
and changeaddAssets: false,
totrue
- go to
index.html
- add / edit
window.widgetName
to your own
- go to
index.html
- add / edit
window.defaultWindowTitle
to your own
- go to
index.html
- add / edit
window.LOGO_REDIRECT_LINK
to your own
- add
customExchangeRate
towindow.widgetEvmLikeTokens
- add usd price for
window.widgetEvmLikeTokens
in index.html
edit window.isUserRegisteredAndLoggedIn = false
to true
add config named as your domain to krypt-swap/src/front/externalConfigs/swaponline.github.io.js
window.buildOptions = {
showWalletBanners: true, // Allow to see banners
showHowItsWork: true, // Allow show block 'How its work' on exchange page
curEnabled: {
btc: true,
eth: true,
matic: true,
krypt: true,
ghost: true,
next: true,
},
}
- Make backup and
git push
all your changes to your repository - go here https://github.com/kryptoken101/krypt-wallet/compare?expand=1 , click Compare across forks
- select your repository in "base branch" (left)
- click "Create pull request" (enter any title)
- click "Merge pull request"
If you have conflicts (if sources has been changed on your side) click "resolve conflicts".