From 612fe5680d3f8651f62cc43a8c7a77e8be13b574 Mon Sep 17 00:00:00 2001 From: nikdementev Date: Fri, 22 Oct 2021 12:26:13 +0300 Subject: [PATCH] fix: contracts --- Dockerfile | 2 +- docker-compose.yml | 2 +- example.env | 21 ++++++++++++++------- src/constants/contracts.ts | 2 +- 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 86f4498..ba335e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:12 +FROM node:14 WORKDIR /app COPY package.json yarn.lock ./ diff --git a/docker-compose.yml b/docker-compose.yml index e66eed7..7c1864f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: '2' +version: '3' services: server: diff --git a/example.env b/example.env index 9fedc56..79c001a 100644 --- a/example.env +++ b/example.env @@ -5,15 +5,22 @@ LETSENCRYPT_HOST= # server settings PORT=8000 -# commission for service -# transfer fee is a fixed value in ether, 0.01 means 0.01 ether -TRANSFER_SERVICE_FEE=0.01 -# withdrawal fee is a percentage of the amount, 0.05 means 0.05% -WITHDRAWAL_SERVICE_FEE=0.05 +CHAIN_ID=100 +SERVICE_FEE=0.05 + +NODE_ENV=production + +REDIS_URL=redis://127.0.0.1:6379 + REWARD_ADDRESS= -# tx-manager settings -CHAIN_ID=1 PRIVATE_KEY= CONFIRMATIONS=4 MAX_GAS_PRICE=100 + +# commission for service +# transfer fee is a fixed value in ether, 0.01 means 0.01 ether +TRANSFER_SERVICE_FEE=0.000000001 +# withdrawal fee is a percentage of the amount, 0.05 means 0.05% +WITHDRAWAL_SERVICE_FEE=0.01 + diff --git a/src/constants/contracts.ts b/src/constants/contracts.ts index c2a1aff..9cdf6ba 100644 --- a/src/constants/contracts.ts +++ b/src/constants/contracts.ts @@ -4,7 +4,7 @@ export const CONTRACT_NETWORKS: { [chainId in ChainId]: string } = { // [ChainId.MAINNET]: '0x8Bfac9EF3d73cE08C7CEC339C0fE3B2e57814c1E', [ChainId.GOERLI]: '0xE2D9aF526edeB16a02FBC3B68B0eB9B534f9c114', [ChainId.OPTIMISM]: '0xcd7318c299A82E887f5180EF865a4c350dFC9fe5', - [ChainId.XDAI]: '0x4d701A6EE8c13D3AB0d2CE4dfA773c04fa4C5933', + [ChainId.XDAI]: '0xdd85b1dbE3379AFA37F703822f9E328d4bAf8625', }; export const RPC_LIST: { [chainId in ChainId]: string } = {