Skip to content

Commit

Permalink
chore: fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
web3rover committed Oct 9, 2023
1 parent 31a4c44 commit d72e82d
Show file tree
Hide file tree
Showing 9 changed files with 421 additions and 82 deletions.
2 changes: 1 addition & 1 deletion contracts/RiskFund/ReserveHelpers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ contract ReserveHelpers is Ownable2StepUpgradeable {
ensureNonzeroAddress(corePoolComptroller_);
ensureNonzeroAddress(vbnb_);
ensureNonzeroAddress(nativeWrapped_);

CORE_POOL_COMPTROLLER = corePoolComptroller_;
VBNB = vbnb_;
NATIVE_WRAPPED = nativeWrapped_;
Expand Down
149 changes: 104 additions & 45 deletions deployments/bscmainnet/RiskFund_Implementation.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

52 changes: 25 additions & 27 deletions deployments/bsctestnet/RiskFund_Implementation.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,11 @@
"userdoc",
"evm.gasEstimates"
],
"": [
"ast"
]
"": ["ast"]
}
},
"metadata": {
"useLiteralContent": true
}
}
}
}

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions tests/hardhat/Fork/RiskFund.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ const riskFundFixture = async (): Promise<void> => {
RiskFund,
[pancakeSwapRouter.address, convertToUnit(10, 18), BUSD.address, accessControlManager.address, 150],
{
constructorArgs: [fakeCorePoolComptroller.address, "0x0000000000000000000000000000000000000001", "0x0000000000000000000000000000000000000002"],
constructorArgs: [
fakeCorePoolComptroller.address,
"0x0000000000000000000000000000000000000001",
"0x0000000000000000000000000000000000000002",
],
},
)) as RiskFund;
await riskFund.setShortfallContractAddress(shortfall.address);
Expand All @@ -146,7 +150,11 @@ const riskFundFixture = async (): Promise<void> => {
ProtocolShareReserve,
[fakeProtocolIncome.address, riskFund.address],
{
constructorArgs: [fakeCorePoolComptroller.address, "0x0000000000000000000000000000000000000001", "0x0000000000000000000000000000000000000002"],
constructorArgs: [
fakeCorePoolComptroller.address,
"0x0000000000000000000000000000000000000001",
"0x0000000000000000000000000000000000000002",
],
},
)) as ProtocolShareReserve;

Expand Down
12 changes: 10 additions & 2 deletions tests/hardhat/Fork/RiskFundSwap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ const riskFundFixture = async (): Promise<void> => {
RiskFund,
[pancakeSwapRouter.address, parseUnits("10", 18), BUSD.address, fakeAccessControlManager.address, maxLoopsLimit],
{
constructorArgs: [fakeCorePoolComptroller.address, "0x0000000000000000000000000000000000000001", "0x0000000000000000000000000000000000000002"],
constructorArgs: [
fakeCorePoolComptroller.address,
"0x0000000000000000000000000000000000000001",
"0x0000000000000000000000000000000000000002",
],
},
)) as RiskFund;

Expand All @@ -130,7 +134,11 @@ const riskFundFixture = async (): Promise<void> => {
ProtocolShareReserve,
[fakeProtocolIncome.address, riskFund.address],
{
constructorArgs: [fakeCorePoolComptroller.address, "0x0000000000000000000000000000000000000001", "0x0000000000000000000000000000000000000002"],
constructorArgs: [
fakeCorePoolComptroller.address,
"0x0000000000000000000000000000000000000001",
"0x0000000000000000000000000000000000000002",
],
},
)) as ProtocolShareReserve;

Expand Down
6 changes: 5 additions & 1 deletion tests/hardhat/ProtocolShareReserve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ const fixture = async (): Promise<void> => {
ProtocolShareReserve,
[fakeProtocolIncome.address, fakeRiskFund.address],
{
constructorArgs: [fakeCorePoolComptroller.address, "0x0000000000000000000000000000000000000001", "0x0000000000000000000000000000000000000002"],
constructorArgs: [
fakeCorePoolComptroller.address,
"0x0000000000000000000000000000000000000001",
"0x0000000000000000000000000000000000000002",
],
},
);

Expand Down

0 comments on commit d72e82d

Please sign in to comment.