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

Deployed sUSDS #1183

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Deployed sUSDS
  • Loading branch information
jalextowle committed Oct 2, 2024
commit f62ce7794b70f4a5bb0b2f2314ebbb22f7120927
30 changes: 30 additions & 0 deletions deployments.json
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,36 @@
"contract": "ERC4626Hyperdrive",
"address": "0xA4090183878d5B7b6Ad104863743dd7E58985321",
"timestamp": "2024-09-03T21:47:16.998Z"
},
"ElementDAO 182 Day sUSDS Hyperdrive_ERC4626Target0": {
"contract": "ERC4626Target0",
"address": "0xAa8a28eA55ee5c4974A2eaBDfcc7B965718bd243",
"timestamp": "2024-10-02T22:35:39.024Z"
},
"ElementDAO 182 Day sUSDS Hyperdrive_ERC4626Target1": {
"contract": "ERC4626Target1",
"address": "0x413D8f7559E37860757F4B0B539aFD2ac48cda90",
"timestamp": "2024-10-02T22:34:50.334Z"
},
"ElementDAO 182 Day sUSDS Hyperdrive_ERC4626Target2": {
"contract": "ERC4626Target2",
"address": "0x080Fc6A0E66502C6e15f0f3200c87c83B9461400",
"timestamp": "2024-10-02T22:35:03.532Z"
},
"ElementDAO 182 Day sUSDS Hyperdrive_ERC4626Target3": {
"contract": "ERC4626Target3",
"address": "0xE71747Db194a3c8d56b548e8a432198E8e4EE30d",
"timestamp": "2024-10-02T22:35:16.753Z"
},
"ElementDAO 182 Day sUSDS Hyperdrive_ERC4626Target4": {
"contract": "ERC4626Target4",
"address": "0x6A05C863cB7858D196A4F5c83876a8bEf3b96820",
"timestamp": "2024-10-02T22:35:25.832Z"
},
"ElementDAO 182 Day sUSDS Hyperdrive": {
"contract": "ERC4626Hyperdrive",
"address": "0x8f2AC104e07d94488a1821E5A393351FCA9239aa",
"timestamp": "2024-10-02T22:35:38.907Z"
}
},
"gnosis": {
Expand Down
1 change: 1 addition & 0 deletions tasks/deploy/config/mainnet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ export * from "./staking-usds-sky-182day";
export * from "./steth-182day";
export * from "./steth-coordinator";
export * from "./stusd-182day";
export * from "./susds-182day";
16 changes: 10 additions & 6 deletions tasks/deploy/config/mainnet/susds-182day.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Address, keccak256, parseEther, toBytes, zeroAddress } from "viem";
import { Address, keccak256, parseEther, toBytes } from "viem";
import {
HyperdriveInstanceConfig,
getLinkerDetails,
Expand Down Expand Up @@ -54,6 +54,11 @@ export const MAINNET_SUSDS_182DAY: HyperdriveInstanceConfig<"ERC4626"> = {
await pc.waitForTransactionReceipt({ hash: tx });
},
poolDeployConfig: async (hre) => {
let factoryContract = await hre.viem.getContractAt(
"HyperdriveFactory",
hre.hyperdriveDeploy.deployments.byName(MAINNET_FACTORY_NAME)
.address,
);
return {
baseToken: USDS_ADDRESS_MAINNET,
vaultSharesToken: SUSDS_ADDRESS_MAINNET,
Expand All @@ -63,11 +68,10 @@ export const MAINNET_SUSDS_182DAY: HyperdriveInstanceConfig<"ERC4626"> = {
positionDuration: parseDuration(SIX_MONTHS),
checkpointDuration: parseDuration("1 day"),
timeStretch: 0n,
// TODO: Read from the factory.
governance: (await hre.getNamedAccounts())["deployer"] as Address,
feeCollector: zeroAddress,
sweepCollector: zeroAddress,
checkpointRewarder: zeroAddress,
governance: await factoryContract.read.hyperdriveGovernance(),
feeCollector: await factoryContract.read.feeCollector(),
sweepCollector: await factoryContract.read.sweepCollector(),
checkpointRewarder: await factoryContract.read.checkpointRewarder(),
...(await getLinkerDetails(
hre,
hre.hyperdriveDeploy.deployments.byName(MAINNET_FACTORY_NAME)
Expand Down
Loading