Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit 7c3f513

Browse files
committed
fix: generated
1 parent 9153436 commit 7c3f513

17 files changed

+2900
-1531
lines changed

.gitmodules

+16-22
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,24 @@
11
[submodule "lib/forge-std"]
2-
path = lib/forge-std
3-
url = https://github.com/brockelmore/forge-std
2+
path = lib/forge-std
3+
url = https://github.com/brockelmore/forge-std
44
[submodule "lib/openzeppelin-contracts-upgradeable"]
5-
path = lib/openzeppelin-contracts-upgradeable
6-
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
5+
path = lib/openzeppelin-contracts-upgradeable
6+
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
77
[submodule "lib/solmate"]
8-
path = lib/solmate
9-
url = https://github.com/rari-capital/solmate
10-
[submodule "lib/fuse-flywheel"]
11-
path = lib/fuse-flywheel
12-
url = https://github.com/fei-protocol/fuse-flywheel
8+
path = lib/solmate
9+
url = https://github.com/rari-capital/solmate
1310
[submodule "lib/openzeppelin-contracts"]
14-
path = lib/openzeppelin-contracts
15-
url = https://github.com/OpenZeppelin/openzeppelin-contracts
11+
path = lib/openzeppelin-contracts
12+
url = https://github.com/OpenZeppelin/openzeppelin-contracts
1613
[submodule "lib/pyth-sdk-solidity"]
17-
path = lib/pyth-sdk-solidity
18-
url = https://github.com/pyth-network/pyth-sdk-solidity
14+
path = lib/pyth-sdk-solidity
15+
url = https://github.com/pyth-network/pyth-sdk-solidity
1916
[submodule "lib/solidity-bytes-utils"]
20-
path = lib/solidity-bytes-utils
21-
url = https://github.com/GNSPS/solidity-bytes-utils
17+
path = lib/solidity-bytes-utils
18+
url = https://github.com/GNSPS/solidity-bytes-utils
2219
[submodule "lib/ops"]
23-
path = lib/ops
24-
url = https://github.com/gelatodigital/ops
20+
path = lib/ops
21+
url = https://github.com/gelatodigital/ops
2522
[submodule "lib/adrastia-periphery"]
26-
path = lib/adrastia-periphery
27-
url = https://github.com/adrastia-oracle/adrastia-periphery
28-
[submodule "lib/flywheel-v2"]
29-
path = lib/flywheel-v2
30-
url = https://github.com/ionicprotocol/flywheel-v2
23+
path = lib/adrastia-periphery
24+
url = https://github.com/adrastia-oracle/adrastia-periphery

contracts/ionic/strategies/flywheel/LooplessFlywheelBooster.sol

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// SPDX-License-Identifier: AGPL-3.0-only
22
pragma solidity ^0.8.10;
33

4-
import "./IFlywheelBooster.sol";
4+
import {IFlywheelBooster} from "./IFlywheelBooster.sol";
55
import { ICErc20 } from "../../../compound/CTokenInterfaces.sol";
6+
import {ERC20} from "solmate/tokens/ERC20.sol";
67

78
contract LooplessFlywheelBooster is IFlywheelBooster {
89
string public constant BOOSTER_TYPE = "LooplessFlywheelBooster";

contracts/ionic/strategies/flywheel/rewards/FlywheelDynamicRewards.sol

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// SPDX-License-Identifier: AGPL-3.0-only
22
pragma solidity ^0.8.10;
33

4-
import "./BaseFlywheelRewards.sol";
4+
import {BaseFlywheelRewards} from "./BaseFlywheelRewards.sol";
5+
import {IonicFlywheelCore} from "../IonicFlywheelCore.sol";
6+
import {SafeTransferLib, ERC20} from "solmate/utils/SafeTransferLib.sol";
57
import {SafeCastLib} from "solmate/utils/SafeCastLib.sol";
68

79
/**

contracts/ionic/strategies/flywheel/rewards/FlywheelStaticRewards.sol

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
pragma solidity ^0.8.10;
33

44
import {Auth, Authority} from "solmate/auth/Auth.sol";
5-
import "./BaseFlywheelRewards.sol";
5+
import {BaseFlywheelRewards} from "./BaseFlywheelRewards.sol";
6+
import {ERC20} from "solmate/utils/SafeTransferLib.sol";
7+
import {IonicFlywheelCore} from "../IonicFlywheelCore.sol";
68

79
/**
810
@title Flywheel Static Reward Stream

contracts/ionic/strategies/flywheel/rewards/IonicFlywheelDynamicRewardsPlugin.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface ICERC20 {
77
function plugin() external returns (address);
88
}
99

10-
interface IPlugin {
10+
interface IPlugin_FDR {
1111
function claimRewards() external;
1212
}
1313

@@ -28,7 +28,7 @@ contract IonicFlywheelDynamicRewardsPlugin is FlywheelDynamicRewards {
2828
override
2929
returns (uint192)
3030
{
31-
IPlugin plugin = IPlugin(ICERC20(address(strategy)).plugin());
31+
IPlugin_FDR plugin = IPlugin_FDR(ICERC20(address(strategy)).plugin());
3232
try plugin.claimRewards() {} catch {}
3333

3434
uint256 rewardAmount = rewardToken.balanceOf(address(strategy));

contracts/ionic/strategies/flywheel/rewards/ReplacingFlywheelDynamicRewards.sol

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
pragma solidity ^0.8.10;
33

44
import { FlywheelDynamicRewards } from "./FlywheelDynamicRewards.sol";
5-
import { BaseFlywheelRewards } from "./BaseFlywheelRewards.sol";
65
import { IonicFlywheelCore } from "../IonicFlywheelCore.sol";
76
import { Auth, Authority } from "solmate/auth/Auth.sol";
87
import { SafeTransferLib, ERC20 } from "solmate/utils/SafeTransferLib.sol";

contracts/ionic/strategies/flywheel/rewards/ReplacingFlywheelStaticRewards.sol

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
pragma solidity ^0.8.10;
33

44
import { FlywheelStaticRewards } from "./FlywheelStaticRewards.sol";
5-
import { BaseFlywheelRewards } from "./BaseFlywheelRewards.sol";
65
import { IonicFlywheelCore } from "../IonicFlywheelCore.sol";
76
import { Auth, Authority } from "solmate/auth/Auth.sol";
87
import { SafeTransferLib, ERC20 } from "solmate/utils/SafeTransferLib.sol";

contracts/ionic/strategies/flywheel/rewards/WithdrawableFlywheelStaticRewards.sol

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
pragma solidity ^0.8.10;
33

44
import { FlywheelStaticRewards } from "./FlywheelStaticRewards.sol";
5-
import { BaseFlywheelRewards } from "./BaseFlywheelRewards.sol";
65
import { IonicFlywheelCore } from "../IonicFlywheelCore.sol";
76
import { Auth, Authority } from "solmate/auth/Auth.sol";
87
import { SafeTransferLib, ERC20 } from "solmate/utils/SafeTransferLib.sol";

contracts/test/DeployMarkets.t.sol

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { ERC20 } from "solmate/tokens/ERC20.sol";
77
import { Auth, Authority } from "solmate/auth/Auth.sol";
88
import { MockERC20 } from "solmate/test/utils/mocks/MockERC20.sol";
99
import { IonicFlywheelDynamicRewardsPlugin } from "../ionic/strategies/flywheel/rewards/IonicFlywheelDynamicRewardsPlugin.sol";
10-
import { FlywheelCore } from "flywheel/FlywheelCore.sol";
1110
import { IFlywheelBooster } from "../ionic/strategies/flywheel/IFlywheelBooster.sol";
1211
import { IFlywheelRewards } from "../ionic/strategies/flywheel/rewards/IFlywheelRewards.sol";
1312
import { TransparentUpgradeableProxy } from "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";

0 commit comments

Comments
 (0)