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