55 lines
1.2 KiB
JSON
55 lines
1.2 KiB
JSON
{
|
|
"name": "Liquidation Helper",
|
|
"description": "Helper strategy for liquidating undercollateralized positions",
|
|
"chain": "mainnet",
|
|
"blinds": [
|
|
{
|
|
"name": "borrowerAddress",
|
|
"type": "address",
|
|
"description": "Address of borrower to liquidate"
|
|
},
|
|
{
|
|
"name": "debtAsset",
|
|
"type": "address",
|
|
"description": "Debt asset to repay"
|
|
},
|
|
{
|
|
"name": "collateralAsset",
|
|
"type": "address",
|
|
"description": "Collateral asset to seize"
|
|
}
|
|
],
|
|
"steps": [
|
|
{
|
|
"id": "flashLoan",
|
|
"action": {
|
|
"type": "aaveV3.flashLoan",
|
|
"assets": ["{{debtAsset}}"],
|
|
"amounts": ["1000000"]
|
|
}
|
|
},
|
|
{
|
|
"id": "liquidate",
|
|
"action": {
|
|
"type": "aaveV3.repay",
|
|
"asset": "{{debtAsset}}",
|
|
"amount": "1000000",
|
|
"rateMode": "variable",
|
|
"onBehalfOf": "{{borrowerAddress}}"
|
|
}
|
|
},
|
|
{
|
|
"id": "swap",
|
|
"action": {
|
|
"type": "uniswapV3.swap",
|
|
"tokenIn": "{{collateralAsset}}",
|
|
"tokenOut": "{{debtAsset}}",
|
|
"fee": 3000,
|
|
"amountIn": "1000000",
|
|
"exactInput": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
|