Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 1.37 KB

YPP-0101.md

File metadata and controls

54 lines (43 loc) · 1.37 KB

Proposal

Deploy a stETH lever which allows user to create a leveraged position of stETH token

Details

In this proposal we are going to deploy stETH lever contract and orchestrate it to give required permissions on Giver.

Steps:

  1. Deploy stETH lever contract (no need for governance proposal)
  2. Orchestrate Strategy Lever
    1. Grant permission on Giver for give to the lever
    2. Grant permission on Giver for seize to the lever
  3. Set flashFee factor for joins & fyTokens

Configuration Parameters:

// ----- deployment parameters -----
export const contractDeployments: ContractDeployment[] = [
  {
    addressFile: 'protocol.json',
    name: YIELD_STETH_LEVER,
    contract: 'YieldStEthLever',
    args: [() => protocol().getOrThrow(GIVER)],
  },
]

/// @notice Flashfeefactor to be set on asset's join
/// @param assetId
/// @param flashFeeAmount
export const joinFlashFees: [string, string][] = [
  ['0x303000000000', '0'],
  ['0x303100000000', '0'],
  ['0x303200000000', '0'],
]

/// @notice Flashfeefactor to be set on fyTokens
/// @param seriesId
/// @param flashFee
export const fyTokenFlashFees: [string, string][] = [
  [FYETH2303, '0'], //FYETH2303
  [FYDAI2303, '0'], //FYDAI2303
  [FYUSDC2303, '0'], //FYUSDC2303
  [FYETH2306, '0'], //FYETH2306
  [FYDAI2306, '0'], //FYDAI2306
  [FYUSDC2306, '0'], //FYUSDC2306
]

Testing

Testing was done on tenderly & local forks.