Skip to content

Commit

Permalink
Use AddressZero and cleanup imports
Browse files Browse the repository at this point in the history
  • Loading branch information
shark0der committed Nov 22, 2022
1 parent 2c59340 commit 7b6f74a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions scripts/mocks/buyV2Covers.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
const { BigNumber } = require('ethers');
const { config, network, ethers } = require('hardhat');
const { ZERO_ADDRESS } = require('../../lib/constants');

const {
utils: { parseEther },
} = ethers;
const { BigNumber } = ethers;
const { AddressZero } = ethers.constants;
const { parseEther } = ethers.utils;

async function main() {
console.log(`Using network: ${network.name}`);
Expand Down Expand Up @@ -37,7 +34,7 @@ async function main() {
paymentAsset: payoutAsset,
payWitNXM: false,
commissionRatio: parseEther('0'),
commissionDestination: ZERO_ADDRESS,
commissionDestination: AddressZero,
ipfsData: '',
},
[{ poolId: '0', coverAmountInAsset: amount.toString() }],
Expand All @@ -57,7 +54,7 @@ async function main() {
paymentAsset: payoutAsset,
payWitNXM: false,
commissionRatio: parseEther('0'),
commissionDestination: ZERO_ADDRESS,
commissionDestination: AddressZero,
ipfsData: '',
},
[{ poolId: '0', coverAmountInAsset: amount.toString() }],
Expand All @@ -77,7 +74,7 @@ async function main() {
paymentAsset: payoutAsset,
payWitNXM: false,
commissionRatio: parseEther('0'),
commissionDestination: ZERO_ADDRESS,
commissionDestination: AddressZero,
ipfsData: '',
},
[{ poolId: '0', coverAmountInAsset: amount.toString() }],
Expand Down

0 comments on commit 7b6f74a

Please sign in to comment.