Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-silver committed Jun 27, 2023
1 parent 01ef46e commit a81e4c6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion plugins/scenario/utils/hreForBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { HARDHAT_PARAM_DEFINITIONS } from 'hardhat/internal/core/params/hardhat-
import { Environment } from 'hardhat/internal/core/runtime-environment';
import { ForkSpec } from '../World';
import { HttpNetworkUserConfig } from 'hardhat/types';
import { EthereumProvider } from "hardhat/types/provider";
import { EthereumProvider } from 'hardhat/types/provider';

/*
mimics https://github.com/nomiclabs/hardhat/blob/master/packages/hardhat-core/src/internal/lib/hardhat-lib.ts
Expand Down
2 changes: 1 addition & 1 deletion scenario/constraints/Requirements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ export interface Requirements {
tokenBalances?: object; // Token balance constraint
utilization?: number; // Utilization constraint
prices?: object; // Price constraint
reserves?: number | string // Reserves constraint
reserves?: number | string; // Reserves constraint
}
6 changes: 2 additions & 4 deletions scenario/constraints/ReservesConstraint.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { Constraint, Solution } from '../../plugins/scenario';
import { CometContext } from '../context/CometContext';
import CometActor from '../context/CometActor';
import { expect } from 'chai';
import { Requirements } from './Requirements';
import { baseBalanceOf, exp, factorScale } from '../../test/helpers';
import { ComparativeAmount, ComparisonOp, getAssetFromName, parseAmount, getExpectedBaseBalance, getToTransferAmount } from '../utils';
import { BigNumber } from 'ethers';
import { exp } from '../../test/helpers';
import { ComparisonOp, parseAmount, getToTransferAmount } from '../utils';

export class ReservesConstraint<T extends CometContext, R extends Requirements> implements Constraint<T, R> {
async solve(requirements: R, initialContext: T) {
Expand Down
4 changes: 2 additions & 2 deletions scripts/clone-multisig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ async function main() {

// Get owners and threshold from existing multisig
const GnosisABI = [
{"constant":true,"inputs":[],"name":"getOwners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},
{"constant":true,"inputs":[],"name":"getThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},
{'constant':true,'inputs':[],'name':'getOwners','outputs':[{'internalType':'address[]','name':'','type':'address[]'}],'payable':false,'stateMutability':'view','type':'function'},
{'constant':true,'inputs':[],'name':'getThreshold','outputs':[{'internalType':'uint256','name':'','type':'uint256'}],'payable':false,'stateMutability':'view','type':'function'},
];
const GnosisSafeContract = new hre.ethers.Contract(guardian, GnosisABI, hre.ethers.provider);
const owners = await GnosisSafeContract.getOwners();
Expand Down

0 comments on commit a81e4c6

Please sign in to comment.