|
1 |
| -import { Address, keccak256, parseEther, toBytes, zeroAddress } from "viem"; |
| 1 | +import { Address, keccak256, parseEther, toBytes } from "viem"; |
2 | 2 | import {
|
3 | 3 | HyperdriveInstanceConfig,
|
4 | 4 | getLinkerDetails,
|
@@ -53,20 +53,24 @@ export const GNOSIS_SXDAI_182DAY: HyperdriveInstanceConfig<"ERC4626"> = {
|
53 | 53 | await pc.waitForTransactionReceipt({ hash: tx });
|
54 | 54 | },
|
55 | 55 | poolDeployConfig: async (hre) => {
|
| 56 | + let factoryContract = await hre.viem.getContractAt( |
| 57 | + "HyperdriveFactory", |
| 58 | + hre.hyperdriveDeploy.deployments.byName(GNOSIS_FACTORY_NAME) |
| 59 | + .address, |
| 60 | + ); |
56 | 61 | return {
|
57 | 62 | baseToken: WXDAI_ADDRESS_GNOSIS,
|
58 | 63 | vaultSharesToken: SXDAI_ADDRESS_GNOSIS,
|
59 | 64 | circuitBreakerDelta: parseEther("0.05"),
|
60 |
| - minimumShareReserves: parseEther("10"), |
| 65 | + minimumShareReserves: parseEther("0.005"), |
61 | 66 | minimumTransactionAmount: parseEther("0.001"),
|
62 | 67 | positionDuration: parseDuration(SIX_MONTHS),
|
63 | 68 | checkpointDuration: parseDuration("1 day"),
|
64 | 69 | timeStretch: 0n,
|
65 |
| - // TODO: Read from the factory. |
66 |
| - governance: (await hre.getNamedAccounts())["deployer"] as Address, |
67 |
| - feeCollector: zeroAddress, |
68 |
| - sweepCollector: zeroAddress, |
69 |
| - checkpointRewarder: zeroAddress, |
| 70 | + governance: await factoryContract.read.governance(), |
| 71 | + feeCollector: await factoryContract.read.feeCollector(), |
| 72 | + sweepCollector: await factoryContract.read.sweepCollector(), |
| 73 | + checkpointRewarder: await factoryContract.read.checkpointRewarder(), |
70 | 74 | ...(await getLinkerDetails(
|
71 | 75 | hre,
|
72 | 76 | hre.hyperdriveDeploy.deployments.byName(GNOSIS_FACTORY_NAME)
|
|
0 commit comments