Skip to content

Commit

Permalink
fix: use gd token address from deployment.json (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
L03TJ3 authored Jan 30, 2024
1 parent e608c46 commit a86c664
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/app/src/models/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Token } from '@uniswap/sdk-core';
import GdContracts from '@gooddollar/goodprotocol/releases/deployment.json';

// 5%
export const acceptablePriceImpact = 5;
Expand All @@ -14,7 +15,7 @@ export const SupportedNetworkNames: Record<SupportedNetwork, string> = {
// Uniswap V3 Router on Celo
export const UNISWAP_V3_ROUTER_ADDRESS = '0x5615CDAb10dc425a742d643d949a7F474C01abc4';

export const GDToken: Token = new Token(SupportedNetwork.CELO, '0x62B8B11039FcfE5aB0C56E502b1C372A3d2a9c7A', 18, 'G$');
export const GDToken: Token = new Token(SupportedNetwork.CELO, GdContracts['production-celo'].GoodDollar, 18, 'G$');

// if a token is not in this list, the address from the Celo Token List is used
export const coingeckoTokenMapping: Record<string, `0x${string}`> = {
Expand Down
3 changes: 1 addition & 2 deletions packages/common/src/constants/addresses.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// EXTERNAL CONTRACTS

export const DAI_ADDRESS = '0x6B175474E89094C44Da98b954EedeAC495271d0F';
export const DAI_ADDRESS = '0x6B175474E89094C44Da98b954EedeAC495271d0F'; // dai-mainnet
2 changes: 1 addition & 1 deletion packages/sdk-js/scripts/createPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const main = async () => {
manager: '0xEbB3341cD1511035845f1b37e6A2BFCDcf433Ad7',
membersValidator: ethers.constants.AddressZero,
uniquenessValidator: ethers.constants.AddressZero,
rewardToken: '0x62B8B11039FcfE5aB0C56E502b1C372A3d2a9c7A', //celo dev token
rewardToken: '0x62B8B11039FcfE5aB0C56E502b1C372A3d2a9c7A', //celo production token
allowRewardOverride: false,
};

Expand Down

0 comments on commit a86c664

Please sign in to comment.