Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

feat: add eth and token amount on init pool action #318

Merged
merged 2 commits into from
Jun 22, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/deploy-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/app/scripts/contracts-init/initializePool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down