-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Fatel
committed
Feb 29, 2024
1 parent
3152693
commit cac24b5
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
|
||
pragma solidity 0.7.6; | ||
|
||
import "./XOLE.sol"; | ||
|
||
contract SOLE is XOLE { | ||
function enableClaimable(address gov) public onlyAdmin { | ||
IBlast(0x4300000000000000000000000000000000000002).configure(IBlast.YieldMode.CLAIMABLE, IBlast.GasMode.CLAIMABLE, gov); | ||
IBlastPoints(0x2536FE9ab3F511540F2f9e2eC2A805005C3Dd800).configurePointsOperator(gov); | ||
} | ||
function setOleLpStakeToken2(address _oleLpStakeToken) external onlyAdmin { | ||
oleLpStakeToken = IERC20(_oleLpStakeToken); | ||
} | ||
} | ||
|
||
interface IBlast { | ||
enum YieldMode { | ||
AUTOMATIC, | ||
DISABLED, | ||
CLAIMABLE | ||
} | ||
|
||
|
||
enum GasMode { | ||
VOID, | ||
CLAIMABLE | ||
} | ||
|
||
function configure(YieldMode _yield, GasMode gasMode, address governor) external; | ||
} | ||
|
||
interface IBlastPoints { | ||
function configurePointsOperator(address operator) external; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.7.6; | ||
|
||
import "./XOLEDelegator.sol"; | ||
|
||
contract SOLEDelegator is XOLEDelegator { | ||
|
||
constructor( | ||
address _oleToken, | ||
DexAggregatorInterface _dexAgg, | ||
uint _devFundRatio, | ||
address _dev, | ||
address payable _admin, | ||
address implementation_)XOLEDelegator(_oleToken, _dexAgg, _devFundRatio, _dev, _admin, implementation_) { | ||
} | ||
|
||
} |