Skip to content

Commit

Permalink
Merge pull request #255 from gnoswap-labs/chore/add-gnos-token-path
Browse files Browse the repository at this point in the history
chore: Add a gnos token path
  • Loading branch information
jinoosss authored Dec 14, 2023
2 parents 8896aa2 + 04f9e60 commit 0d99c6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions packages/web/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ NEXT_PUBLIC_PACKAGE_POSITION_PATH="gno.land/r/demo/position"
NEXT_PUBLIC_PACKAGE_STAKER_PATH="gno.land/r/demo/staker"
NEXT_PUBLIC_PACKAGE_NFT_PATH="gno.land/r/demo/gnft"
NEXT_PUBLIC_GOVERNANCE_PATH="gno.land/r/demo/gov"
NEXT_PUBLIC_WRAPPED_GNOT_PATH="gno.land/r/demo/wugnot"
NEXT_PUBLIC_PACKAGE_ROUTER_ADDRESS="g1pjtpgjpsn4hjfv2n4mpz8cczdn32jkpsqwxuav"
NEXT_PUBLIC_PACKAGE_POOL_ADDRESS="g15z32w7txv6lw259xzhzzmwtwmcjjc0m6dqzh6f"
NEXT_PUBLIC_PACKAGE_POSITION_ADDRESS="g10wwa53xgu4397kvzz7akxar9370zjdpwux5th9"
NEXT_PUBLIC_PACKAGE_STAKER_ADDRESS="g1puv9dz470prjshjm9qyg25dyfvrgph2kvjph68"
NEXT_PUBLIC_PACKAGE_GOVERNANCE_ADDRESS="g1kmat25auuqf0h5qvd4q7s707r8let5sky4tr76"
NEXT_PUBLIC_PACKAGE_GOVERNANCE_ADDRESS="g1kmat25auuqf0h5qvd4q7s707r8let5sky4tr76"
NEXT_PUBLIC_WRAPPED_GNOT_PATH="gno.land/r/demo/wugnot"
NEXT_PUBLIC_GNS_TOKEN_PATH="gno.land/r/demo/gns"
NEXT_PUBLIC_CREATE_POOL_FEE="500"
4 changes: 3 additions & 1 deletion packages/web/src/repositories/pool/pool-repository-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const WRAPPED_GNOT_PATH = process.env.NEXT_PUBLIC_WRAPPED_GNOT_PATH || "";
const POOL_PATH = process.env.NEXT_PUBLIC_PACKAGE_POOL_PATH || "";
const POSITION_PATH = process.env.NEXT_PUBLIC_PACKAGE_POSITION_PATH || "";
const POOL_ADDRESS = process.env.NEXT_PUBLIC_PACKAGE_POOL_ADDRESS || "";
const GNS_TOKEN_PATH = process.env.NEXT_PUBLIC_GNS_TOKEN_PATH || "";
const CREATE_POOL_FEE = process.env.NEXT_PUBLIC_CREATE_POOL_FEE || "";

export class PoolRepositoryImpl implements PoolRepository {
private networkClient: NetworkClient;
Expand Down Expand Up @@ -267,7 +269,7 @@ export class PoolRepositoryImpl implements PoolRepository {
}

private static makeApproveGnosTokenMessage(caller: string) {
return this.makeApproveTokenMessage("gno.land/r/gns", "500", caller);
return this.makeApproveTokenMessage(GNS_TOKEN_PATH, CREATE_POOL_FEE, caller);
}

private static makeApproveTokenMessage(
Expand Down

0 comments on commit 0d99c6d

Please sign in to comment.