{ "address": "0x1427Da5886A5d10D6b04ffF615703341317bd7ee", "abi": [ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, { "inputs": [], "name": "NotInitializing", "type": "error" }, { "inputs": [], "name": "ReentrancyGuardReentrantCall", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "sft", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "slot", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "erc20", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "holdingValueSftId", "type": "uint256" } ], "name": "AddSftSlot", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sft", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "slot", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "erc20", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "sftId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Deposit", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" } ], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "oldAdmin", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newAdmin", "type": "address" } ], "name": "NewAdmin", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "oldPendingAdmin", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newPendingAdmin", "type": "address" } ], "name": "NewPendingAdmin", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "sft", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "slot", "type": "uint256" }, { "indexed": false, "internalType": "bool", "name": "depositAllowed", "type": "bool" }, { "indexed": false, "internalType": "bool", "name": "withdrawAllowed", "type": "bool" } ], "name": "SftSlotAllowedChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sft", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "slot", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "erc20", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "sftId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Withdraw", "type": "event" }, { "inputs": [], "name": "acceptAdmin", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "sft_", "type": "address" }, { "internalType": "uint256", "name": "slot_", "type": "uint256" }, { "internalType": "address", "name": "erc20_", "type": "address" }, { "internalType": "uint256", "name": "holdingValueSftId_", "type": "uint256" } ], "name": "addSftSlotOnlyAdmin", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "admin", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "sft_", "type": "address" }, { "internalType": "uint256", "name": "slot_", "type": "uint256" }, { "internalType": "bool", "name": "depositAllowed_", "type": "bool" }, { "internalType": "bool", "name": "withdrawAllowed_", "type": "bool" } ], "name": "changeSftSlotAllowedOnlyAdmin", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "sft_", "type": "address" }, { "internalType": "uint256", "name": "sftId_", "type": "uint256" }, { "internalType": "uint256", "name": "value_", "type": "uint256" } ], "name": "deposit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "sft_", "type": "address" }, { "internalType": "uint256", "name": "slot_", "type": "uint256" } ], "name": "getERC20", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "sft_", "type": "address" }, { "internalType": "uint256", "name": "slot_", "type": "uint256" } ], "name": "getHoldingValueSftId", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "sft_", "type": "address" }, { "internalType": "uint256", "name": "slot_", "type": "uint256" } ], "name": "getSftSlotBalance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "sft_", "type": "address" }, { "internalType": "uint256", "name": "slot_", "type": "uint256" } ], "name": "isSftSlotDepositAllowed", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "sft_", "type": "address" }, { "internalType": "uint256", "name": "slot_", "type": "uint256" } ], "name": "isSftSlotWithdrawAllowed", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pendingAdmin", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newPendingAdmin_", "type": "address" } ], "name": "transferAdmin", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "sft_", "type": "address" }, { "internalType": "uint256", "name": "slot_", "type": "uint256" }, { "internalType": "uint256", "name": "sftId_", "type": "uint256" }, { "internalType": "uint256", "name": "value_", "type": "uint256" } ], "name": "withdraw", "outputs": [ { "internalType": "uint256", "name": "toSftId_", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" } ], "transactionHash": "0xb6549eef2492d4bd8821a6940fe1aca6cea3eb462784686ba4548ba6856a0931", "receipt": { "to": null, "from": "0x55C09707Fd7aFD670e82A62FaeE312903940013E", "contractAddress": "0x1427Da5886A5d10D6b04ffF615703341317bd7ee", "transactionIndex": 5, "gasUsed": "1457731", "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000204000000000000000000000000000000000000000000000000000000000000000000000000000008000000", "blockHash": "0x393d096fbd761422ab5c259a80215534e30ea3b3c91b3c11b09c68c87d039ae6", "transactionHash": "0xb6549eef2492d4bd8821a6940fe1aca6cea3eb462784686ba4548ba6856a0931", "logs": [ { "transactionIndex": 5, "blockNumber": 20516400, "transactionHash": "0xb6549eef2492d4bd8821a6940fe1aca6cea3eb462784686ba4548ba6856a0931", "address": "0x1427Da5886A5d10D6b04ffF615703341317bd7ee", "topics": [ "0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2" ], "data": "0x000000000000000000000000000000000000000000000000ffffffffffffffff", "logIndex": 19, "blockHash": "0x393d096fbd761422ab5c259a80215534e30ea3b3c91b3c11b09c68c87d039ae6" } ], "blockNumber": 20516400, "cumulativeGasUsed": "2174891", "status": 1, "byzantium": true }, "args": [], "numDeployments": 1, "solcInputHash": "0b1f3ab10816c02241d3e601cd05a0d7", "metadata": "{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReentrancyGuardReentrantCall\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sft\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"slot\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"erc20\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"holdingValueSftId\",\"type\":\"uint256\"}],\"name\":\"AddSftSlot\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sft\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"slot\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"erc20\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sftId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"NewAdmin\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldPendingAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newPendingAdmin\",\"type\":\"address\"}],\"name\":\"NewPendingAdmin\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sft\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"slot\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"depositAllowed\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"withdrawAllowed\",\"type\":\"bool\"}],\"name\":\"SftSlotAllowedChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sft\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"slot\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"erc20\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sftId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sft_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"slot_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"erc20_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"holdingValueSftId_\",\"type\":\"uint256\"}],\"name\":\"addSftSlotOnlyAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"admin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sft_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"slot_\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"depositAllowed_\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"withdrawAllowed_\",\"type\":\"bool\"}],\"name\":\"changeSftSlotAllowedOnlyAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sft_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sftId_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value_\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sft_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"slot_\",\"type\":\"uint256\"}],\"name\":\"getERC20\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sft_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"slot_\",\"type\":\"uint256\"}],\"name\":\"getHoldingValueSftId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sft_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"slot_\",\"type\":\"uint256\"}],\"name\":\"getSftSlotBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sft_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"slot_\",\"type\":\"uint256\"}],\"name\":\"isSftSlotDepositAllowed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sft_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"slot_\",\"type\":\"uint256\"}],\"name\":\"isSftSlotWithdrawAllowed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingAdmin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newPendingAdmin_\",\"type\":\"address\"}],\"name\":\"transferAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sft_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"slot_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"sftId_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value_\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"toSftId_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"InvalidInitialization()\":[{\"details\":\"The contract is already initialized.\"}],\"NotInitializing()\":[{\"details\":\"The contract is not initializing.\"}],\"ReentrancyGuardReentrantCall()\":[{\"details\":\"Unauthorized reentrant call.\"}]},\"events\":{\"Initialized(uint64)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"}},\"kind\":\"dev\",\"methods\":{\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/SolvBTCMultiAssetPool.sol\":\"SolvBTCMultiAssetPool\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuardUpgradeable is Initializable {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant NOT_ENTERED = 1;\\n uint256 private constant ENTERED = 2;\\n\\n /// @custom:storage-location erc7201:openzeppelin.storage.ReentrancyGuard\\n struct ReentrancyGuardStorage {\\n uint256 _status;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.ReentrancyGuard\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant ReentrancyGuardStorageLocation = 0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;\\n\\n function _getReentrancyGuardStorage() private pure returns (ReentrancyGuardStorage storage $) {\\n assembly {\\n $.slot := ReentrancyGuardStorageLocation\\n }\\n }\\n\\n /**\\n * @dev Unauthorized reentrant call.\\n */\\n error ReentrancyGuardReentrantCall();\\n\\n function __ReentrancyGuard_init() internal onlyInitializing {\\n __ReentrancyGuard_init_unchained();\\n }\\n\\n function __ReentrancyGuard_init_unchained() internal onlyInitializing {\\n ReentrancyGuardStorage storage $ = _getReentrancyGuardStorage();\\n $._status = NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n _nonReentrantBefore();\\n _;\\n _nonReentrantAfter();\\n }\\n\\n function _nonReentrantBefore() private {\\n ReentrancyGuardStorage storage $ = _getReentrancyGuardStorage();\\n // On the first call to nonReentrant, _status will be NOT_ENTERED\\n if ($._status == ENTERED) {\\n revert ReentrancyGuardReentrantCall();\\n }\\n\\n // Any calls to nonReentrant after this point will fail\\n $._status = ENTERED;\\n }\\n\\n function _nonReentrantAfter() private {\\n ReentrancyGuardStorage storage $ = _getReentrancyGuardStorage();\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n $._status = NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Returns true if the reentrancy guard is currently set to \\\"entered\\\", which indicates there is a\\n * `nonReentrant` function in the call stack.\\n */\\n function _reentrancyGuardEntered() internal view returns (bool) {\\n ReentrancyGuardStorage storage $ = _getReentrancyGuardStorage();\\n return $._status == ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0xb44e086e941292cdc7f440de51478493894ef0b1aeccb0c4047445919f667f74\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the value of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the value of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 value) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\\n * caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 value) external returns (bool);\\n\\n /**\\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\\n * allowance mechanism. `value` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address from, address to, uint256 value) external returns (bool);\\n}\\n\",\"keccak256\":\"0xc6a8ff0ea489379b61faa647490411b80102578440ab9d84e9a957cc12164e70\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC20} from \\\"../IERC20.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n */\\ninterface IERC20Metadata is IERC20 {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0xaa761817f6cd7892fcf158b3c776b34551cde36f48ff9703d53898bc45a94ea2\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x4296879f55019b23e135000eb36896057e7101fb7fb859c5ef690cf14643757b\",\"license\":\"MIT\"},\"contracts/ISolvBTC.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity 0.8.20;\\n\\nimport \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport \\\"@openzeppelin/contracts/utils/introspection/IERC165.sol\\\";\\nimport \\\"./external/IERC721Receiver.sol\\\";\\nimport \\\"./external/IERC3525Receiver.sol\\\";\\n\\ninterface ISolvBTC is IERC20, IERC721Receiver, IERC3525Receiver, IERC165 {\\n\\n error ERC721NotReceivable(address token);\\n error ERC3525NotReceivable(address token);\\n\\n function mint(address account, uint256 value) external;\\n function burn(address account, uint256 value) external;\\n\\n function solvBTCMultiAssetPool() external view returns (address);\\n}\",\"keccak256\":\"0x82209391e77c77b2d268d205bddfb71ab542df5a4541f319f4674ceda16b6e56\",\"license\":\"MIT\"},\"contracts/ISolvBTCMultiAssetPool.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity 0.8.20;\\n\\ninterface ISolvBTCMultiAssetPool {\\n function deposit(address sft_, uint256 sftId_, uint256 value_) external;\\n function withdraw(address sft, uint256 slot, uint256 sftId, uint256 value) external returns (uint256 toSftId_);\\n\\n function isSftSlotDepositAllowed(address sft_, uint256 slot_) external view returns (bool);\\n function isSftSlotWithdrawAllowed(address sft_, uint256 slot_) external view returns (bool);\\n function getERC20(address sft_, uint256 slot_) external view returns (address);\\n function getHoldingValueSftId(address sft_, uint256 slot_) external view returns (uint256);\\n function getSftSlotBalance(address sft_, uint256 slot_) external view returns (uint256);\\n}\\n\",\"keccak256\":\"0x4e4a30dbc2a3fa311bb7148ab28d3f71310358c667aa665d5428f50b2d603cf2\",\"license\":\"MIT\"},\"contracts/SolvBTCMultiAssetPool.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity 0.8.20;\\n\\nimport \\\"@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\\\";\\nimport \\\"./access/AdminControlUpgradeable.sol\\\";\\nimport \\\"./utils/ERC3525TransferHelper.sol\\\";\\nimport \\\"./external/IERC3525.sol\\\";\\nimport \\\"./ISolvBTCMultiAssetPool.sol\\\";\\nimport \\\"./ISolvBTC.sol\\\";\\n\\ncontract SolvBTCMultiAssetPool is ISolvBTCMultiAssetPool, ReentrancyGuardUpgradeable, AdminControlUpgradeable {\\n struct SftSlotInfo {\\n uint256 holdingValueSftId;\\n address erc20;\\n bool depositAllowed;\\n bool withdrawAllowed;\\n }\\n\\n mapping(address => mapping(uint256 => SftSlotInfo)) internal _sftSlotInfos;\\n\\n event AddSftSlot(address indexed sft, uint256 indexed slot, address indexed erc20, uint256 holdingValueSftId);\\n event SftSlotAllowedChanged(address indexed sft, uint256 indexed slot, bool depositAllowed, bool withdrawAllowed);\\n event Deposit(\\n address indexed owner, address indexed sft, uint256 indexed slot, address erc20, uint256 sftId, uint256 value\\n );\\n event Withdraw(\\n address indexed owner, address indexed sft, uint256 indexed slot, address erc20, uint256 sftId, uint256 value\\n );\\n\\n /// @custom:oz-upgrades-unsafe-allow constructor\\n constructor() {\\n _disableInitializers();\\n }\\n\\n function initialize() external virtual initializer {\\n AdminControlUpgradeable.__AdminControl_init(msg.sender);\\n ReentrancyGuardUpgradeable.__ReentrancyGuard_init();\\n }\\n\\n function deposit(address sft_, uint256 sftId_, uint256 value_) external virtual override nonReentrant {\\n require(value_ > 0, \\\"SolvBTCMultiAssetPool: deposit amount cannot be 0\\\");\\n require(msg.sender == IERC3525(sft_).ownerOf(sftId_), \\\"SolvBTCMultiAssetPool: caller is not sft owner\\\");\\n\\n uint256 slot = IERC3525(sft_).slotOf(sftId_);\\n SftSlotInfo storage sftSlotInfo = _sftSlotInfos[sft_][slot];\\n require(sftSlotInfo.depositAllowed, \\\"SolvBTCMultiAssetPool: sft slot deposit not allowed\\\");\\n\\n uint256 sftBalance = IERC3525(sft_).balanceOf(sftId_);\\n if (value_ == sftBalance) {\\n ERC3525TransferHelper.doTransferIn(sft_, msg.sender, sftId_);\\n if (sftSlotInfo.holdingValueSftId == 0) {\\n sftSlotInfo.holdingValueSftId = sftId_;\\n } else {\\n ERC3525TransferHelper.doTransfer(sft_, sftId_, sftSlotInfo.holdingValueSftId, value_);\\n ERC3525TransferHelper.doTransferOut(sft_, 0x000000000000000000000000000000000000dEaD, sftId_);\\n }\\n } else if (value_ < sftBalance) {\\n if (sftSlotInfo.holdingValueSftId == 0) {\\n sftSlotInfo.holdingValueSftId = ERC3525TransferHelper.doTransferIn(sft_, sftId_, value_);\\n } else {\\n ERC3525TransferHelper.doTransfer(sft_, sftId_, sftSlotInfo.holdingValueSftId, value_);\\n }\\n } else {\\n revert(\\\"SolvBTCMultiAssetPool: deposit amount exceeds sft balance\\\");\\n }\\n\\n ISolvBTC(sftSlotInfo.erc20).mint(msg.sender, value_);\\n emit Deposit(msg.sender, sft_, slot, sftSlotInfo.erc20, sftId_, value_);\\n }\\n\\n function withdraw(address sft_, uint256 slot_, uint256 sftId_, uint256 value_)\\n external\\n virtual\\n override\\n nonReentrant\\n returns (uint256 toSftId_)\\n {\\n require(value_ > 0, \\\"SolvBTCMultiAssetPool: withdraw amount cannot be 0\\\");\\n\\n SftSlotInfo storage sftSlotInfo = _sftSlotInfos[sft_][slot_];\\n require(sftSlotInfo.withdrawAllowed, \\\"SolvBTCMultiAssetPool: sft slot not allowed\\\");\\n\\n uint256 sftSlotBalance = getSftSlotBalance(sft_, slot_);\\n require(value_ <= sftSlotBalance, \\\"SolvBTCMultiAssetPool: insufficient balance\\\");\\n\\n ISolvBTC(sftSlotInfo.erc20).burn(msg.sender, value_);\\n\\n if (sftId_ == 0) {\\n toSftId_ = ERC3525TransferHelper.doTransferOut(sft_, sftSlotInfo.holdingValueSftId, msg.sender, value_);\\n } else {\\n require(slot_ == IERC3525(sft_).slotOf(sftId_), \\\"SolvBTCMultiAssetPool: slot not matched\\\");\\n require(msg.sender == IERC3525(sft_).ownerOf(sftId_), \\\"SolvBTCMultiAssetPool: caller is not sft owner\\\");\\n ERC3525TransferHelper.doTransfer(sft_, sftSlotInfo.holdingValueSftId, sftId_, value_);\\n toSftId_ = sftId_;\\n }\\n\\n emit Withdraw(msg.sender, sft_, slot_, sftSlotInfo.erc20, toSftId_, value_);\\n }\\n\\n function addSftSlotOnlyAdmin(address sft_, uint256 slot_, address erc20_, uint256 holdingValueSftId_)\\n external\\n virtual\\n onlyAdmin\\n {\\n SftSlotInfo storage sftSlotInfo = _sftSlotInfos[sft_][slot_];\\n require(sftSlotInfo.erc20 == address(0), \\\"SolvBTCMultiAssetPool: sft slot already existed\\\");\\n require(\\n IERC3525(sft_).valueDecimals() == IERC20Metadata(erc20_).decimals(),\\n \\\"SolvBTCMultiAssetPool: decimals not matched\\\"\\n );\\n if (holdingValueSftId_ > 0) {\\n require(IERC3525(sft_).slotOf(holdingValueSftId_) == slot_, \\\"SolvBTCMultiAssetPool: slot not matched\\\");\\n require(\\n IERC3525(sft_).ownerOf(holdingValueSftId_) == address(this), \\\"SolvBTCMultiAssetPool: sftId not owned\\\"\\n );\\n }\\n\\n sftSlotInfo.holdingValueSftId = holdingValueSftId_;\\n sftSlotInfo.erc20 = erc20_;\\n sftSlotInfo.depositAllowed = true;\\n sftSlotInfo.withdrawAllowed = true;\\n emit AddSftSlot(sft_, slot_, erc20_, holdingValueSftId_);\\n }\\n\\n function changeSftSlotAllowedOnlyAdmin(address sft_, uint256 slot_, bool depositAllowed_, bool withdrawAllowed_)\\n external\\n virtual\\n onlyAdmin\\n {\\n SftSlotInfo storage sftSlotInfo = _sftSlotInfos[sft_][slot_];\\n require(sftSlotInfo.erc20 != address(0), \\\"SolvBTCMultiAssetPool: sft slot not existed\\\");\\n\\n sftSlotInfo.depositAllowed = depositAllowed_;\\n sftSlotInfo.withdrawAllowed = withdrawAllowed_;\\n emit SftSlotAllowedChanged(sft_, slot_, depositAllowed_, withdrawAllowed_);\\n }\\n\\n function isSftSlotDepositAllowed(address sft_, uint256 slot_) public view virtual override returns (bool) {\\n return _sftSlotInfos[sft_][slot_].depositAllowed;\\n }\\n\\n function isSftSlotWithdrawAllowed(address sft_, uint256 slot_) public view virtual override returns (bool) {\\n return _sftSlotInfos[sft_][slot_].withdrawAllowed;\\n }\\n\\n function getERC20(address sft_, uint256 slot_) public view virtual override returns (address) {\\n return _sftSlotInfos[sft_][slot_].erc20;\\n }\\n\\n function getHoldingValueSftId(address sft_, uint256 slot_) public view virtual override returns (uint256) {\\n return _sftSlotInfos[sft_][slot_].holdingValueSftId;\\n }\\n\\n function getSftSlotBalance(address sft_, uint256 slot_) public view virtual override returns (uint256) {\\n SftSlotInfo storage sftSlotInfo = _sftSlotInfos[sft_][slot_];\\n return sftSlotInfo.holdingValueSftId == 0 ? 0 : IERC3525(sft_).balanceOf(sftSlotInfo.holdingValueSftId);\\n }\\n\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x7cd717ae517314949d366769f284f998c658667193a2d3e59e96b3e49766dc41\",\"license\":\"MIT\"},\"contracts/access/AdminControlUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity 0.8.20;\\n\\nimport \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\n\\nabstract contract AdminControlUpgradeable is Initializable {\\n\\n event NewAdmin(address oldAdmin, address newAdmin);\\n event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin);\\n\\n address public admin;\\n address public pendingAdmin;\\n\\n modifier onlyAdmin() {\\n require(msg.sender == admin, \\\"only admin\\\");\\n _;\\n }\\n\\n modifier onlyPendingAdmin() {\\n require(msg.sender == pendingAdmin, \\\"only pending admin\\\");\\n _;\\n }\\n\\n function __AdminControl_init(address admin_) internal onlyInitializing {\\n __AdminControl_init_unchained(admin_);\\n }\\n\\n function __AdminControl_init_unchained(address admin_) internal onlyInitializing {\\n admin = admin_;\\n emit NewAdmin(address(0), admin_);\\n }\\n\\n function transferAdmin(address newPendingAdmin_) external virtual onlyAdmin {\\n emit NewPendingAdmin(pendingAdmin, newPendingAdmin_);\\n pendingAdmin = newPendingAdmin_; \\n }\\n\\n function acceptAdmin() external virtual onlyPendingAdmin {\\n emit NewAdmin(admin, pendingAdmin);\\n admin = pendingAdmin;\\n delete pendingAdmin;\\n }\\n\\n uint256[48] private __gap;\\n}\\n\",\"keccak256\":\"0xf7bde55289afe561d40407007b005a6cdc97d7cc3ec98e58866faeb80f63f883\",\"license\":\"MIT\"},\"contracts/external/IERC3525.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity 0.8.20;\\n\\nimport \\\"./IERC721.sol\\\";\\n\\ninterface IERC3525 is IERC721 {\\n function valueDecimals() external view returns (uint8);\\n function balanceOf(uint256 tokenId) external view returns (uint256);\\n function slotOf(uint256 tokenId) external view returns (uint256);\\n function allowance(uint256 tokenId, address operator) external view returns (uint256);\\n \\n function approve(address operator, uint256 tokenId) external payable;\\n function approve(uint256 tokenId, address operator, uint256 value) external payable;\\n function transferFrom(uint256 fromTokenId, uint256 toTokenId, uint256 value) external payable;\\n function transferFrom(uint256 fromTokenId, address to, uint256 value) external payable returns (uint256);\\n}\\n\",\"keccak256\":\"0x3a41cdc0d8776a3dacd22983247a662b8a982efa4a7e5c57466de2274fa3d4a7\",\"license\":\"MIT\"},\"contracts/external/IERC3525Receiver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity 0.8.20;\\n\\ninterface IERC3525Receiver {\\n function onERC3525Received(address operator, uint256 fromTokenId, uint256 toTokenId, uint256 value, bytes calldata data) external returns (bytes4);\\n}\\n\",\"keccak256\":\"0x931b362b85b9bc3a3a6fbff54d2f631e3e7f021130717a31947f017ec42b1b08\",\"license\":\"MIT\"},\"contracts/external/IERC721.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity 0.8.20;\\n\\ninterface IERC721 {\\n function balanceOf(address owner) external view returns (uint256);\\n function ownerOf(uint256 tokenId) external view returns (address);\\n function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);\\n function getApproved(uint256 tokenId) external view returns (address);\\n function isApprovedForAll(address owner, address operator) external view returns (bool);\\n\\n function approve(address approved, uint256 tokenId) external payable;\\n function setApprovalForAll(address operator, bool approved) external;\\n function transferFrom(address from, address to, uint256 tokenId) external payable;\\n function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external payable;\\n function safeTransferFrom(address from, address to, uint256 tokenId) external payable;\\n}\\n\",\"keccak256\":\"0x6bfe227558726b5692c09a72a1ad0068fa4fc28bac6cc176937d1e10eaf880c4\",\"license\":\"MIT\"},\"contracts/external/IERC721Receiver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity 0.8.20;\\n\\ninterface IERC721Receiver {\\n function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4);\\n}\\n\",\"keccak256\":\"0x1e859773aaf8f8759146ea718f5a7c290b7b0fe9163137738586e1e9c1785923\",\"license\":\"MIT\"},\"contracts/utils/ERC3525TransferHelper.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity 0.8.20;\\n\\ninterface ERC721Interface {\\n function approve(address to, uint256 tokenId) external;\\n function transferFrom(address from, address to, uint256 tokenId) external;\\n function safeTransferFrom(address from, address to, uint256 tokenId) external;\\n}\\n\\ninterface ERC3525Interface {\\n function approve(uint256 tokenId, address to, uint256 allowance) external payable;\\n function transferFrom(uint256 fromTokenId, uint256 toTokenId, uint256 value) external payable;\\n function transferFrom(uint256 fromTokenId, address to, uint256 value) external payable returns (uint256); \\n}\\n\\nlibrary ERC3525TransferHelper {\\n function doApproveId(address underlying, address to, uint256 tokenId) internal {\\n ERC721Interface token = ERC721Interface(underlying);\\n token.approve(to, tokenId);\\n }\\n\\n function doApproveValue(address underlying, uint256 tokenId, address to, uint256 allowance) internal {\\n ERC3525Interface token = ERC3525Interface(underlying);\\n token.approve(tokenId, to, allowance);\\n }\\n\\n function doTransferIn(address underlying, address from, uint256 tokenId) internal {\\n ERC721Interface token = ERC721Interface(underlying);\\n token.transferFrom(from, address(this), tokenId);\\n }\\n \\n function doSafeTransferIn(address underlying, address from, uint256 tokenId) internal {\\n ERC721Interface token = ERC721Interface(underlying);\\n token.safeTransferFrom(from, address(this), tokenId);\\n }\\n\\n function doSafeTransferOut(address underlying, address to, uint256 tokenId) internal {\\n ERC721Interface token = ERC721Interface(underlying);\\n token.safeTransferFrom(address(this), to, tokenId);\\n }\\n\\n function doTransferOut(address underlying, address to, uint256 tokenId) internal {\\n ERC721Interface token = ERC721Interface(underlying);\\n token.transferFrom(address(this), to, tokenId);\\n }\\n\\n function doTransferIn(address underlying, uint256 fromTokenId, uint256 value) internal returns (uint256 newTokenId) {\\n ERC3525Interface token = ERC3525Interface(underlying);\\n return token.transferFrom(fromTokenId, address(this), value);\\n }\\n\\n function doTransferOut(address underlying, uint256 fromTokenId, address to, uint256 value) internal returns (uint256 newTokenId) {\\n ERC3525Interface token = ERC3525Interface(underlying);\\n newTokenId = token.transferFrom(fromTokenId, to, value);\\n }\\n\\n function doTransfer(address underlying, address from, address to, uint256 tokenId) internal {\\n ERC721Interface token = ERC721Interface(underlying);\\n token.transferFrom(from, to, tokenId);\\n }\\n\\n function doTransfer(address underlying, uint256 fromTokenId, uint256 toTokenId, uint256 value) internal {\\n ERC3525Interface token = ERC3525Interface(underlying);\\n token.transferFrom(fromTokenId, toTokenId, value);\\n }\\n\\n}\\n\",\"keccak256\":\"0x7ba67e1347eb1a423a055a27a53488eff24b3b59a6ba84a7e8d0cf36b7c05ec1\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x608060405234801561001057600080fd5b5061001961001e565b6100d0565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff161561006e5760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100cd5780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6118eb806100df6000396000f3fe608060405234801561001057600080fd5b50600436106100ba5760003560e01c80630e18b681146100bf5780630efe6a8b146100c957806312a2b905146100dc578063159c3a201461010257806326782247146101155780634532d7761461014057806375829def146101535780638129fc1c1461016657806386585a5e1461016e5780639f0b8d03146101c1578063a6c3325f146101fa578063c4d9799514610230578063d2d9210014610243578063f851a44014610286575b600080fd5b6100c7610299565b005b6100c76100d7366004611540565b61034d565b6100ef6100ea366004611575565b610742565b6040519081526020015b60405180910390f35b6100c76101103660046115a1565b6107e8565b600154610128906001600160a01b031681565b6040516001600160a01b0390911681526020016100f9565b6100ef61014e3660046115e9565b610b9c565b6100c7610161366004611624565b610f18565b6100c7610fab565b6101b161017c366004611575565b6001600160a01b039190911660009081526032602090815260408083209383529290522060010154600160a01b900460ff1690565b60405190151581526020016100f9565b6101286101cf366004611575565b6001600160a01b03918216600090815260326020908152604080832093835292905220600101541690565b6100ef610208366004611575565b6001600160a01b03919091166000908152603260209081526040808320938352929052205490565b6100c761023e36600461165d565b6110ab565b6101b1610251366004611575565b6001600160a01b039190911660009081526032602090815260408083209383529290522060010154600160a81b900460ff1690565b600054610128906001600160a01b031681565b6001546001600160a01b031633146102ed5760405162461bcd60e51b815260206004820152601260248201527137b7363c903832b73234b7339030b236b4b760711b60448201526064015b60405180910390fd5b6000546001546040516000805160206118968339815191529261031e926001600160a01b03918216929116906116ac565b60405180910390a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b6103556111d3565b600081116103ad5760405162461bcd60e51b8152602060048201526031602482015260008051602061185683398151915260448201527006d6f756e742063616e6e6f74206265203607c1b60648201526084016102e4565b6040516331a9108f60e11b8152600481018390526001600160a01b03841690636352211e90602401602060405180830381865afa1580156103f2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041691906116c6565b6001600160a01b0316336001600160a01b0316146104465760405162461bcd60e51b81526004016102e4906116e3565b60405163131f9f3f60e11b8152600481018390526000906001600160a01b0385169063263f3e7e90602401602060405180830381865afa15801561048e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b29190611731565b6001600160a01b03851660009081526032602090815260408083208484529091529020600181015491925090600160a01b900460ff1661053e5760405162461bcd60e51b8152602060048201526033602482015260008051602061187683398151915260448201527219195c1bdcda5d081b9bdd08185b1b1bddd959606a1b60648201526084016102e4565b604051631398fee160e31b8152600481018590526000906001600160a01b03871690639cc7f70890602401602060405180830381865afa158015610586573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105aa9190611731565b90508084036105f1576105be863387611209565b81546000036105cf5784825561067c565b6105df8686846000015487611273565b6105ec8661dead876112e4565b61067c565b808410156106245781546000036106145761060d868686611316565b825561067c565b6105ec8686846000015487611273565b60405162461bcd60e51b815260206004820152603960248201526000805160206118568339815191526044820152786d6f756e742065786365656473207366742062616c616e636560381b60648201526084016102e4565b60018201546040516340c10f1960e01b81526001600160a01b03909116906340c10f19906106b0903390889060040161174a565b600060405180830381600087803b1580156106ca57600080fd5b505af11580156106de573d6000803e3d6000fd5b50505060018301546040518592506001600160a01b03808a169233927e989e8d31410c29caf0085f1b67a406c7146d720ea8e126047c5aac4c1b3b2b9261072a9216908b908b90611763565b60405180910390a450505061073d611397565b505050565b6001600160a01b038216600090815260326020908152604080832084845290915281208054156107dd578054604051631398fee160e31b815260048101919091526001600160a01b03851690639cc7f70890602401602060405180830381865afa1580156107b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d89190611731565b6107e0565b60005b949350505050565b6000546001600160a01b031633146108125760405162461bcd60e51b81526004016102e490611784565b6001600160a01b03808516600090815260326020908152604080832087845290915290206001810154909116156108915760405162461bcd60e51b815260206004820152602f602482015260008051602061187683398151915260448201526e185b1c9958591e48195e1a5cdd1959608a1b60648201526084016102e4565b826001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f391906117a8565b60ff16856001600160a01b0316633e7e86696040518163ffffffff1660e01b8152600401602060405180830381865afa158015610934573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095891906117a8565b60ff16146109bc5760405162461bcd60e51b815260206004820152602b60248201527f536f6c764254434d756c74694173736574506f6f6c3a20646563696d616c732060448201526a1b9bdd081b585d18da195960aa1b60648201526084016102e4565b8115610b1a5760405163131f9f3f60e11b81526004810183905284906001600160a01b0387169063263f3e7e90602401602060405180830381865afa158015610a09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2d9190611731565b14610a4a5760405162461bcd60e51b81526004016102e4906117cb565b6040516331a9108f60e11b81526004810183905230906001600160a01b03871690636352211e90602401602060405180830381865afa158015610a91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab591906116c6565b6001600160a01b031614610b1a5760405162461bcd60e51b815260206004820152602660248201527f536f6c764254434d756c74694173736574506f6f6c3a207366744964206e6f74604482015265081bdddb995960d21b60648201526084016102e4565b81815560018101805460ff60a81b196001600160a81b03199091166001600160a01b03808716918217600160a01b1792909216600160a81b1790925560405186918816907fc2532812ecf7eb4907c9cac96370c00bfb6064322750c6dd0bc97114ceeaa18790610b8d9087815260200190565b60405180910390a45050505050565b6000610ba66111d3565b60008211610c115760405162461bcd60e51b815260206004820152603260248201527f536f6c764254434d756c74694173736574506f6f6c3a207769746864726177206044820152710616d6f756e742063616e6e6f7420626520360741b60648201526084016102e4565b6001600160a01b038516600090815260326020908152604080832087845290915290206001810154600160a81b900460ff16610c915760405162461bcd60e51b815260206004820152602b602482015260008051602061187683398151915260448201526a1b9bdd08185b1b1bddd95960aa1b60648201526084016102e4565b6000610c9d8787610742565b905080841115610d035760405162461bcd60e51b815260206004820152602b60248201527f536f6c764254434d756c74694173736574506f6f6c3a20696e7375666669636960448201526a656e742062616c616e636560a81b60648201526084016102e4565b6001820154604051632770a7eb60e21b81526001600160a01b0390911690639dc29fac90610d37903390889060040161174a565b600060405180830381600087803b158015610d5157600080fd5b505af1158015610d65573d6000803e3d6000fd5b5050505084600003610d8857610d8187836000015433876113a8565b9250610ebc565b60405163131f9f3f60e11b8152600481018690526001600160a01b0388169063263f3e7e90602401602060405180830381865afa158015610dcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df19190611731565b8614610e0f5760405162461bcd60e51b81526004016102e4906117cb565b6040516331a9108f60e11b8152600481018690526001600160a01b03881690636352211e90602401602060405180830381865afa158015610e54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7891906116c6565b6001600160a01b0316336001600160a01b031614610ea85760405162461bcd60e51b81526004016102e4906116e3565b610eb88783600001548787611273565b8492505b600182015460405187916001600160a01b03808b169233927f57a06fdd930dbeed1599239829f62ff839283da1c96a5eb2b024c791b1d76e6992610f069291169089908b90611763565b60405180910390a450506107e0611397565b6000546001600160a01b03163314610f425760405162461bcd60e51b81526004016102e490611784565b6001546040517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a991610f81916001600160a01b039091169084906116ac565b60405180910390a1600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000610fb561142a565b805490915060ff600160401b82041615906001600160401b0316600081158015610fdc5750825b90506000826001600160401b03166001148015610ff85750303b155b905081158015611006575080155b156110245760405163f92ee8a960e01b815260040160405180910390fd5b84546001600160401b0319166001178555831561104d57845460ff60401b1916600160401b1785555b6110563361144e565b61105e611462565b83156110a457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050565b6000546001600160a01b031633146110d55760405162461bcd60e51b81526004016102e490611784565b6001600160a01b0380851660009081526032602090815260408083208784529091529020600181015490911661114f5760405162461bcd60e51b815260206004820152602b602482015260008051602061187683398151915260448201526a1b9bdd08195e1a5cdd195960aa1b60648201526084016102e4565b60018101805461ffff60a01b1916600160a01b85151590810260ff60a81b191691909117600160a81b8515159081029190911790925560408051918252602082019290925285916001600160a01b038816917fa36339e77124f707069252e7a04f56b467507541182e9e4b2536c9f8377464ff910160405180910390a35050505050565b60006111dd611474565b80549091506001190161120357604051633ee5aeb560e01b815260040160405180910390fd5b60029055565b6040516323b872dd60e01b815283906001600160a01b038216906323b872dd9061123b90869030908790600401611812565b600060405180830381600087803b15801561125557600080fd5b505af1158015611269573d6000803e3d6000fd5b5050505050505050565b604051630310ed7f60e41b815260048101849052602481018390526044810182905284906001600160a01b0382169063310ed7f090606401600060405180830381600087803b1580156112c557600080fd5b505af11580156112d9573d6000803e3d6000fd5b505050505050505050565b6040516323b872dd60e01b815283906001600160a01b038216906323b872dd9061123b90309087908790600401611812565b6040516307a42e0160e11b815260009084906001600160a01b03821690630f485c029061134b90879030908890600401611836565b6020604051808303816000875af115801561136a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138e9190611731565b95945050505050565b60006113a1611474565b6001905550565b6040516307a42e0160e11b815260009085906001600160a01b03821690630f485c02906113dd90889088908890600401611836565b6020604051808303816000875af11580156113fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114209190611731565b9695505050505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0090565b611456611498565b61145f816114bd565b50565b61146a611498565b611472611509565b565b7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0090565b6114a0611511565b61147257604051631afcd79f60e31b815260040160405180910390fd5b6114c5611498565b600080546001600160a01b0319166001600160a01b038316178155604051600080516020611896833981519152916114fe9184906116ac565b60405180910390a150565b611397611498565b600061151b61142a565b54600160401b900460ff16919050565b6001600160a01b038116811461145f57600080fd5b60008060006060848603121561155557600080fd5b83356115608161152b565b95602085013595506040909401359392505050565b6000806040838503121561158857600080fd5b82356115938161152b565b946020939093013593505050565b600080600080608085870312156115b757600080fd5b84356115c28161152b565b93506020850135925060408501356115d98161152b565b9396929550929360600135925050565b600080600080608085870312156115ff57600080fd5b843561160a8161152b565b966020860135965060408601359560600135945092505050565b60006020828403121561163657600080fd5b81356116418161152b565b9392505050565b8035801515811461165857600080fd5b919050565b6000806000806080858703121561167357600080fd5b843561167e8161152b565b93506020850135925061169360408601611648565b91506116a160608601611648565b905092959194509250565b6001600160a01b0392831681529116602082015260400190565b6000602082840312156116d857600080fd5b81516116418161152b565b6020808252602e908201527f536f6c764254434d756c74694173736574506f6f6c3a2063616c6c657220697360408201526d103737ba1039b33a1037bbb732b960911b606082015260800190565b60006020828403121561174357600080fd5b5051919050565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039390931683526020830191909152604082015260600190565b6020808252600a908201526937b7363c9030b236b4b760b11b604082015260600190565b6000602082840312156117ba57600080fd5b815160ff8116811461164157600080fd5b60208082526027908201527f536f6c764254434d756c74694173736574506f6f6c3a20736c6f74206e6f74206040820152661b585d18da195960ca1b606082015260800190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b9283526001600160a01b0391909116602083015260408201526060019056fe536f6c764254434d756c74694173736574506f6f6c3a206465706f7369742061536f6c764254434d756c74694173736574506f6f6c3a2073667420736c6f7420f9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dca2646970667358221220063f6d5e4867935343127d21abcd55a534dec90ebbdb86643aaa9c6fe89458ad64736f6c63430008140033", "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100ba5760003560e01c80630e18b681146100bf5780630efe6a8b146100c957806312a2b905146100dc578063159c3a201461010257806326782247146101155780634532d7761461014057806375829def146101535780638129fc1c1461016657806386585a5e1461016e5780639f0b8d03146101c1578063a6c3325f146101fa578063c4d9799514610230578063d2d9210014610243578063f851a44014610286575b600080fd5b6100c7610299565b005b6100c76100d7366004611540565b61034d565b6100ef6100ea366004611575565b610742565b6040519081526020015b60405180910390f35b6100c76101103660046115a1565b6107e8565b600154610128906001600160a01b031681565b6040516001600160a01b0390911681526020016100f9565b6100ef61014e3660046115e9565b610b9c565b6100c7610161366004611624565b610f18565b6100c7610fab565b6101b161017c366004611575565b6001600160a01b039190911660009081526032602090815260408083209383529290522060010154600160a01b900460ff1690565b60405190151581526020016100f9565b6101286101cf366004611575565b6001600160a01b03918216600090815260326020908152604080832093835292905220600101541690565b6100ef610208366004611575565b6001600160a01b03919091166000908152603260209081526040808320938352929052205490565b6100c761023e36600461165d565b6110ab565b6101b1610251366004611575565b6001600160a01b039190911660009081526032602090815260408083209383529290522060010154600160a81b900460ff1690565b600054610128906001600160a01b031681565b6001546001600160a01b031633146102ed5760405162461bcd60e51b815260206004820152601260248201527137b7363c903832b73234b7339030b236b4b760711b60448201526064015b60405180910390fd5b6000546001546040516000805160206118968339815191529261031e926001600160a01b03918216929116906116ac565b60405180910390a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b6103556111d3565b600081116103ad5760405162461bcd60e51b8152602060048201526031602482015260008051602061185683398151915260448201527006d6f756e742063616e6e6f74206265203607c1b60648201526084016102e4565b6040516331a9108f60e11b8152600481018390526001600160a01b03841690636352211e90602401602060405180830381865afa1580156103f2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041691906116c6565b6001600160a01b0316336001600160a01b0316146104465760405162461bcd60e51b81526004016102e4906116e3565b60405163131f9f3f60e11b8152600481018390526000906001600160a01b0385169063263f3e7e90602401602060405180830381865afa15801561048e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b29190611731565b6001600160a01b03851660009081526032602090815260408083208484529091529020600181015491925090600160a01b900460ff1661053e5760405162461bcd60e51b8152602060048201526033602482015260008051602061187683398151915260448201527219195c1bdcda5d081b9bdd08185b1b1bddd959606a1b60648201526084016102e4565b604051631398fee160e31b8152600481018590526000906001600160a01b03871690639cc7f70890602401602060405180830381865afa158015610586573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105aa9190611731565b90508084036105f1576105be863387611209565b81546000036105cf5784825561067c565b6105df8686846000015487611273565b6105ec8661dead876112e4565b61067c565b808410156106245781546000036106145761060d868686611316565b825561067c565b6105ec8686846000015487611273565b60405162461bcd60e51b815260206004820152603960248201526000805160206118568339815191526044820152786d6f756e742065786365656473207366742062616c616e636560381b60648201526084016102e4565b60018201546040516340c10f1960e01b81526001600160a01b03909116906340c10f19906106b0903390889060040161174a565b600060405180830381600087803b1580156106ca57600080fd5b505af11580156106de573d6000803e3d6000fd5b50505060018301546040518592506001600160a01b03808a169233927e989e8d31410c29caf0085f1b67a406c7146d720ea8e126047c5aac4c1b3b2b9261072a9216908b908b90611763565b60405180910390a450505061073d611397565b505050565b6001600160a01b038216600090815260326020908152604080832084845290915281208054156107dd578054604051631398fee160e31b815260048101919091526001600160a01b03851690639cc7f70890602401602060405180830381865afa1580156107b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d89190611731565b6107e0565b60005b949350505050565b6000546001600160a01b031633146108125760405162461bcd60e51b81526004016102e490611784565b6001600160a01b03808516600090815260326020908152604080832087845290915290206001810154909116156108915760405162461bcd60e51b815260206004820152602f602482015260008051602061187683398151915260448201526e185b1c9958591e48195e1a5cdd1959608a1b60648201526084016102e4565b826001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f391906117a8565b60ff16856001600160a01b0316633e7e86696040518163ffffffff1660e01b8152600401602060405180830381865afa158015610934573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095891906117a8565b60ff16146109bc5760405162461bcd60e51b815260206004820152602b60248201527f536f6c764254434d756c74694173736574506f6f6c3a20646563696d616c732060448201526a1b9bdd081b585d18da195960aa1b60648201526084016102e4565b8115610b1a5760405163131f9f3f60e11b81526004810183905284906001600160a01b0387169063263f3e7e90602401602060405180830381865afa158015610a09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2d9190611731565b14610a4a5760405162461bcd60e51b81526004016102e4906117cb565b6040516331a9108f60e11b81526004810183905230906001600160a01b03871690636352211e90602401602060405180830381865afa158015610a91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab591906116c6565b6001600160a01b031614610b1a5760405162461bcd60e51b815260206004820152602660248201527f536f6c764254434d756c74694173736574506f6f6c3a207366744964206e6f74604482015265081bdddb995960d21b60648201526084016102e4565b81815560018101805460ff60a81b196001600160a81b03199091166001600160a01b03808716918217600160a01b1792909216600160a81b1790925560405186918816907fc2532812ecf7eb4907c9cac96370c00bfb6064322750c6dd0bc97114ceeaa18790610b8d9087815260200190565b60405180910390a45050505050565b6000610ba66111d3565b60008211610c115760405162461bcd60e51b815260206004820152603260248201527f536f6c764254434d756c74694173736574506f6f6c3a207769746864726177206044820152710616d6f756e742063616e6e6f7420626520360741b60648201526084016102e4565b6001600160a01b038516600090815260326020908152604080832087845290915290206001810154600160a81b900460ff16610c915760405162461bcd60e51b815260206004820152602b602482015260008051602061187683398151915260448201526a1b9bdd08185b1b1bddd95960aa1b60648201526084016102e4565b6000610c9d8787610742565b905080841115610d035760405162461bcd60e51b815260206004820152602b60248201527f536f6c764254434d756c74694173736574506f6f6c3a20696e7375666669636960448201526a656e742062616c616e636560a81b60648201526084016102e4565b6001820154604051632770a7eb60e21b81526001600160a01b0390911690639dc29fac90610d37903390889060040161174a565b600060405180830381600087803b158015610d5157600080fd5b505af1158015610d65573d6000803e3d6000fd5b5050505084600003610d8857610d8187836000015433876113a8565b9250610ebc565b60405163131f9f3f60e11b8152600481018690526001600160a01b0388169063263f3e7e90602401602060405180830381865afa158015610dcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df19190611731565b8614610e0f5760405162461bcd60e51b81526004016102e4906117cb565b6040516331a9108f60e11b8152600481018690526001600160a01b03881690636352211e90602401602060405180830381865afa158015610e54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7891906116c6565b6001600160a01b0316336001600160a01b031614610ea85760405162461bcd60e51b81526004016102e4906116e3565b610eb88783600001548787611273565b8492505b600182015460405187916001600160a01b03808b169233927f57a06fdd930dbeed1599239829f62ff839283da1c96a5eb2b024c791b1d76e6992610f069291169089908b90611763565b60405180910390a450506107e0611397565b6000546001600160a01b03163314610f425760405162461bcd60e51b81526004016102e490611784565b6001546040517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a991610f81916001600160a01b039091169084906116ac565b60405180910390a1600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000610fb561142a565b805490915060ff600160401b82041615906001600160401b0316600081158015610fdc5750825b90506000826001600160401b03166001148015610ff85750303b155b905081158015611006575080155b156110245760405163f92ee8a960e01b815260040160405180910390fd5b84546001600160401b0319166001178555831561104d57845460ff60401b1916600160401b1785555b6110563361144e565b61105e611462565b83156110a457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050565b6000546001600160a01b031633146110d55760405162461bcd60e51b81526004016102e490611784565b6001600160a01b0380851660009081526032602090815260408083208784529091529020600181015490911661114f5760405162461bcd60e51b815260206004820152602b602482015260008051602061187683398151915260448201526a1b9bdd08195e1a5cdd195960aa1b60648201526084016102e4565b60018101805461ffff60a01b1916600160a01b85151590810260ff60a81b191691909117600160a81b8515159081029190911790925560408051918252602082019290925285916001600160a01b038816917fa36339e77124f707069252e7a04f56b467507541182e9e4b2536c9f8377464ff910160405180910390a35050505050565b60006111dd611474565b80549091506001190161120357604051633ee5aeb560e01b815260040160405180910390fd5b60029055565b6040516323b872dd60e01b815283906001600160a01b038216906323b872dd9061123b90869030908790600401611812565b600060405180830381600087803b15801561125557600080fd5b505af1158015611269573d6000803e3d6000fd5b5050505050505050565b604051630310ed7f60e41b815260048101849052602481018390526044810182905284906001600160a01b0382169063310ed7f090606401600060405180830381600087803b1580156112c557600080fd5b505af11580156112d9573d6000803e3d6000fd5b505050505050505050565b6040516323b872dd60e01b815283906001600160a01b038216906323b872dd9061123b90309087908790600401611812565b6040516307a42e0160e11b815260009084906001600160a01b03821690630f485c029061134b90879030908890600401611836565b6020604051808303816000875af115801561136a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138e9190611731565b95945050505050565b60006113a1611474565b6001905550565b6040516307a42e0160e11b815260009085906001600160a01b03821690630f485c02906113dd90889088908890600401611836565b6020604051808303816000875af11580156113fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114209190611731565b9695505050505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0090565b611456611498565b61145f816114bd565b50565b61146a611498565b611472611509565b565b7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0090565b6114a0611511565b61147257604051631afcd79f60e31b815260040160405180910390fd5b6114c5611498565b600080546001600160a01b0319166001600160a01b038316178155604051600080516020611896833981519152916114fe9184906116ac565b60405180910390a150565b611397611498565b600061151b61142a565b54600160401b900460ff16919050565b6001600160a01b038116811461145f57600080fd5b60008060006060848603121561155557600080fd5b83356115608161152b565b95602085013595506040909401359392505050565b6000806040838503121561158857600080fd5b82356115938161152b565b946020939093013593505050565b600080600080608085870312156115b757600080fd5b84356115c28161152b565b93506020850135925060408501356115d98161152b565b9396929550929360600135925050565b600080600080608085870312156115ff57600080fd5b843561160a8161152b565b966020860135965060408601359560600135945092505050565b60006020828403121561163657600080fd5b81356116418161152b565b9392505050565b8035801515811461165857600080fd5b919050565b6000806000806080858703121561167357600080fd5b843561167e8161152b565b93506020850135925061169360408601611648565b91506116a160608601611648565b905092959194509250565b6001600160a01b0392831681529116602082015260400190565b6000602082840312156116d857600080fd5b81516116418161152b565b6020808252602e908201527f536f6c764254434d756c74694173736574506f6f6c3a2063616c6c657220697360408201526d103737ba1039b33a1037bbb732b960911b606082015260800190565b60006020828403121561174357600080fd5b5051919050565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039390931683526020830191909152604082015260600190565b6020808252600a908201526937b7363c9030b236b4b760b11b604082015260600190565b6000602082840312156117ba57600080fd5b815160ff8116811461164157600080fd5b60208082526027908201527f536f6c764254434d756c74694173736574506f6f6c3a20736c6f74206e6f74206040820152661b585d18da195960ca1b606082015260800190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b9283526001600160a01b0391909116602083015260408201526060019056fe536f6c764254434d756c74694173736574506f6f6c3a206465706f7369742061536f6c764254434d756c74694173736574506f6f6c3a2073667420736c6f7420f9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dca2646970667358221220063f6d5e4867935343127d21abcd55a534dec90ebbdb86643aaa9c6fe89458ad64736f6c63430008140033", "devdoc": { "errors": { "InvalidInitialization()": [ { "details": "The contract is already initialized." } ], "NotInitializing()": [ { "details": "The contract is not initializing." } ], "ReentrancyGuardReentrantCall()": [ { "details": "Unauthorized reentrant call." } ] }, "events": { "Initialized(uint64)": { "details": "Triggered when the contract has been initialized or reinitialized." } }, "kind": "dev", "methods": { "constructor": { "custom:oz-upgrades-unsafe-allow": "constructor" } }, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 }, "storageLayout": { "storage": [ { "astId": 9539, "contract": "contracts/SolvBTCMultiAssetPool.sol:SolvBTCMultiAssetPool", "label": "admin", "offset": 0, "slot": "0", "type": "t_address" }, { "astId": 9541, "contract": "contracts/SolvBTCMultiAssetPool.sol:SolvBTCMultiAssetPool", "label": "pendingAdmin", "offset": 0, "slot": "1", "type": "t_address" }, { "astId": 9636, "contract": "contracts/SolvBTCMultiAssetPool.sol:SolvBTCMultiAssetPool", "label": "__gap", "offset": 0, "slot": "2", "type": "t_array(t_uint256)48_storage" }, { "astId": 7107, "contract": "contracts/SolvBTCMultiAssetPool.sol:SolvBTCMultiAssetPool", "label": "_sftSlotInfos", "offset": 0, "slot": "50", "type": "t_mapping(t_address,t_mapping(t_uint256,t_struct(SftSlotInfo)7100_storage))" }, { "astId": 7757, "contract": "contracts/SolvBTCMultiAssetPool.sol:SolvBTCMultiAssetPool", "label": "__gap", "offset": 0, "slot": "51", "type": "t_array(t_uint256)49_storage" } ], "types": { "t_address": { "encoding": "inplace", "label": "address", "numberOfBytes": "20" }, "t_array(t_uint256)48_storage": { "base": "t_uint256", "encoding": "inplace", "label": "uint256[48]", "numberOfBytes": "1536" }, "t_array(t_uint256)49_storage": { "base": "t_uint256", "encoding": "inplace", "label": "uint256[49]", "numberOfBytes": "1568" }, "t_bool": { "encoding": "inplace", "label": "bool", "numberOfBytes": "1" }, "t_mapping(t_address,t_mapping(t_uint256,t_struct(SftSlotInfo)7100_storage))": { "encoding": "mapping", "key": "t_address", "label": "mapping(address => mapping(uint256 => struct SolvBTCMultiAssetPool.SftSlotInfo))", "numberOfBytes": "32", "value": "t_mapping(t_uint256,t_struct(SftSlotInfo)7100_storage)" }, "t_mapping(t_uint256,t_struct(SftSlotInfo)7100_storage)": { "encoding": "mapping", "key": "t_uint256", "label": "mapping(uint256 => struct SolvBTCMultiAssetPool.SftSlotInfo)", "numberOfBytes": "32", "value": "t_struct(SftSlotInfo)7100_storage" }, "t_struct(SftSlotInfo)7100_storage": { "encoding": "inplace", "label": "struct SolvBTCMultiAssetPool.SftSlotInfo", "members": [ { "astId": 7093, "contract": "contracts/SolvBTCMultiAssetPool.sol:SolvBTCMultiAssetPool", "label": "holdingValueSftId", "offset": 0, "slot": "0", "type": "t_uint256" }, { "astId": 7095, "contract": "contracts/SolvBTCMultiAssetPool.sol:SolvBTCMultiAssetPool", "label": "erc20", "offset": 0, "slot": "1", "type": "t_address" }, { "astId": 7097, "contract": "contracts/SolvBTCMultiAssetPool.sol:SolvBTCMultiAssetPool", "label": "depositAllowed", "offset": 20, "slot": "1", "type": "t_bool" }, { "astId": 7099, "contract": "contracts/SolvBTCMultiAssetPool.sol:SolvBTCMultiAssetPool", "label": "withdrawAllowed", "offset": 21, "slot": "1", "type": "t_bool" } ], "numberOfBytes": "64" }, "t_uint256": { "encoding": "inplace", "label": "uint256", "numberOfBytes": "32" } } } }