Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.26 KB

YPP-0104.md

File metadata and controls

55 lines (43 loc) · 1.26 KB

Proposal

Deploy a Notional lever which allows user to create a leveraged position of fCash tokens

Details

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

Steps:

  1. Deploy Notional lever contract (no need for governance proposal)
  2. Orchestrate Notional 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_NOTIONAL_LEVER,
    contract: 'YieldNotionalLever',
    args: [() => protocol().getOrThrow(GIVER)],
  },
]

/// @notice Flashfeefactor to be set on asset's join
/// @param assetId
/// @param flashFeeAmount
export const joinFlashFees: [string, number][] = [
  [ETH, 0],
  [DAI, 0],
  [USDC, 0],
]

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

Testing

Testing was done on tenderly & local forks