Verified contractExactMIT
SwapAdapter
Address0x5e64d0096ef547f4103acbb00a60211ccd69c4df
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.25
- Same code
Only this contract
Details
- Compiler
- solc 0.8.25+commit.b61c2a91
- Language
- solidity
- Optimization
- Yes, 1,000 runs
- EVM version
- cancun
- Via IR
- yes
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,351,131
- Creation transaction
- 0x5b6903ecf5…06876c4081
Read30
- NAME() → (string)
- UPGRADE_INTERFACE_VERSION() → (string)
- VERSION() → (string)
- collateralBuffer() → (uint16)
- collateralToken() → (address)
- creditLimit(address) → (uint256)
- excessDebt(address) → (uint256)
- feeCollector() → (address)
- getStrategyConfig(address) → (tuple)
- governor() → (address)
- innerStrategy() → (address)
- innerTvl() → (uint256)
- isActive() → (bool)
- isAllowedRouter(address) → (bool)
- isReservedToken(address) → (bool)
- keepers() → (address[])
- masterOracle() → (address)
- pool() → (address)
- poolAccountant() → (address)
- proxiableUUID() → (bytes32)
- receiptToken() → (address)
- reportEarning(uint256,uint256,uint256)
- slippage() → (uint16)
- swapper() → (address)
- targetToken() → (address)
- token() → (address)
- totalDebtOf(address) → (uint256)
- tvl() → (uint256)
- undiscountedTvl() → (uint256)
- valuationHaircut() → (uint16)
Write21
- addKeeper(address)
- approveToken(uint256)
- claimAndSwapRewards(uint256) → (uint256)
- depositIdle()
- initialize(address,address,address,uint16,uint16,string)
- rebalance(uint256,uint256) → (uint256,uint256,uint256)
- removeKeeper(address)
- setInnerStrategy(address)
- setMerklOperator(address,bool)
- swap(address,address,uint256,uint256,address,bytes) → (uint256)
- swapToCollateral(address,uint256) → (uint256)
- sweep(address)
- updateCollateralBuffer(uint16)
- updateFeeCollector(address)
- updateRouter(address,bool)
- updateSlippage(uint16)
- updateSwapper(address)
- updateValuationHaircut(uint16)
- upgradeToAndCall(address,bytes)
- withdraw(uint256)
- withdrawFromInner(uint256) → (uint256)
Events14
- CollateralBufferUpdated(uint16,uint16)
- DepositSkipped(bytes)
- Initialized(uint64)
- InnerStrategySet(address)
- MerklOperatorUpdated(address,bool)
- PaybackNotFulfilled(uint256)
- RouterUpdated(address,bool)
- SlippageUpdated(uint16,uint16)
- Swapped(address,address,address,uint256,uint256)
- UpdatedFeeCollector(address,address)
- UpdatedSwapper(address,address)
- Upgraded(address)
- ValuationHaircutUpdated(uint16,uint16)
- WithdrawalNotFulfilled(uint256)
Errors35
- AddressEmptyCode(address)
- AddressIsNull()
- BufferBreached(uint256,uint256)
- CanNotSweepToken()
- ERC1967InvalidImplementation(address)
- ERC1967NonPayable()
- FailedCall()
- FeeCollectorNotSet()
- GovernorMismatch(address,address)
- InnerStrategyAlreadySet()
- InsufficientBalance(uint256,uint256)
- InsufficientBalance()
- InvalidBps()
- InvalidInitialization()
- InvalidInnerStrategy()
- InvalidStrategy()
- InvalidSwapPair()
- InvalidTargetToken()
- MinAmountOutBelowFloor(uint256,uint256)
- NotEnoughAmountOut()
- NotEnoughProfit(uint256)
- NotInitializing()
- NotSupported()
- OracleMissing(address,address)
- PrincipalMoved()
- ReentrancyGuardReentrantCall()
- RouterNotAllowed()
- SafeERC20FailedOperation(address)
- SpentMoreThanAllowed(uint256,uint256)
- TooMuchLoss(uint256)
- UUPSUnauthorizedCallContext()
- UUPSUnsupportedProxiableUUID(bytes32)
- Unauthorized()
- UnexpectedReport(uint256,uint256,uint256)
- ZeroAmount()
ABI as JSON
[
{
"name": "AddressEmptyCode",
"type": "error",
"inputs": [
{
"name": "target",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "AddressIsNull",
"type": "error",
"inputs": []
},
{
"name": "BufferBreached",
"type": "error",
"inputs": [
{
"name": "remaining",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "required",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"name": "CanNotSweepToken",
"type": "error",
"inputs": []
},
{
"name": "ERC1967InvalidImplementation",
"type": "error",
"inputs": [
{
"name": "implementation",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "ERC1967NonPayable",
"type": "error",
"inputs": []
},
{
"name": "FailedCall",
"type": "error",
"inputs": []
},
{
"name": "FeeCollectorNotSet",
"type": "error",
"inputs": []
},
{
"name": "GovernorMismatch",
"type": "error",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
},
{
"name": "",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "InnerStrategyAlreadySet",
"type": "error",
"inputs": []
},
{
"name": "InsufficientBalance",
"type": "error",
"inputs": [
{
"name": "balance",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "needed",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"name": "InsufficientBalance",
"type": "error",
"inputs": []
},
{
"name": "InvalidBps",
"type": "error",
"inputs": []
},
{
"name": "InvalidInitialization",
"type": "error",
"inputs": []
},
{
"name": "InvalidInnerStrategy",
"type": "error",
"inputs": []
},
{
"name": "InvalidStrategy",
"type": "error",
"inputs": []
},
{
"name": "InvalidSwapPair",
"type": "error",
"inputs": []
},
{
"name": "InvalidTargetToken",
"type": "error",
"inputs": []
},
{
"name": "MinAmountOutBelowFloor",
"type": "error",
"inputs": [
{
"name": "provided",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "floor",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"name": "NotEnoughAmountOut",
"type": "error",
"inputs": []
},
{
"name": "NotEnoughProfit",
"type": "error",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"name": "NotInitializing",
"type": "error",
"inputs": []
},
{
"name": "NotSupported",
"type": "error",
"inputs": []
},
{
"name": "OracleMissing",
"type": "error",
"inputs": [
{
"name": "tokenIn",
"type": "address",
"internalType": "address"
},
{
"name": "tokenOut",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "PrincipalMoved",
"type": "error",
"inputs": []
},
{
"name": "ReentrancyGuardReentrantCall",
"type": "error",
"inputs": []
},
{
"name": "RouterNotAllowed",
"type": "error",
"inputs": []
},
{
"name": "SafeERC20FailedOperation",
"type": "error",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "SpentMoreThanAllowed",
"type": "error",
"inputs": [
{
"name": "spent",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "allowed",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"name": "TooMuchLoss",
"type": "error",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"name": "UUPSUnauthorizedCallContext",
"type": "error",
"inputs": []
},
{
"name": "UUPSUnsupportedProxiableUUID",
"type": "error",
"inputs": [
{
"name": "slot",
"type": "bytes32",
"internalType": "bytes32"
}
]
},
{
"name": "Unauthorized",
"type": "error",
"inputs": []
},
{
"name": "UnexpectedReport",
"type": "error",
"inputs": [
{
"name": "profit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "loss",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "payback",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"name": "ZeroAmount",
"type": "error",
"inputs": []
},
{
"name": "CollateralBufferUpdated",
"type": "event",
"inputs": [
{
"name": "oldCollateralBuffer",
"type": "uint16",
"indexed": false,
"internalType": "uint16"
},
{
"name": "newCollateralBuffer",
"type": "uint16",
"indexed": false,
"internalType": "uint16"
}
],
"anonymous": false
},
{
"name": "DepositSkipped",
"type": "event",
"inputs": [
{
"name": "reason",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
}
],
"anonymous": false
},
{
"name": "Initialized",
"type": "event",
"inputs": [
{
"name": "version",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
}
],
"anonymous": false
},
{
"name": "InnerStrategySet",
"type": "event",
"inputs": [
{
"name": "innerStrategy",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "MerklOperatorUpdated",
"type": "event",
"inputs": [
{
"name": "operator",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "enabled",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"name": "PaybackNotFulfilled",
"type": "event",
"inputs": [
{
"name": "shortfall",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "RouterUpdated",
"type": "event",
"inputs": [
{
"name": "router",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "allowed",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"name": "SlippageUpdated",
"type": "event",
"inputs": [
{
"name": "oldSlippage",
"type": "uint16",
"indexed": false,
"internalType": "uint16"
},
{
"name": "newSlippage",
"type": "uint16",
"indexed": false,
"internalType": "uint16"
}
],
"anonymous": false
},
{
"name": "Swapped",
"type": "event",
"inputs": [
{
"name": "router",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenIn",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "tokenOut",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "amountIn",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "amountOut",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "UpdatedFeeCollector",
"type": "event",
"inputs": [
{
"name": "oldFeeCollector",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "newFeeCollector",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "UpdatedSwapper",
"type": "event",
"inputs": [
{
"name": "oldSwapper",
"type": "address",
"indexed": false,
"internalType": "contract ISwapper"
},
{
"name": "newSwapper",
"type": "address",
"indexed": false,
"internalType": "contract ISwapper"
}
],
"anonymous": false
},
{
"name": "Upgraded",
"type": "event",
"inputs": [
{
"name": "implementation",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "ValuationHaircutUpdated",
"type": "event",
"inputs": [
{
"name": "oldValuationHaircut",
"type": "uint16",
"indexed": false,
"internalType": "uint16"
},
{
"name": "newValuationHaircut",
"type": "uint16",
"indexed": false,
"internalType": "uint16"
}
],
"anonymous": false
},
{
"name": "WithdrawalNotFulfilled",
"type": "event",
"inputs": [
{
"name": "shortfall",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "NAME",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"name": "UPGRADE_INTERFACE_VERSION",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"name": "VERSION",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "pure"
},
{
"name": "addKeeper",
"type": "function",
"inputs": [
{
"name": "keeperAddress_",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "approveToken",
"type": "function",
"inputs": [
{
"name": "approvalAmount_",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "claimAndSwapRewards",
"type": "function",
"inputs": [
{
"name": "minAmountOut_",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "_amountOut",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "collateralBuffer",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint16",
"internalType": "uint16"
}
],
"stateMutability": "view"
},
{
"name": "collateralToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"stateMutability": "view"
},
{
"name": "creditLimit",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "pure"
},
{
"name": "depositIdle",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "excessDebt",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "pure"
},
{
"name": "feeCollector",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "getStrategyConfig",
"type": "function",
"inputs": [
{
"name": "strategy_",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "_config",
"type": "tuple",
"components": [
{
"name": "active",
"type": "bool",
"internalType": "bool"
},
{
"name": "totalDebt",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "totalLoss",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "totalProfit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "debtRatio",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct StrategyConfig"
}
],
"stateMutability": "view"
},
{
"name": "governor",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "initialize",
"type": "function",
"inputs": [
{
"name": "pool_",
"type": "address",
"internalType": "address"
},
{
"name": "swapper_",
"type": "address",
"internalType": "address"
},
{
"name": "targetToken_",
"type": "address",
"internalType": "address"
},
{
"name": "slippage_",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "valuationHaircut_",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "name_",
"type": "string",
"internalType": "string"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "innerStrategy",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "innerTvl",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "isActive",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "isAllowedRouter",
"type": "function",
"inputs": [
{
"name": "router_",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "isReservedToken",
"type": "function",
"inputs": [
{
"name": "token_",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "keepers",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address[]",
"internalType": "address[]"
}
],
"stateMutability": "view"
},
{
"name": "masterOracle",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IMasterOracle"
}
],
"stateMutability": "view"
},
{
"name": "pool",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IVesperPool"
}
],
"stateMutability": "view"
},
{
"name": "poolAccountant",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "proxiableUUID",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "rebalance",
"type": "function",
"inputs": [
{
"name": "minProfit_",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxLoss_",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "_profit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_loss",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_payback",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "receiptToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "removeKeeper",
"type": "function",
"inputs": [
{
"name": "keeperAddress_",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "reportEarning",
"type": "function",
"inputs": [
{
"name": "profit_",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "loss_",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "payback_",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "view"
},
{
"name": "setInnerStrategy",
"type": "function",
"inputs": [
{
"name": "innerStrategy_",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setMerklOperator",
"type": "function",
"inputs": [
{
"name": "operator_",
"type": "address",
"internalType": "address"
},
{
"name": "enabled_",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "slippage",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint16",
"internalType": "uint16"
}
],
"stateMutability": "view"
},
{
"name": "swap",
"type": "function",
"inputs": [
{
"name": "tokenIn_",
"type": "address",
"internalType": "contract IERC20"
},
{
"name": "tokenOut_",
"type": "address",
"internalType": "contract IERC20"
},
{
"name": "amountIn_",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minAmountOut_",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "router_",
"type": "address",
"internalType": "address"
},
{
"name": "data_",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
{
"name": "_amountOut",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "swapToCollateral",
"type": "function",
"inputs": [
{
"name": "tokenIn_",
"type": "address",
"internalType": "contract IERC20"
},
{
"name": "minAmountOut_",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "_amountOut",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "swapper",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract ISwapper"
}
],
"stateMutability": "view"
},
{
"name": "sweep",
"type": "function",
"inputs": [
{
"name": "fromToken_",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "targetToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"stateMutability": "view"
},
{
"name": "token",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"stateMutability": "view"
},
{
"name": "totalDebtOf",
"type": "function",
"inputs": [
{
"name": "strategy_",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "tvl",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "undiscountedTvl",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "updateCollateralBuffer",
"type": "function",
"inputs": [
{
"name": "collateralBuffer_",
"type": "uint16",
"internalType": "uint16"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "updateFeeCollector",
"type": "function",
"inputs": [
{
"name": "feeCollector_",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "updateRouter",
"type": "function",
"inputs": [
{
"name": "router_",
"type": "address",
"internalType": "address"
},
{
"name": "allowed_",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "updateSlippage",
"type": "function",
"inputs": [
{
"name": "slippage_",
"type": "uint16",
"internalType": "uint16"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "updateSwapper",
"type": "function",
"inputs": [
{
"name": "swapper_",
"type": "address",
"internalType": "contract ISwapper"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "updateValuationHaircut",
"type": "function",
"inputs": [
{
"name": "valuationHaircut_",
"type": "uint16",
"internalType": "uint16"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "upgradeToAndCall",
"type": "function",
"inputs": [
{
"name": "newImplementation",
"type": "address",
"internalType": "address"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"name": "valuationHaircut",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint16",
"internalType": "uint16"
}
],
"stateMutability": "view"
},
{
"name": "withdraw",
"type": "function",
"inputs": [
{
"name": "amount_",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "withdrawFromInner",
"type": "function",
"inputs": [
{
"name": "targetAmount_",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "_received",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.