Skip to content

Commit

Permalink
update deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
YouStillAlive committed Jul 18, 2024
1 parent 43e2208 commit 706bec2
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,28 @@ enum FeeAmount {
// deploy BNBPartyFactory contract
async function main() {
const partyTarget = ethers.parseEther("100")
const tokenCreationFee = ethers.parseUnits("1", 17)
const returnFeeAmount = ethers.parseUnits("1", 17)
const tokenCreationFee = ethers.parseUnits("1", 16)
const returnFeeAmount = ethers.parseUnits("1", 16)
const bonusFee = ethers.parseUnits("1", 16)
const initialTokenAmount = "10000000000000000000000000"
const sqrtPriceX96 = "25052911542910170730777872"
const tWBNB = "0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"

const BNBPartyFactoryContract = await ethers.getContractFactory("BNBPartyFactory")
const bnbPartyFactory = await BNBPartyFactoryContract.deploy(
partyTarget,
tokenCreationFee,
FeeAmount.HIGH,
FeeAmount.HIGH,
initialTokenAmount,
sqrtPriceX96,
tWBNB,
returnFeeAmount,
bonusFee,
"-92200",
"0"
{
partyTarget: partyTarget,
createTokenFee: tokenCreationFee,
partyLpFee: FeeAmount.HIGH,
lpFee: FeeAmount.HIGH,
initialTokenAmount: initialTokenAmount,
sqrtPriceX96: sqrtPriceX96,
bonusTargetReach: returnFeeAmount,
bonusPartyCreator: bonusFee,
tickLower: "-92200",
tickUpper: "0",
},
tWBNB
)
console.log("BNBPartyFactory deployed to:", await bnbPartyFactory.getAddress())

Expand Down Expand Up @@ -61,7 +63,7 @@ async function main() {

const name = "Party"
const symbol = "Token"
await bnbPartyFactory.createParty(name, symbol)
await bnbPartyFactory.createParty(name, symbol, { value: tokenCreationFee })
}

main().catch((error) => {
Expand Down

0 comments on commit 706bec2

Please sign in to comment.