Skip to content

Commit

Permalink
Merge pull request #73 from lista-dao/audit/amo
Browse files Browse the repository at this point in the history
Add script and upload audit report
  • Loading branch information
qingyang-lista authored Aug 7, 2024
2 parents 0cadc6c + 683e452 commit 9e06aeb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Binary file not shown.
28 changes: 28 additions & 0 deletions scripts/prod/amo/deploy_dynamicDutyCalculator.js
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)
})

0 comments on commit 9e06aeb

Please sign in to comment.