-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from lista-dao/audit/amo
Add script and upload audit report
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
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,28 @@ | ||
const {ethers, upgrades} = require('hardhat') | ||
const hre = require('hardhat') | ||
|
||
let INTERACTION = '0xB68443Ee3e828baD1526b3e0Bdf2Dfc6b1975ec4'; | ||
let lisUSD = '0x0782b6d8c4551B9760e74c0545a9bCD90bdc41E5'; | ||
let oracle = '0xf3afD82A4071f272F403dC176916141f44E6c750'; | ||
let priceDeviation = 200000; | ||
let admin = '0x8d388136d578dCD791D081c6042284CED6d9B0c6'; | ||
|
||
async function main() { | ||
const DynamicDutyCalculator = await hre.ethers.getContractFactory('DynamicDutyCalculator'); | ||
const dynamicDutyCalculator = await upgrades.deployProxy(DynamicDutyCalculator, [INTERACTION, lisUSD, oracle, priceDeviation, admin]); | ||
await dynamicDutyCalculator.waitForDeployment(); | ||
|
||
console.log('DynamicDutyCalculator deployed to:', dynamicDutyCalculator.target); | ||
await run("verify:verify", { | ||
address: dynamicDutyCalculator.target, | ||
constructorArguments: [], | ||
}); | ||
|
||
} | ||
|
||
main() | ||
.then(() => process.exit(0)) | ||
.catch((error) => { | ||
console.error(error) | ||
process.exit(1) | ||
}) |