Skip to content

Commit

Permalink
add SOLE.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatel committed Feb 29, 2024
1 parent 3152693 commit cac24b5
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
35 changes: 35 additions & 0 deletions contracts/SOLE.sol
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;
}
17 changes: 17 additions & 0 deletions contracts/SOLEDelegator.sol
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_) {
}

}

0 comments on commit cac24b5

Please sign in to comment.