-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into shah/remove-dai-add-usds
- Loading branch information
Showing
30 changed files
with
1,972 additions
and
405 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions
44
contracts/contracts/interfaces/poolBooster/IPoolBoostCentralRegistry.sol
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,44 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
interface IPoolBoostCentralRegistry { | ||
/** | ||
* @dev all the supported pool booster types are listed here. It is possible | ||
* to have multiple versions of the factory that supports the same type of | ||
* pool booster. Factories are immutable and this can happen when a factory | ||
* or related pool booster required code update. | ||
* e.g. "PoolBoosterSwapxDouble" & "PoolBoosterSwapxDouble_v2" | ||
*/ | ||
enum PoolBoosterType { | ||
// Supports bribing 2 contracts per pool. Appropriate for Ichi vault concentrated | ||
// liquidity pools where (which is expected in most/all cases) both pool gauges | ||
// require bribing. | ||
SwapXDoubleBooster, | ||
// Supports bribing a single contract per pool. Appropriate for Classic Stable & | ||
// Classic Volatile pools and Ichi vaults where only 1 side (1 of the 2 gauges) | ||
// needs bribing | ||
SwapXSingleBooster | ||
} | ||
|
||
struct PoolBoosterEntry { | ||
address boosterAddress; | ||
address ammPoolAddress; | ||
PoolBoosterType boosterType; | ||
} | ||
|
||
event PoolBoosterCreated( | ||
address poolBoosterAddress, | ||
address ammPoolAddress, | ||
PoolBoosterType poolBoosterType, | ||
address factoryAddress | ||
); | ||
event PoolBoosterRemoved(address poolBoosterAddress); | ||
|
||
function emitPoolBoosterCreated( | ||
address _poolBoosterAddress, | ||
address _ammPoolAddress, | ||
PoolBoosterType _boosterType | ||
) external; | ||
|
||
function emitPoolBoosterRemoved(address _poolBoosterAddress) 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,9 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
interface IPoolBooster { | ||
event BribeExecuted(uint256 amount); | ||
|
||
/// @notice Execute the bribe action | ||
function bribe() external; | ||
} |
8 changes: 8 additions & 0 deletions
8
contracts/contracts/interfaces/poolBooster/ISwapXAlgebraBribe.sol
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,8 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
interface IBribe { | ||
/// @notice Notify a bribe amount | ||
/// @dev Rewards are saved into NEXT EPOCH mapping. | ||
function notifyRewardAmount(address _rewardsToken, uint256 reward) external; | ||
} |
Oops, something went wrong.