Deploy a Notional lever which allows user to create a leveraged position of fCash tokens
In this proposal we are going to deploy Notional lever contract and orchestrate it to give required permissions on Giver
.
Steps:
- Deploy Notional lever contract (no need for governance proposal)
- Orchestrate Notional Lever
- Grant permission on Giver for give to the lever
- Grant permission on Giver for seize to the lever
- 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 was done on tenderly & local forks