-
Notifications
You must be signed in to change notification settings - Fork 6
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
1 parent
f5a6ead
commit 7029195
Showing
13 changed files
with
351 additions
and
37 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 |
---|---|---|
|
@@ -31,6 +31,11 @@ import {Address} from "@openzeppelin/contracts/utils/Address.sol"; | |
|
||
import {ETH2DepositWithdrawalCredentials} from "../lib/ETH2DepositWithdrawalCredentials.sol"; | ||
|
||
/// @title SharedDepositMinterV2 | ||
/// @author ChimeraDefi - [email protected] | sharedstake.org | ||
/// @notice Mints LSD tokens for ETH deposited to the contract. Handles the depositing of ETH to the ETH2 deposit contract and validator creation | ||
/// @dev Deployment params: | ||
/// - addresses : [feeCalc, sgeth, wsgeth, gov] | ||
contract SharedDepositMinterV2 is AccessControl, Pausable, ReentrancyGuard, ETH2DepositWithdrawalCredentials { | ||
/* ========== STATE VARIABLES ========== */ | ||
uint256 public adminFee; | ||
|
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
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
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
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
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,20 @@ | ||
import {DeployFunction} from "hardhat-deploy/types"; | ||
import Ship from "../utils/ship"; | ||
import {DepositContract__factory} from "../types"; | ||
|
||
/** | ||
* | ||
* This only needs to be deployed on testnets like sepolia which do not have a deposit contract. | ||
* Do not deploy on mainnet | ||
*/ | ||
const func: DeployFunction = async hre => { | ||
const {deploy} = await Ship.init(hre); | ||
|
||
const dc = await deploy(DepositContract__factory, { | ||
args: [], | ||
}); | ||
}; | ||
|
||
export default func; | ||
func.tags = ["depositContract"]; | ||
func.dependencies = []; |
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,25 @@ | ||
import {DeployFunction} from "hardhat-deploy/types"; | ||
import Ship from "../utils/ship"; | ||
import {FeeCalc__factory} from "../types"; | ||
|
||
/** | ||
* | ||
* This only needs to be deployed on testnets like sepolia which do not have a deposit contract. | ||
*/ | ||
const func: DeployFunction = async hre => { | ||
const {deploy} = await Ship.init(hre); | ||
|
||
const fc = await deploy(FeeCalc__factory, { | ||
args: [{ | ||
adminFee : 10, | ||
exitFee : 0, | ||
refundFeesOnWithdraw : true, | ||
chargeOnDeposit : true, | ||
chargeOnExit : false, | ||
}], | ||
}); | ||
}; | ||
|
||
export default func; | ||
func.tags = ["feeCalc"]; | ||
func.dependencies = []; |
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
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
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
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
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
Oops, something went wrong.