From 8523a207cec1e80bc809944d910244cd69cb15ce Mon Sep 17 00:00:00 2001 From: Luiz Estacio Date: Wed, 22 Jun 2022 17:20:47 -0300 Subject: [PATCH] feat: add eth and token amount on init pool action --- .github/workflows/deploy-contracts.yml | 6 ++++++ packages/app/scripts/contracts-init/initializePool.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-contracts.yml b/.github/workflows/deploy-contracts.yml index 797e5e95..9e44e4b0 100644 --- a/.github/workflows/deploy-contracts.yml +++ b/.github/workflows/deploy-contracts.yml @@ -17,6 +17,12 @@ on: gas_price: description: 'Min gas price required from the provider' type: number + token_amount: + description: 'Token amount to be used on pool initialization' + type: string + eth_amount: + description: 'Eth amount to be used on pool initialization' + type: string initiate_supply: description: 'Should initialize the pool?' required: true diff --git a/packages/app/scripts/contracts-init/initializePool.ts b/packages/app/scripts/contracts-init/initializePool.ts index 1c971ba7..99e19f38 100644 --- a/packages/app/scripts/contracts-init/initializePool.ts +++ b/packages/app/scripts/contracts-init/initializePool.ts @@ -11,7 +11,7 @@ export async function initializePool( overrides: Overrides ) { const wallet = tokenContract.wallet!; - const tokenAmount = BigInt(TOKEN_AMOUNT || '2000000000000000'); + const tokenAmount = BigInt(TOKEN_AMOUNT || '1200000000000000'); const ethAmount = BigInt(ETH_AMOUNT || '1000500000000'); const address = { value: wallet.address,