-
-
Save richardliang/1c015c90f98faa41bbb6a359c6b928c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "contract IBaseManager", | |
"name": "_manager", | |
"type": "address" | |
}, | |
{ | |
"components": [ | |
{ | |
"internalType": "contract ISetToken", | |
"name": "setToken", | |
"type": "address" | |
}, | |
{ | |
"internalType": "contract ICompoundLeverageModule", | |
"name": "leverageModule", | |
"type": "address" | |
}, | |
{ | |
"internalType": "contract IComptroller", | |
"name": "comptroller", | |
"type": "address" | |
}, | |
{ | |
"internalType": "contract IChainlinkAggregatorV3", | |
"name": "collateralPriceOracle", | |
"type": "address" | |
}, | |
{ | |
"internalType": "contract IChainlinkAggregatorV3", | |
"name": "borrowPriceOracle", | |
"type": "address" | |
}, | |
{ | |
"internalType": "contract ICErc20", | |
"name": "targetCollateralCToken", | |
"type": "address" | |
}, | |
{ | |
"internalType": "contract ICErc20", | |
"name": "targetBorrowCToken", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "collateralAsset", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "borrowAsset", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "collateralDecimalAdjustment", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "borrowDecimalAdjustment", | |
"type": "uint256" | |
} | |
], | |
"internalType": "struct FlexibleLeverageStrategyAdapter.ContractSettings", | |
"name": "_strategy", | |
"type": "tuple" | |
}, | |
{ | |
"components": [ | |
{ | |
"internalType": "uint256", | |
"name": "targetLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "minLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "maxLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "recenteringSpeed", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "rebalanceInterval", | |
"type": "uint256" | |
} | |
], | |
"internalType": "struct FlexibleLeverageStrategyAdapter.MethodologySettings", | |
"name": "_methodology", | |
"type": "tuple" | |
}, | |
{ | |
"components": [ | |
{ | |
"internalType": "uint256", | |
"name": "unutilizedLeveragePercentage", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "slippageTolerance", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "twapCooldownPeriod", | |
"type": "uint256" | |
} | |
], | |
"internalType": "struct FlexibleLeverageStrategyAdapter.ExecutionSettings", | |
"name": "_execution", | |
"type": "tuple" | |
}, | |
{ | |
"components": [ | |
{ | |
"internalType": "uint256", | |
"name": "etherReward", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "incentivizedLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "incentivizedSlippageTolerance", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "incentivizedTwapCooldownPeriod", | |
"type": "uint256" | |
} | |
], | |
"internalType": "struct FlexibleLeverageStrategyAdapter.IncentiveSettings", | |
"name": "_incentive", | |
"type": "tuple" | |
}, | |
{ | |
"internalType": "string[]", | |
"name": "_exchangeNames", | |
"type": "string[]" | |
}, | |
{ | |
"components": [ | |
{ | |
"internalType": "uint256", | |
"name": "twapMaxTradeSize", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "exchangeLastTradeTimestamp", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "incentivizedTwapMaxTradeSize", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "bytes", | |
"name": "leverExchangeData", | |
"type": "bytes" | |
}, | |
{ | |
"internalType": "bytes", | |
"name": "deleverExchangeData", | |
"type": "bytes" | |
} | |
], | |
"internalType": "struct FlexibleLeverageStrategyAdapter.ExchangeSettings[]", | |
"name": "_exchangeSettings", | |
"type": "tuple[]" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "bool", | |
"name": "_status", | |
"type": "bool" | |
} | |
], | |
"name": "AnyoneCallableUpdated", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "_caller", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "bool", | |
"name": "_status", | |
"type": "bool" | |
} | |
], | |
"name": "CallerStatusUpdated", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_currentLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_newLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_chunkRebalanceNotional", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_totalRebalanceNotional", | |
"type": "uint256" | |
} | |
], | |
"name": "Disengaged", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_currentLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_newLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_chunkRebalanceNotional", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_totalRebalanceNotional", | |
"type": "uint256" | |
} | |
], | |
"name": "Engaged", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "string", | |
"name": "_exchangeName", | |
"type": "string" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "twapMaxTradeSize", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "exchangeLastTradeTimestamp", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "incentivizedTwapMaxTradeSize", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "bytes", | |
"name": "leverExchangeData", | |
"type": "bytes" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "bytes", | |
"name": "deleverExchangeData", | |
"type": "bytes" | |
} | |
], | |
"name": "ExchangeAdded", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "string", | |
"name": "_exchangeName", | |
"type": "string" | |
} | |
], | |
"name": "ExchangeRemoved", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "string", | |
"name": "_exchangeName", | |
"type": "string" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "twapMaxTradeSize", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "exchangeLastTradeTimestamp", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "incentivizedTwapMaxTradeSize", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "bytes", | |
"name": "leverExchangeData", | |
"type": "bytes" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "bytes", | |
"name": "deleverExchangeData", | |
"type": "bytes" | |
} | |
], | |
"name": "ExchangeUpdated", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_unutilizedLeveragePercentage", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_twapCooldownPeriod", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_slippageTolerance", | |
"type": "uint256" | |
} | |
], | |
"name": "ExecutionSettingsUpdated", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_etherReward", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_incentivizedLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_incentivizedSlippageTolerance", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_incentivizedTwapCooldownPeriod", | |
"type": "uint256" | |
} | |
], | |
"name": "IncentiveSettingsUpdated", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_targetLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_minLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_maxLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_recenteringSpeed", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_rebalanceInterval", | |
"type": "uint256" | |
} | |
], | |
"name": "MethodologySettingsUpdated", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_currentLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_newLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_chunkRebalanceNotional", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_totalRebalanceNotional", | |
"type": "uint256" | |
} | |
], | |
"name": "RebalanceIterated", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_currentLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_newLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_chunkRebalanceNotional", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_totalRebalanceNotional", | |
"type": "uint256" | |
} | |
], | |
"name": "Rebalanced", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_currentLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_newLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_rebalanceNotional", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "_etherIncentive", | |
"type": "uint256" | |
} | |
], | |
"name": "RipcordCalled", | |
"type": "event" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "string", | |
"name": "_exchangeName", | |
"type": "string" | |
}, | |
{ | |
"components": [ | |
{ | |
"internalType": "uint256", | |
"name": "twapMaxTradeSize", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "exchangeLastTradeTimestamp", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "incentivizedTwapMaxTradeSize", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "bytes", | |
"name": "leverExchangeData", | |
"type": "bytes" | |
}, | |
{ | |
"internalType": "bytes", | |
"name": "deleverExchangeData", | |
"type": "bytes" | |
} | |
], | |
"internalType": "struct FlexibleLeverageStrategyAdapter.ExchangeSettings", | |
"name": "_exchangeSettings", | |
"type": "tuple" | |
} | |
], | |
"name": "addEnabledExchange", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [], | |
"name": "anyoneCallable", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"name": "callAllowList", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "string", | |
"name": "_exchangeName", | |
"type": "string" | |
} | |
], | |
"name": "disengage", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"name": "enabledExchanges", | |
"outputs": [ | |
{ | |
"internalType": "string", | |
"name": "", | |
"type": "string" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "string", | |
"name": "_exchangeName", | |
"type": "string" | |
} | |
], | |
"name": "engage", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [], | |
"name": "getCurrentEtherIncentive", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [], | |
"name": "getCurrentLeverageRatio", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [], | |
"name": "getEnabledExchanges", | |
"outputs": [ | |
{ | |
"internalType": "string[]", | |
"name": "", | |
"type": "string[]" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "string", | |
"name": "_exchangeName", | |
"type": "string" | |
} | |
], | |
"name": "getExchangeSettings", | |
"outputs": [ | |
{ | |
"components": [ | |
{ | |
"internalType": "uint256", | |
"name": "twapMaxTradeSize", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "exchangeLastTradeTimestamp", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "incentivizedTwapMaxTradeSize", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "bytes", | |
"name": "leverExchangeData", | |
"type": "bytes" | |
}, | |
{ | |
"internalType": "bytes", | |
"name": "deleverExchangeData", | |
"type": "bytes" | |
} | |
], | |
"internalType": "struct FlexibleLeverageStrategyAdapter.ExchangeSettings", | |
"name": "", | |
"type": "tuple" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [], | |
"name": "getExecution", | |
"outputs": [ | |
{ | |
"components": [ | |
{ | |
"internalType": "uint256", | |
"name": "unutilizedLeveragePercentage", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "slippageTolerance", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "twapCooldownPeriod", | |
"type": "uint256" | |
} | |
], | |
"internalType": "struct FlexibleLeverageStrategyAdapter.ExecutionSettings", | |
"name": "", | |
"type": "tuple" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [], | |
"name": "getIncentive", | |
"outputs": [ | |
{ | |
"components": [ | |
{ | |
"internalType": "uint256", | |
"name": "etherReward", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "incentivizedLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "incentivizedSlippageTolerance", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "incentivizedTwapCooldownPeriod", | |
"type": "uint256" | |
} | |
], | |
"internalType": "struct FlexibleLeverageStrategyAdapter.IncentiveSettings", | |
"name": "", | |
"type": "tuple" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [], | |
"name": "getMethodology", | |
"outputs": [ | |
{ | |
"components": [ | |
{ | |
"internalType": "uint256", | |
"name": "targetLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "minLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "maxLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "recenteringSpeed", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "rebalanceInterval", | |
"type": "uint256" | |
} | |
], | |
"internalType": "struct FlexibleLeverageStrategyAdapter.MethodologySettings", | |
"name": "", | |
"type": "tuple" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [], | |
"name": "getStrategy", | |
"outputs": [ | |
{ | |
"components": [ | |
{ | |
"internalType": "contract ISetToken", | |
"name": "setToken", | |
"type": "address" | |
}, | |
{ | |
"internalType": "contract ICompoundLeverageModule", | |
"name": "leverageModule", | |
"type": "address" | |
}, | |
{ | |
"internalType": "contract IComptroller", | |
"name": "comptroller", | |
"type": "address" | |
}, | |
{ | |
"internalType": "contract IChainlinkAggregatorV3", | |
"name": "collateralPriceOracle", | |
"type": "address" | |
}, | |
{ | |
"internalType": "contract IChainlinkAggregatorV3", | |
"name": "borrowPriceOracle", | |
"type": "address" | |
}, | |
{ | |
"internalType": "contract ICErc20", | |
"name": "targetCollateralCToken", | |
"type": "address" | |
}, | |
{ | |
"internalType": "contract ICErc20", | |
"name": "targetBorrowCToken", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "collateralAsset", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "borrowAsset", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "collateralDecimalAdjustment", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "borrowDecimalAdjustment", | |
"type": "uint256" | |
} | |
], | |
"internalType": "struct FlexibleLeverageStrategyAdapter.ContractSettings", | |
"name": "", | |
"type": "tuple" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [], | |
"name": "getTotalRebalanceNotional", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [], | |
"name": "globalLastTradeTimestamp", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "string", | |
"name": "_exchangeName", | |
"type": "string" | |
} | |
], | |
"name": "iterateRebalance", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [], | |
"name": "manager", | |
"outputs": [ | |
{ | |
"internalType": "contract IBaseManager", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "string", | |
"name": "_exchangeName", | |
"type": "string" | |
} | |
], | |
"name": "rebalance", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "string", | |
"name": "_exchangeName", | |
"type": "string" | |
} | |
], | |
"name": "removeEnabledExchange", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "string", | |
"name": "_exchangeName", | |
"type": "string" | |
} | |
], | |
"name": "ripcord", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"components": [ | |
{ | |
"internalType": "uint256", | |
"name": "unutilizedLeveragePercentage", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "slippageTolerance", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "twapCooldownPeriod", | |
"type": "uint256" | |
} | |
], | |
"internalType": "struct FlexibleLeverageStrategyAdapter.ExecutionSettings", | |
"name": "_newExecutionSettings", | |
"type": "tuple" | |
} | |
], | |
"name": "setExecutionSettings", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"components": [ | |
{ | |
"internalType": "uint256", | |
"name": "etherReward", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "incentivizedLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "incentivizedSlippageTolerance", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "incentivizedTwapCooldownPeriod", | |
"type": "uint256" | |
} | |
], | |
"internalType": "struct FlexibleLeverageStrategyAdapter.IncentiveSettings", | |
"name": "_newIncentiveSettings", | |
"type": "tuple" | |
} | |
], | |
"name": "setIncentiveSettings", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"components": [ | |
{ | |
"internalType": "uint256", | |
"name": "targetLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "minLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "maxLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "recenteringSpeed", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "rebalanceInterval", | |
"type": "uint256" | |
} | |
], | |
"internalType": "struct FlexibleLeverageStrategyAdapter.MethodologySettings", | |
"name": "_newMethodologySettings", | |
"type": "tuple" | |
} | |
], | |
"name": "setMethodologySettings", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [], | |
"name": "shouldRebalance", | |
"outputs": [ | |
{ | |
"internalType": "string[]", | |
"name": "", | |
"type": "string[]" | |
}, | |
{ | |
"internalType": "enum FlexibleLeverageStrategyAdapter.ShouldRebalance[]", | |
"name": "", | |
"type": "uint8[]" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "_customMinLeverageRatio", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_customMaxLeverageRatio", | |
"type": "uint256" | |
} | |
], | |
"name": "shouldRebalanceWithBounds", | |
"outputs": [ | |
{ | |
"internalType": "string[]", | |
"name": "", | |
"type": "string[]" | |
}, | |
{ | |
"internalType": "enum FlexibleLeverageStrategyAdapter.ShouldRebalance[]", | |
"name": "", | |
"type": "uint8[]" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [], | |
"name": "twapLeverageRatio", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "bool", | |
"name": "_status", | |
"type": "bool" | |
} | |
], | |
"name": "updateAnyoneCallable", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address[]", | |
"name": "_callers", | |
"type": "address[]" | |
}, | |
{ | |
"internalType": "bool[]", | |
"name": "_statuses", | |
"type": "bool[]" | |
} | |
], | |
"name": "updateCallerStatus", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "string", | |
"name": "_exchangeName", | |
"type": "string" | |
}, | |
{ | |
"components": [ | |
{ | |
"internalType": "uint256", | |
"name": "twapMaxTradeSize", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "exchangeLastTradeTimestamp", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "incentivizedTwapMaxTradeSize", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "bytes", | |
"name": "leverExchangeData", | |
"type": "bytes" | |
}, | |
{ | |
"internalType": "bytes", | |
"name": "deleverExchangeData", | |
"type": "bytes" | |
} | |
], | |
"internalType": "struct FlexibleLeverageStrategyAdapter.ExchangeSettings", | |
"name": "_exchangeSettings", | |
"type": "tuple" | |
} | |
], | |
"name": "updateEnabledExchange", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"inputs": [], | |
"name": "withdrawEtherBalance", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"gas": "0x81b320" | |
}, | |
{ | |
"stateMutability": "payable", | |
"type": "receive" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment