forked from sushiswap/trident
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f788772
commit fadc44c
Showing
4 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { BENTOBOX_ADDRESS } from "@sushiswap/core-sdk"; | ||
import { task } from "hardhat/config"; | ||
import { MasterDeployer } from "../types"; | ||
|
||
task("whitelist-factory", "Whitelist Router on BentoBox").setAction(async function (_, { ethers, getChainId }) { | ||
const masterDeployer = await ethers.getContract<MasterDeployer>("MasterDeployer"); | ||
|
||
const constantProductPoolFactory = await ethers.getContract<MasterDeployer>("ConstantProductPoolFactory"); | ||
|
||
if (!(await masterDeployer.whitelistedFactories(constantProductPoolFactory.address))) { | ||
await masterDeployer.addToWhitelist(constantProductPoolFactory.address); | ||
console.log("added cpp factory"); | ||
} | ||
}); |
File renamed without changes.