Initial commit: add .gitignore and README
This commit is contained in:
53
strategies/sample.recursive.json
Normal file
53
strategies/sample.recursive.json
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user