Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Curve Pool Booster. #2327

Open
wants to merge 65 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 56 commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
510755d
feat: Implement Curve Pool Booster.
clement-ux Dec 16, 2024
ca8e2ff
feat: Add proxy for Curve Pool Booster.
clement-ux Dec 17, 2024
d391fce
feaat: prepare deployment file for Curve Pool Booster.
clement-ux Dec 17, 2024
b74ed90
feat: add deployment file for Curve Pool Booster.
clement-ux Dec 17, 2024
e65f962
feat: Add more test.
clement-ux Dec 18, 2024
b3de3b0
Merge remote-tracking branch 'origin/master' into clement/pool-booste…
clement-ux Dec 18, 2024
3ede65d
Revert "Merge remote-tracking branch 'origin/master' into clement/poo…
clement-ux Dec 18, 2024
fe87911
fix: bring back latest changes on master.
clement-ux Dec 18, 2024
3adc712
Fix tests
shahthepro Dec 18, 2024
b3ed12d
feat: send ETH back.
clement-ux Dec 18, 2024
330ca5d
feat: Add events.
clement-ux Dec 19, 2024
de03aa9
feat: rescue tokens.
clement-ux Dec 19, 2024
a4c63d8
feat: add possiblity to blacklist users.
clement-ux Dec 19, 2024
22b9e69
feat: add convex vecrv voter.
clement-ux Dec 19, 2024
03eb2d6
prettier
clement-ux Dec 19, 2024
8aeab0e
feat: Add fee.
clement-ux Dec 20, 2024
566f543
Merge branch 'master' of https://github.com/OriginProtocol/origin-dol…
clement-ux Dec 30, 2024
85ebeb1
Merge branch 'master' into clement/pool-booster-curve
clement-ux Jan 9, 2025
9d90521
fix: adjust deploy number.
clement-ux Jan 9, 2025
38d6dd6
Merge branch 'clement/adjust_deploy_number' into clement/pool-booster…
clement-ux Jan 9, 2025
2c31f26
Merge branch 'master' into clement/pool-booster-curve
clement-ux Jan 9, 2025
fc82bcb
Merge branch 'master' into clement/pool-booster-curve
clement-ux Jan 9, 2025
94ee9f8
fix: adjust deployment file with new Curve Pool.
clement-ux Jan 9, 2025
345438e
feat: add new curve pool/gauge.
clement-ux Jan 9, 2025
0aed8a9
fix: use `Strategizable`instead of operator.
clement-ux Jan 9, 2025
18dc920
prettier.
clement-ux Jan 9, 2025
e8445ce
fix: adjust event names.
clement-ux Jan 10, 2025
7a32e47
docs: add natspec to functions.
clement-ux Jan 13, 2025
05ca2c0
fix: prevent `feeCollector` to be address(0).
clement-ux Jan 13, 2025
f2dcaec
fix: use `call` instead of `transfer` for ETH.
clement-ux Jan 13, 2025
4de93ff
fix: use internal logic for setters.
clement-ux Jan 13, 2025
e98d5a2
Merge branch 'master' into clement/pool-booster-curve
clement-ux Jan 13, 2025
4ec38c8
fix: adjust event name.
clement-ux Jan 13, 2025
2b8e459
fix: cache balance for gas.
clement-ux Jan 13, 2025
345cbb9
fix: ensure receiver is not address(0).
clement-ux Jan 13, 2025
efc34e7
fix: type adjustment.
clement-ux Jan 13, 2025
8f14224
fix: emit event when fees are collected.
clement-ux Jan 13, 2025
aeeac7c
fix: add onlyGovernor for initialization.
clement-ux Jan 13, 2025
4cb5e60
fix: use safeApprove.
clement-ux Jan 13, 2025
3bc438c
fix: add natspec.
clement-ux Jan 17, 2025
f0b9cb4
fix: group logic.
clement-ux Jan 17, 2025
c75f256
fix: use multichain strategist.
clement-ux Jan 21, 2025
523b927
Merge remote-tracking branch 'origin/master' into clement/pool-booste…
clement-ux Jan 21, 2025
56e36aa
prettier.
clement-ux Jan 21, 2025
1a80b6d
fix: adjust deployment number.
clement-ux Jan 21, 2025
c4c2c1e
Merge remote-tracking branch 'origin/master' into clement/pool-booste…
sparrowDom Jan 23, 2025
49a88dd
fix: adjust comments.
clement-ux Jan 23, 2025
f9d4d9b
fix: change from BASE_FEE to FEE_BASE.
clement-ux Jan 23, 2025
8d33a72
fix: add reentrancy blocker.
clement-ux Jan 23, 2025
82770e6
fix: handle rebasing token for fees.
clement-ux Jan 23, 2025
b7baf9d
linter + prettier.
clement-ux Jan 23, 2025
6627d35
Add `closeCampaign()` to CurvePoolBooster. (#2360)
clement-ux Jan 23, 2025
5d19df6
feat: add extra test for Curve Pool Booster.
clement-ux Jan 23, 2025
92c2daa
prettier.
clement-ux Jan 23, 2025
7baaa08
fix: add missing`nonReentrant`.
clement-ux Jan 23, 2025
4ddbbb2
fix: approve 0 before approving.
clement-ux Jan 24, 2025
fa1af7f
fix: gas optimization.
clement-ux Jan 24, 2025
7a85a76
fix: adjust salt.
clement-ux Jan 27, 2025
4ca8b45
Ran prettier for js files
naddison36 Jan 28, 2025
bfab1e2
Fixed deployName in Arb deploy of Pool Booster
naddison36 Jan 28, 2025
33cebda
Deploy 119 and 120 - Curve Pool Booster Mainnet and Arbitrum (#2367)
clement-ux Jan 30, 2025
1248396
Merge remote-tracking branch 'origin/master' into clement/pool-booste…
naddison36 Jan 30, 2025
6997f35
feat: add safeTransfer for USDT.
clement-ux Jan 30, 2025
8647364
fix: adjust deployed address for CurvePoolBooster.
clement-ux Jan 30, 2025
a4d8f77
fix: simplidy tests.
clement-ux Jan 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions contracts/abi/createx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
[
{
"inputs": [
{
"internalType": "bytes32",
"name": "salt",
"type": "bytes32"
},
{
"internalType": "bytes",
"name": "initCode",
"type": "bytes"
}
],
"name": "deployCreate2",
"outputs": [
{
"internalType": "address",
"name": "newContract",
"type": "address"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "salt",
"type": "bytes32"
},
{
"internalType": "bytes",
"name": "initCode",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
},
{
"components": [
{
"internalType": "uint256",
"name": "constructorAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "initCallAmount",
"type": "uint256"
}
],
"internalType": "struct CreateX.Values",
"name": "values",
"type": "tuple"
},
{
"internalType": "address",
"name": "refundAddress",
"type": "address"
}
],
"name": "deployCreate2AndInit",
"outputs": [
{
"internalType": "address",
"name": "newContract",
"type": "address"
}
],
"stateMutability": "payable",
"type": "function"
}
]
50 changes: 50 additions & 0 deletions contracts/contracts/interfaces/ICampaignRemoteManager.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface ICampaignRemoteManager {
function createCampaign(
CampaignCreationParams memory params,
uint256 destinationChainId,
uint256 additionalGasLimit,
address votemarket
) external payable;

function manageCampaign(
CampaignManagementParams memory params,
uint256 destinationChainId,
uint256 additionalGasLimit,
address votemarket
) external payable;

function closeCampaign(
CampaignClosingParams memory params,
uint256 destinationChainId,
uint256 additionalGasLimit,
address votemarket
) external payable;

struct CampaignCreationParams {
uint256 chainId;
address gauge;
address manager;
address rewardToken;
uint8 numberOfPeriods;
uint256 maxRewardPerVote;
uint256 totalRewardAmount;
address[] addresses;
address hook;
bool isWhitelist;
}

struct CampaignManagementParams {
uint256 campaignId;
address rewardToken;
uint8 numberOfPeriods;
uint256 totalRewardAmount;
uint256 maxRewardPerVote;
}

struct CampaignClosingParams {
uint256 campaignId;
}
}
7 changes: 7 additions & 0 deletions contracts/contracts/proxies/Proxies.sol
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,13 @@ contract MorphoGauntletPrimeUSDTStrategyProxy is

}

/**
* @notice CurvePoolBoosterProxy delegates calls to a CurvePoolBooster implementation
*/
contract CurvePoolBoosterProxy is InitializeGovernedUpgradeabilityProxy {

}

/**
* @notice OETHFixedRateDripperProxy delegates calls to a OETHFixedRateDripper implementation
*/
Expand Down
Loading
Loading