Skip to content

Commit

Permalink
fix nits, add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sentilesdal committed Oct 28, 2024
1 parent a008f40 commit 82e9122
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,15 @@ contract AerodromeLpHyperdriveDeployerCoordinator is
revert IHyperdriveDeployerCoordinator.InvalidBaseToken();
}

// Ensure that the minimum share reserves are equal to 1e7. This value
// Ensure that the minimum share reserves are equal to 1e8. This value
// has been tested to prevent arithmetic overflows in the
// `_updateLiquidity` function when the share reserves are as high as
// 200 million.
if (_deployConfig.minimumShareReserves != 1e8) {
revert IHyperdriveDeployerCoordinator.InvalidMinimumShareReserves();
}

// Ensure that the minimum transaction amount are equal to 1e7. This
// Ensure that the minimum transaction amount are equal to 1e8. This
// value has been tested to prevent precision issues.
if (_deployConfig.minimumTransactionAmount != 1e8) {
revert IHyperdriveDeployerCoordinator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ contract AerodromeLpTarget2Deployer is IHyperdriveTargetDeployer {
// deposited.
require(_extraData.length >= 20, "Invalid _extraData length");
IGauge gauge = abi.decode(_extraData, (IGauge));
// The Aerodrome Gauge contract. This is where the base token will be
// deposited.

return
address(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ contract AerodromeLpTarget3Deployer is IHyperdriveTargetDeployer {
// deposited.
require(_extraData.length >= 20, "Invalid _extraData length");
IGauge gauge = abi.decode(_extraData, (IGauge));
// The Aerodrome Gauge contract. This is where the base token will be
// deposited.

return
address(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ contract AerodromeLpTarget4Deployer is IHyperdriveTargetDeployer {
// deposited.
require(_extraData.length >= 20, "Invalid _extraData length");
IGauge gauge = abi.decode(_extraData, (IGauge));
// The Aerodrome Gauge contract. This is where the base token will be
// deposited.

return
address(
Expand Down
4 changes: 3 additions & 1 deletion tasks/deploy/config/base/aerodrome-lp-aero-usdc-91day.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export const BASE_AERODROME_LP_AERO_USDC_91DAY: HyperdriveInstanceConfig<"Aerodr
salt: toBytes32("0x69420"),
extraData: AERO_USDC_GAUGE_ADDRESS_BASE,
contribution: CONTRIBUTION,
fixedAPR: parseEther("0.08"),
// The emissions APR can be found here:
// https://aerodrome.finance/deposit?token0=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&token1=0x940181a94A35A4569E4529A3CDfB74e38FD98631&type=-1
fixedAPR: parseEther("0.5468"),
timestretchAPR: parseEther("0.075"),
options: async (hre: HardhatRuntimeEnvironment) => ({
extraData: "0x",
Expand Down

0 comments on commit 82e9122

Please sign in to comment.