Files
strategic/strategies/sample.recursive.json

54 lines
1.1 KiB
JSON
Raw Permalink Normal View History

{
"name": "Recursive Leverage",
"description": "Recursive leverage strategy using Aave v3",
"chain": "mainnet",
"blinds": [
{
"name": "collateralAmount",
"type": "uint256",
"description": "Initial collateral amount"
},
{
"name": "leverageFactor",
"type": "uint256",
"description": "Target leverage factor"
}
],
"guards": [
{
"type": "minHealthFactor",
"params": {
"minHF": 1.2,
"user": "0x0000000000000000000000000000000000000000"
},
"onFailure": "revert"
},
{
"type": "maxGas",
"params": {
"maxGasLimit": "5000000"
}
}
],
"steps": [
{
"id": "supply",
"action": {
"type": "aaveV3.supply",
"asset": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"amount": "{{collateralAmount}}"
}
},
{
"id": "borrow",
"action": {
"type": "aaveV3.borrow",
"asset": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"amount": "{{leverageFactor}}",
"interestRateMode": "variable"
}
}
]
}