Skip to content

Commit

Permalink
tweak deployment configuration params
Browse files Browse the repository at this point in the history
  • Loading branch information
sentilesdal committed Oct 30, 2024
1 parent 8b44be2 commit eb591f5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 15 additions & 5 deletions tasks/deploy/config/base/aerodrome-lp-aero-usdc-91day.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { Address, keccak256, parseEther, toBytes, zeroAddress } from "viem";
import {
Address,
encodeAbiParameters,
keccak256,
parseAbiParameters,
parseEther,
toBytes,
zeroAddress,
} from "viem";
import {
HyperdriveInstanceConfig,
getLinkerDetails,
Expand All @@ -19,7 +27,7 @@ import { BASE_FACTORY_NAME } from "./factory";
export const BASE_AERODROME_LP_AERO_USDC_91DAY_NAME =
"ElementDAO 91 Day Aerodrome LP AERO-USDC Hyperdrive";

const CONTRIBUTION = parseEther("100"); // 1e20
const CONTRIBUTION = BigInt(500000000000); // 500 GWEI

export const BASE_AERODROME_LP_AERO_USDC_91DAY: HyperdriveInstanceConfig<"AerodromeLp"> =
{
Expand All @@ -33,12 +41,14 @@ export const BASE_AERODROME_LP_AERO_USDC_91DAY: HyperdriveInstanceConfig<"Aerodr
toBytes(BASE_AERODROME_LP_AERO_USDC_91DAY_NAME),
),
salt: toBytes32("0x69420"),
extraData: AERO_USDC_GAUGE_ADDRESS_BASE,
extraData: encodeAbiParameters(parseAbiParameters("address"), [
AERO_USDC_GAUGE_ADDRESS_BASE,
]),
contribution: CONTRIBUTION,
// 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"),
fixedAPR: parseEther("0.1"),
timestretchAPR: parseEther("0.2"),
options: async (hre: HardhatRuntimeEnvironment) => ({
extraData: "0x",
asBase: true,
Expand Down
2 changes: 1 addition & 1 deletion tasks/deploy/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const SEPOLIA_USDE_ADDRESS =
export const AERO_USDC_LP_ADDRESS_BASE =
"0x6cDcb1C4A4D1C3C6d054b27AC5B77e89eAFb971d" as Address;

export const AERO_USDC_GAUGE =
export const AERO_USDC_GAUGE_ADDRESS_BASE =
"0x4F09bAb2f0E15e2A078A227FE1537665F55b8360" as Address;

export const CBETH_ADDRESS_BASE =
Expand Down

0 comments on commit eb591f5

Please sign in to comment.