{ "address": "0x24b0Fa270D3Ab69e46131484505D974C36d0F33C", "abi": [ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, { "inputs": [], "name": "NotInitializing", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" } ], "name": "OwnableInvalidOwner", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "OwnableUnauthorizedAccount", "type": "error" }, { "inputs": [], "name": "ReentrancyGuardReentrantCall", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "verifier", "type": "address" } ], "name": "AddKycSBTVerifier", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "targetToken", "type": "address" }, { "indexed": true, "internalType": "address", "name": "redemption", "type": "address" }, { "indexed": true, "internalType": "address", "name": "requester", "type": "address" }, { "indexed": false, "internalType": "bytes32", "name": "poolId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "redemptionId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "targetTokenAmount", "type": "uint256" } ], "name": "CancelWithdrawRequest", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "targetToken", "type": "address" }, { "indexed": true, "internalType": "address", "name": "currency", "type": "address" }, { "indexed": true, "internalType": "address", "name": "depositor", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "targetTokenAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "currencyAmount", "type": "uint256" }, { "indexed": false, "internalType": "address[]", "name": "path", "type": "address[]" }, { "indexed": false, "internalType": "bytes32[]", "name": "poolIds", "type": "bytes32[]" } ], "name": "Deposit", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" } ], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferStarted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "verifier", "type": "address" } ], "name": "RemoveKycSBTVerifier", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "multiAssetPool", "type": "address" } ], "name": "SetMultiAssetPool", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "openFundMarket", "type": "address" } ], "name": "SetOpenFundMarket", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "currency", "type": "address" }, { "indexed": true, "internalType": "address", "name": "targetToken", "type": "address" }, { "indexed": false, "internalType": "address[]", "name": "path", "type": "address[]" } ], "name": "SetPath", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "targetToken", "type": "address" }, { "indexed": true, "internalType": "address", "name": "currency", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "poolId", "type": "bytes32" } ], "name": "SetPoolId", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "targetToken", "type": "address" }, { "indexed": true, "internalType": "address", "name": "currency", "type": "address" }, { "indexed": true, "internalType": "address", "name": "requester", "type": "address" }, { "indexed": false, "internalType": "bytes32", "name": "poolId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "withdrawAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "redemptionId", "type": "uint256" } ], "name": "WithdrawRequest", "type": "event" }, { "inputs": [], "name": "X_SOLV_BTC_POOL_ID", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "kycSBTVerifier_", "type": "address" } ], "name": "addKycSBTVerifier", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "targetToken_", "type": "address" }, { "internalType": "address", "name": "redemption_", "type": "address" }, { "internalType": "uint256", "name": "redemptionId_", "type": "uint256" } ], "name": "cancelWithdrawRequest", "outputs": [ { "internalType": "uint256", "name": "targetTokenAmount_", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "checkKycSBT", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "poolId_", "type": "bytes32" } ], "name": "checkPoolPermission", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "targetToken_", "type": "address" }, { "internalType": "address", "name": "currency_", "type": "address" }, { "internalType": "uint256", "name": "currencyAmount_", "type": "uint256" }, { "internalType": "uint256", "name": "minimumTargetTokenAmount_", "type": "uint256" }, { "internalType": "uint64", "name": "expireTime_", "type": "uint64" } ], "name": "deposit", "outputs": [ { "internalType": "uint256", "name": "targetTokenAmount_", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner_", "type": "address" }, { "internalType": "address", "name": "openFundMarket_", "type": "address" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "kycSBTVerifiers", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "multiAssetPools", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "openFundMarket", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "paths", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pendingOwner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" } ], "name": "poolIds", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "kycSBTVerifier_", "type": "address" } ], "name": "removeKycSBTVerifier", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "token_", "type": "address" }, { "internalType": "address", "name": "multiAssetPool_", "type": "address" } ], "name": "setMultiAssetPool", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "currency_", "type": "address" }, { "internalType": "address", "name": "targetToken_", "type": "address" }, { "internalType": "address[]", "name": "path_", "type": "address[]" } ], "name": "setPath", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "targetToken_", "type": "address" }, { "internalType": "address", "name": "currency_", "type": "address" }, { "internalType": "bytes32", "name": "poolId_", "type": "bytes32" } ], "name": "setPoolId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "targetToken_", "type": "address" }, { "internalType": "address", "name": "currency_", "type": "address" }, { "internalType": "uint256", "name": "withdrawAmount_", "type": "uint256" } ], "name": "withdrawRequest", "outputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" } ], "transactionHash": "0xcecac81b6a6817071a757b3e50eb7febb213e5ff69abe392c485bf564f0153c3", "receipt": { "to": null, "from": "0x55C09707Fd7aFD670e82A62FaeE312903940013E", "contractAddress": "0x24b0Fa270D3Ab69e46131484505D974C36d0F33C", "transactionIndex": 15, "gasUsed": "3049978", "logsBloom": "0x00000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000080000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "blockHash": "0xfcafbbc87142a291edcc4a81b1878f570cfb6d19617d9d52aeae6e36e6575735", "transactionHash": "0xcecac81b6a6817071a757b3e50eb7febb213e5ff69abe392c485bf564f0153c3", "logs": [ { "transactionIndex": 15, "blockNumber": 22836036, "transactionHash": "0xcecac81b6a6817071a757b3e50eb7febb213e5ff69abe392c485bf564f0153c3", "address": "0x24b0Fa270D3Ab69e46131484505D974C36d0F33C", "topics": [ "0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2" ], "data": "0x000000000000000000000000000000000000000000000000ffffffffffffffff", "logIndex": 116, "blockHash": "0xfcafbbc87142a291edcc4a81b1878f570cfb6d19617d9d52aeae6e36e6575735" } ], "blockNumber": 22836036, "cumulativeGasUsed": "7980083", "status": 1, "byzantium": true }, "args": [], "numDeployments": 1, "solcInputHash": "760eba89c1c012ccff424261b8f1308d", "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\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReentrancyGuardReentrantCall\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"verifier\",\"type\":\"address\"}],\"name\":\"AddKycSBTVerifier\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"targetToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"redemption\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"redemptionId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"targetTokenAmount\",\"type\":\"uint256\"}],\"name\":\"CancelWithdrawRequest\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"targetToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"depositor\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"targetTokenAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"currencyAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"bytes32[]\",\"name\":\"poolIds\",\"type\":\"bytes32[]\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"verifier\",\"type\":\"address\"}],\"name\":\"RemoveKycSBTVerifier\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"multiAssetPool\",\"type\":\"address\"}],\"name\":\"SetMultiAssetPool\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"openFundMarket\",\"type\":\"address\"}],\"name\":\"SetOpenFundMarket\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"targetToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"SetPath\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"targetToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"}],\"name\":\"SetPoolId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"targetToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"withdrawAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"redemptionId\",\"type\":\"uint256\"}],\"name\":\"WithdrawRequest\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"X_SOLV_BTC_POOL_ID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"kycSBTVerifier_\",\"type\":\"address\"}],\"name\":\"addKycSBTVerifier\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"targetToken_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"redemption_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"redemptionId_\",\"type\":\"uint256\"}],\"name\":\"cancelWithdrawRequest\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"targetTokenAmount_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"checkKycSBT\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId_\",\"type\":\"bytes32\"}],\"name\":\"checkPoolPermission\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"targetToken_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"currency_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"currencyAmount_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumTargetTokenAmount_\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"expireTime_\",\"type\":\"uint64\"}],\"name\":\"deposit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"targetTokenAmount_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"openFundMarket_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"kycSBTVerifiers\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"multiAssetPools\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"openFundMarket\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"paths\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"poolIds\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"kycSBTVerifier_\",\"type\":\"address\"}],\"name\":\"removeKycSBTVerifier\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"multiAssetPool_\",\"type\":\"address\"}],\"name\":\"setMultiAssetPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"currency_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"targetToken_\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"path_\",\"type\":\"address[]\"}],\"name\":\"setPath\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"targetToken_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"currency_\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"poolId_\",\"type\":\"bytes32\"}],\"name\":\"setPoolId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"targetToken_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"currency_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"withdrawAmount_\",\"type\":\"uint256\"}],\"name\":\"withdrawRequest\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"InvalidInitialization()\":[{\"details\":\"The contract is already initialized.\"}],\"NotInitializing()\":[{\"details\":\"The contract is not initializing.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"ReentrancyGuardReentrantCall()\":[{\"details\":\"Unauthorized reentrant call.\"}]},\"events\":{\"Initialized(uint64)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"}},\"kind\":\"dev\",\"methods\":{\"acceptOwnership()\":{\"details\":\"The new owner accepts the ownership transfer.\"},\"addKycSBTVerifier(address)\":{\"params\":{\"kycSBTVerifier_\":\"The KYC SBT verifier address\"}},\"cancelWithdrawRequest(address,address,uint256)\":{\"params\":{\"redemptionId_\":\"The redemption sft token ID\",\"redemption_\":\"The redemption sft token address\",\"targetToken_\":\"The target ERC20 token address to receive after canceling\"},\"returns\":{\"targetTokenAmount_\":\"The targetToken amount to receive\"}},\"checkPoolPermission(bytes32)\":{\"params\":{\"poolId_\":\"The poolId of the pool to deposit\"}},\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\"},\"deposit(address,address,uint256,uint256,uint64)\":{\"params\":{\"currencyAmount_\":\"The amount of currency to deposit\",\"currency_\":\"The currency address to deposit\",\"expireTime_\":\"The expire time\",\"minimumTargetTokenAmount_\":\"The minimum acceptable return amount of target token\",\"targetToken_\":\"The target ERC20 token address to receive\"},\"returns\":{\"targetTokenAmount_\":\"The targetToken amount to receive\"}},\"initialize(address,address)\":{\"params\":{\"openFundMarket_\":\"The address of openFundMarket\",\"owner_\":\"The owner of this router\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pendingOwner()\":{\"details\":\"Returns the address of the pending owner.\"},\"removeKycSBTVerifier(address)\":{\"params\":{\"kycSBTVerifier_\":\"The KYC SBT verifier address\"}},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"setMultiAssetPool(address,address)\":{\"params\":{\"multiAssetPool_\":\"The multiAssetPool/xSolvBTCPool address\",\"token_\":\"The target ERC20 token address\"}},\"setPath(address,address,address[])\":{\"params\":{\"currency_\":\"The currency address to deposit\",\"path_\":\"The addresses of the path tokens that indicate how to convert currency to targetToken\",\"targetToken_\":\"The target ERC20 token address to receive\"}},\"setPoolId(address,address,bytes32)\":{\"params\":{\"currency_\":\"The currency address to deposit\",\"poolId_\":\"The poolId of the pool to deposit\",\"targetToken_\":\"The target ERC20 token address to receive\"}},\"transferOwnership(address)\":{\"details\":\"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner.\"},\"withdrawRequest(address,address,uint256)\":{\"params\":{\"currency_\":\"The currency address to receive after claiming\",\"targetToken_\":\"The target ERC20 token address to withdraw\",\"withdrawAmount_\":\"The amount of targetToken to withdraw\"},\"returns\":{\"_0\":\"The address and ID of the redemption sft token to receive\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"addKycSBTVerifier(address)\":{\"notice\":\"Add KYC SBT verifier\"},\"cancelWithdrawRequest(address,address,uint256)\":{\"notice\":\"Cancel the withdraw request\"},\"checkKycSBT()\":{\"notice\":\"Verify the KYC status of msg.sender\"},\"checkPoolPermission(bytes32)\":{\"notice\":\"Check if msg.sender is allowed to deposit to the pool\"},\"deposit(address,address,uint256,uint256,uint64)\":{\"notice\":\"Deposit currency and get targetToken\"},\"initialize(address,address)\":{\"notice\":\"RouterV2 initialization\"},\"removeKycSBTVerifier(address)\":{\"notice\":\"Remove KYC SBT verifier\"},\"setMultiAssetPool(address,address)\":{\"notice\":\"Set the multiAssetPool/xSolvBTCPool address for a target token\"},\"setPath(address,address,address[])\":{\"notice\":\"Set the path for a target token and currency\"},\"setPoolId(address,address,bytes32)\":{\"notice\":\"Set the poolId for a target token and currency\"},\"withdrawRequest(address,address,uint256)\":{\"notice\":\"Withdraw currency with target token from the pool\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/SolvBTCRouterV2.sol\":\"SolvBTCRouterV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {OwnableUpgradeable} from \\\"./OwnableUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is specified at deployment time in the constructor for `Ownable`. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable2Step\\n struct Ownable2StepStorage {\\n address _pendingOwner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable2Step\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant Ownable2StepStorageLocation = 0x237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00;\\n\\n function _getOwnable2StepStorage() private pure returns (Ownable2StepStorage storage $) {\\n assembly {\\n $.slot := Ownable2StepStorageLocation\\n }\\n }\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n function __Ownable2Step_init() internal onlyInitializing {\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n return $._pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n $._pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n delete $._pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n if (pendingOwner() != sender) {\\n revert OwnableUnauthorizedAccount(sender);\\n }\\n _transferOwnership(sender);\\n }\\n}\\n\",\"keccak256\":\"0xbca4a4f66d98028293dba695851d1b20d3e0ba2fff7453fb241f192fa3fc6b6f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"@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/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"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\"},\"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/IxSolvBTCPool.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity 0.8.20;\\n\\ninterface IxSolvBTCPool {\\n function deposit(uint256 solvBtcAmount_) external returns (uint256 xSolvBtcAmount);\\n function withdraw(uint256 xSolvBtcAmount_) external returns (uint256 solvBtcAmount);\\n}\\n\",\"keccak256\":\"0xf0d18663eb665ae6bb3773602428b35245316f38d270d8c868ecb96f5767e0a6\",\"license\":\"MIT\"},\"contracts/SolvBTCRouterV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity 0.8.20;\\n\\nimport \\\"@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol\\\";\\nimport \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\nimport {IOpenFundMarket, IOFMWhitelistStrategyManager, PoolInfo} from \\\"./external/IOpenFundMarket.sol\\\";\\nimport {\\n IOpenFundRedemptionDelegate, IOpenFundRedemptionConcrete, RedeemInfo\\n} from \\\"./external/IOpenFundRedemption.sol\\\";\\nimport {IERC721} from \\\"./external/IERC721.sol\\\";\\nimport {IERC3525} from \\\"./external/IERC3525.sol\\\";\\nimport {ERC20TransferHelper} from \\\"./utils/ERC20TransferHelper.sol\\\";\\nimport {ERC3525TransferHelper} from \\\"./utils/ERC3525TransferHelper.sol\\\";\\nimport {ISolvBTCMultiAssetPool} from \\\"./ISolvBTCMultiAssetPool.sol\\\";\\nimport {IxSolvBTCPool} from \\\"./IxSolvBTCPool.sol\\\";\\n\\ncontract SolvBTCRouterV2 is ReentrancyGuardUpgradeable, Ownable2StepUpgradeable {\\n event Deposit(\\n address indexed targetToken,\\n address indexed currency,\\n address indexed depositor,\\n uint256 targetTokenAmount,\\n uint256 currencyAmount,\\n address[] path,\\n bytes32[] poolIds\\n );\\n event WithdrawRequest(\\n address indexed targetToken,\\n address indexed currency,\\n address indexed requester,\\n bytes32 poolId,\\n uint256 withdrawAmount,\\n uint256 redemptionId\\n );\\n event CancelWithdrawRequest(\\n address indexed targetToken,\\n address indexed redemption,\\n address indexed requester,\\n bytes32 poolId,\\n uint256 redemptionId,\\n uint256 targetTokenAmount\\n );\\n event SetOpenFundMarket(address indexed openFundMarket);\\n event AddKycSBTVerifier(address indexed verifier);\\n event RemoveKycSBTVerifier(address indexed verifier);\\n event SetPath(address indexed currency, address indexed targetToken, address[] path);\\n event SetPoolId(address indexed targetToken, address indexed currency, bytes32 indexed poolId);\\n event SetMultiAssetPool(address indexed token, address indexed multiAssetPool);\\n\\n // the address of openFundMarket\\n address public openFundMarket;\\n\\n // the addresses of SBTs that will be used to verify the KYC status\\n address[] public kycSBTVerifiers;\\n\\n // currency => target ERC20 => path(ERC20[])\\n mapping(address => mapping(address => address[])) public paths;\\n\\n // target ERC20 (SolvBTC or LSTs) => currency => poolId\\n mapping(address => mapping(address => bytes32)) public poolIds;\\n\\n // ERC20 => multiAssetPool\\n mapping(address => address) public multiAssetPools;\\n\\n // use a special poolId to represent the xSolvBTC pool\\n bytes32 public constant X_SOLV_BTC_POOL_ID =\\n bytes32(0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n\\n /// @custom:oz-upgrades-unsafe-allow constructor\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice RouterV2 initialization\\n * @param owner_ The owner of this router\\n * @param openFundMarket_ The address of openFundMarket\\n */\\n function initialize(address owner_, address openFundMarket_) external initializer {\\n require(owner_ != address(0), \\\"SolvBTCRouterV2: invalid admin\\\");\\n __Ownable_init_unchained(owner_);\\n __ReentrancyGuard_init();\\n _setOpenFundMarket(openFundMarket_);\\n }\\n\\n /**\\n * @notice Deposit currency and get targetToken\\n * @param targetToken_ The target ERC20 token address to receive\\n * @param currency_ The currency address to deposit\\n * @param currencyAmount_ The amount of currency to deposit\\n * @param minimumTargetTokenAmount_ The minimum acceptable return amount of target token\\n * @param expireTime_ The expire time\\n * @return targetTokenAmount_ The targetToken amount to receive\\n */\\n function deposit(address targetToken_, address currency_, uint256 currencyAmount_, uint256 minimumTargetTokenAmount_, uint64 expireTime_)\\n external\\n virtual\\n nonReentrant\\n returns (uint256 targetTokenAmount_)\\n {\\n require(currencyAmount_ > 0, \\\"SolvBTCRouterV2: invalid currency amount\\\");\\n ERC20TransferHelper.doTransferIn(currency_, msg.sender, currencyAmount_);\\n\\n address[] memory path = paths[currency_][targetToken_];\\n bytes32[] memory pathPoolIds = new bytes32[](path.length + 1);\\n targetTokenAmount_ = currencyAmount_;\\n for (uint256 i = 0; i <= path.length; i++) {\\n address paidToken = i == 0 ? currency_ : path[i - 1];\\n address receivedToken = i == path.length ? targetToken_ : path[i];\\n bytes32 targetPoolId = poolIds[receivedToken][paidToken];\\n pathPoolIds[i] = targetPoolId;\\n // if the targetPoolId is the xSolvBTC pool, deposit to xSolvBTC pool\\n if (targetPoolId == bytes32(X_SOLV_BTC_POOL_ID)) {\\n targetTokenAmount_ = _depositToXSolvBTC(receivedToken, targetTokenAmount_);\\n } else {\\n targetTokenAmount_ = _deposit(receivedToken, paidToken, targetTokenAmount_, expireTime_);\\n }\\n }\\n require(targetTokenAmount_ >= minimumTargetTokenAmount_, \\\"SolvBTCRouterV2: target token amount not enough\\\");\\n ERC20TransferHelper.doTransferOut(targetToken_, payable(msg.sender), targetTokenAmount_);\\n\\n emit Deposit(targetToken_, currency_, msg.sender, targetTokenAmount_, currencyAmount_, path, pathPoolIds);\\n }\\n\\n function _depositToXSolvBTC(address targetToken_, uint256 currencyAmount_)\\n internal\\n returns (uint256 targetTokenAmount_)\\n {\\n address xSolvBTCPool = multiAssetPools[targetToken_];\\n return IxSolvBTCPool(xSolvBTCPool).deposit(currencyAmount_);\\n }\\n\\n function _deposit(address targetToken_, address currency_, uint256 currencyAmount_, uint64 expireTime_)\\n internal\\n returns (uint256 targetTokenAmount_)\\n {\\n bytes32 targetPoolId = poolIds[targetToken_][currency_];\\n require(targetPoolId > 0, \\\"SolvBTCRouterV2: poolId not found\\\");\\n require(checkPoolPermission(targetPoolId), \\\"SolvBTCRouterV2: pool permission denied\\\");\\n\\n address _openFundMarket = openFundMarket;\\n PoolInfo memory poolInfo = IOpenFundMarket(_openFundMarket).poolInfos(targetPoolId);\\n require(currency_ == poolInfo.currency, \\\"SolvBTCRouterV2: currency not match\\\");\\n IERC3525 share = IERC3525(poolInfo.poolSFTInfo.openFundShare);\\n uint256 shareSlot = poolInfo.poolSFTInfo.openFundShareSlot;\\n\\n address multiAssetPool = multiAssetPools[targetToken_];\\n require(\\n targetToken_ == ISolvBTCMultiAssetPool(multiAssetPool).getERC20(address(share), shareSlot),\\n \\\"SolvBTCRouterV2: target token not match\\\"\\n );\\n\\n ERC20TransferHelper.doApprove(currency_, _openFundMarket, currencyAmount_);\\n targetTokenAmount_ =\\n IOpenFundMarket(_openFundMarket).subscribe(targetPoolId, currencyAmount_, 0, expireTime_);\\n\\n uint256 shareCount = share.balanceOf(address(this));\\n uint256 shareId = share.tokenOfOwnerByIndex(address(this), shareCount - 1);\\n require(shareSlot == share.slotOf(shareId), \\\"SolvBTCRouterV2: share slot not match\\\");\\n require(targetTokenAmount_ == share.balanceOf(shareId), \\\"SolvBTCRouterV2: share value not match\\\");\\n\\n share.approve(multiAssetPool, shareId);\\n ISolvBTCMultiAssetPool(multiAssetPool).deposit(address(share), shareId, targetTokenAmount_);\\n }\\n\\n /**\\n * @notice Withdraw currency with target token from the pool\\n * @param targetToken_ The target ERC20 token address to withdraw\\n * @param currency_ The currency address to receive after claiming\\n * @param withdrawAmount_ The amount of targetToken to withdraw\\n * @return The address and ID of the redemption sft token to receive\\n */\\n function withdrawRequest(address targetToken_, address currency_, uint256 withdrawAmount_)\\n external\\n virtual\\n nonReentrant\\n returns (address, uint256)\\n {\\n bytes32 targetPoolId = poolIds[targetToken_][currency_];\\n require(targetPoolId > 0, \\\"SolvBTCRouterV2: poolId not found\\\");\\n\\n address _openFundMarket = openFundMarket;\\n PoolInfo memory poolInfo = IOpenFundMarket(_openFundMarket).poolInfos(targetPoolId);\\n require(currency_ == poolInfo.currency, \\\"SolvBTCRouterV2: currency not match\\\");\\n IERC3525 share = IERC3525(poolInfo.poolSFTInfo.openFundShare);\\n IERC3525 redemption = IERC3525(poolInfo.poolSFTInfo.openFundRedemption);\\n uint256 shareSlot = poolInfo.poolSFTInfo.openFundShareSlot;\\n\\n {\\n address multiAssetPool = multiAssetPools[targetToken_];\\n require(\\n targetToken_ == ISolvBTCMultiAssetPool(multiAssetPool).getERC20(address(share), shareSlot),\\n \\\"SolvBTCRouterV2: target token not match\\\"\\n );\\n\\n ERC20TransferHelper.doTransferIn(targetToken_, msg.sender, withdrawAmount_);\\n uint256 shareId =\\n ISolvBTCMultiAssetPool(multiAssetPool).withdraw(address(share), shareSlot, 0, withdrawAmount_);\\n require(withdrawAmount_ == share.balanceOf(shareId), \\\"SolvBTCRouterV2: share value not match\\\");\\n\\n ERC3525TransferHelper.doApproveId(address(share), _openFundMarket, shareId);\\n IOpenFundMarket(_openFundMarket).requestRedeem(targetPoolId, shareId, 0, withdrawAmount_);\\n }\\n\\n uint256 redemptionCount = redemption.balanceOf(address(this));\\n uint256 redemptionId_ = redemption.tokenOfOwnerByIndex(address(this), redemptionCount - 1);\\n require(withdrawAmount_ == redemption.balanceOf(redemptionId_), \\\"SolvBTCRouterV2: redemption value not match\\\");\\n ERC3525TransferHelper.doTransferOut(address(redemption), payable(msg.sender), redemptionId_);\\n\\n emit WithdrawRequest(targetToken_, currency_, msg.sender, targetPoolId, withdrawAmount_, redemptionId_);\\n return (address(redemption), redemptionId_);\\n }\\n\\n /**\\n * @notice Cancel the withdraw request\\n * @param targetToken_ The target ERC20 token address to receive after canceling\\n * @param redemption_ The redemption sft token address\\n * @param redemptionId_ The redemption sft token ID\\n * @return targetTokenAmount_ The targetToken amount to receive\\n */\\n function cancelWithdrawRequest(address targetToken_, address redemption_, uint256 redemptionId_)\\n external\\n virtual\\n nonReentrant\\n returns (uint256 targetTokenAmount_)\\n {\\n bytes32 targetPoolId = _getPoolIdByRedemptionId(redemption_, redemptionId_);\\n address _openFundMarket = openFundMarket;\\n PoolInfo memory poolInfo = IOpenFundMarket(_openFundMarket).poolInfos(targetPoolId);\\n IERC3525 share = IERC3525(poolInfo.poolSFTInfo.openFundShare);\\n uint256 shareSlot = poolInfo.poolSFTInfo.openFundShareSlot;\\n\\n address multiAssetPool = multiAssetPools[targetToken_];\\n require(\\n targetToken_ == ISolvBTCMultiAssetPool(multiAssetPool).getERC20(address(share), shareSlot),\\n \\\"SolvBTCRouterV2: target token not match\\\"\\n );\\n\\n targetTokenAmount_ = IERC3525(redemption_).balanceOf(redemptionId_);\\n ERC3525TransferHelper.doTransferIn(redemption_, msg.sender, redemptionId_);\\n ERC3525TransferHelper.doApproveId(redemption_, _openFundMarket, redemptionId_);\\n IOpenFundMarket(_openFundMarket).revokeRedeem(targetPoolId, redemptionId_);\\n uint256 shareCount = share.balanceOf(address(this));\\n uint256 shareId = share.tokenOfOwnerByIndex(address(this), shareCount - 1);\\n require(targetTokenAmount_ == share.balanceOf(shareId), \\\"SolvBTCRouterV2: cancel amount not match\\\");\\n\\n ERC3525TransferHelper.doApproveId(address(share), multiAssetPool, shareId);\\n ISolvBTCMultiAssetPool(multiAssetPool).deposit(address(share), shareId, targetTokenAmount_);\\n ERC20TransferHelper.doTransferOut(targetToken_, payable(msg.sender), targetTokenAmount_);\\n\\n emit CancelWithdrawRequest(\\n targetToken_, redemption_, msg.sender, targetPoolId, redemptionId_, targetTokenAmount_\\n );\\n }\\n\\n /**\\n * @notice Check if msg.sender is allowed to deposit to the pool\\n * @param poolId_ The poolId of the pool to deposit\\n */\\n function checkPoolPermission(bytes32 poolId_) public view virtual returns (bool) {\\n address _openFundMarket = openFundMarket;\\n PoolInfo memory poolInfo = IOpenFundMarket(_openFundMarket).poolInfos(poolId_);\\n if (poolInfo.permissionless) {\\n return true;\\n }\\n address whiteListManager = IOpenFundMarket(_openFundMarket).getAddress(\\\"OFMWhitelistStrategyManager\\\");\\n return IOFMWhitelistStrategyManager(whiteListManager).isWhitelisted(poolId_, msg.sender) || checkKycSBT();\\n }\\n\\n /**\\n * @notice Verify the KYC status of msg.sender\\n */\\n function checkKycSBT() public view virtual returns (bool) {\\n for (uint256 i = 0; i < kycSBTVerifiers.length; i++) {\\n if (IERC721(kycSBTVerifiers[i]).balanceOf(msg.sender) > 0) {\\n return true;\\n }\\n }\\n return false;\\n }\\n\\n /**\\n * @notice Add KYC SBT verifier\\n * @param kycSBTVerifier_ The KYC SBT verifier address\\n */\\n function addKycSBTVerifier(address kycSBTVerifier_) external onlyOwner {\\n require(kycSBTVerifier_ != address(0), \\\"SolvBTCRouterV2: invalid verifier\\\");\\n kycSBTVerifiers.push(kycSBTVerifier_);\\n emit AddKycSBTVerifier(kycSBTVerifier_);\\n }\\n\\n /**\\n * @notice Remove KYC SBT verifier\\n * @param kycSBTVerifier_ The KYC SBT verifier address\\n */\\n function removeKycSBTVerifier(address kycSBTVerifier_) external onlyOwner {\\n for (uint256 i = 0; i < kycSBTVerifiers.length; i++) {\\n if (kycSBTVerifiers[i] == kycSBTVerifier_) {\\n kycSBTVerifiers[i] = kycSBTVerifiers[kycSBTVerifiers.length - 1];\\n kycSBTVerifiers.pop();\\n emit RemoveKycSBTVerifier(kycSBTVerifier_);\\n break;\\n }\\n }\\n }\\n\\n function _getPoolIdByRedemptionId(address redemption_, uint256 redemptionId_) internal virtual returns (bytes32) {\\n address redemptionConcrete = IOpenFundRedemptionDelegate(redemption_).concrete();\\n uint256 redemptionSlot = IERC3525(redemption_).slotOf(redemptionId_);\\n RedeemInfo memory redeemInfo = IOpenFundRedemptionConcrete(redemptionConcrete).getRedeemInfo(redemptionSlot);\\n return redeemInfo.poolId;\\n }\\n\\n function _setOpenFundMarket(address openFundMarket_) private {\\n require(openFundMarket_ != address(0), \\\"SolvBTCRouterV2: invalid openFundMarket\\\");\\n openFundMarket = openFundMarket_;\\n emit SetOpenFundMarket(openFundMarket_);\\n }\\n\\n /**\\n * @notice Set the poolId for a target token and currency\\n * @param targetToken_ The target ERC20 token address to receive\\n * @param currency_ The currency address to deposit\\n * @param poolId_ The poolId of the pool to deposit\\n */\\n function setPoolId(address targetToken_, address currency_, bytes32 poolId_) external onlyOwner {\\n require(targetToken_ != address(0), \\\"SolvBTCRouterV2: invalid targetToken\\\");\\n require(currency_ != address(0), \\\"SolvBTCRouterV2: invalid currency\\\");\\n require(poolId_ > 0, \\\"SolvBTCRouterV2: invalid poolId\\\");\\n\\n poolIds[targetToken_][currency_] = poolId_;\\n emit SetPoolId(targetToken_, currency_, poolId_);\\n }\\n\\n /**\\n * @notice Set the path for a target token and currency\\n * @param currency_ The currency address to deposit\\n * @param targetToken_ The target ERC20 token address to receive\\n * @param path_ The addresses of the path tokens that indicate how to convert currency to targetToken\\n */\\n function setPath(address currency_, address targetToken_, address[] memory path_) external onlyOwner {\\n require(currency_ != address(0), \\\"SolvBTCRouterV2: invalid currency\\\");\\n require(targetToken_ != address(0), \\\"SolvBTCRouterV2: invalid targetToken\\\");\\n for (uint256 i = 0; i < path_.length; i++) {\\n require(path_[i] != address(0), \\\"SolvBTCRouterV2: invalid path token\\\");\\n }\\n\\n paths[currency_][targetToken_] = path_;\\n emit SetPath(currency_, targetToken_, path_);\\n }\\n\\n /**\\n * @notice Set the multiAssetPool/xSolvBTCPool address for a target token\\n * @param token_ The target ERC20 token address\\n * @param multiAssetPool_ The multiAssetPool/xSolvBTCPool address\\n */\\n function setMultiAssetPool(address token_, address multiAssetPool_) external onlyOwner {\\n require(token_ != address(0), \\\"SolvBTCRouterV2: invalid token\\\");\\n require(multiAssetPool_ != address(0), \\\"SolvBTCRouterV2: invalid multiAssetPool\\\");\\n multiAssetPools[token_] = multiAssetPool_;\\n emit SetMultiAssetPool(token_, multiAssetPool_);\\n }\\n\\n uint256[45] private __gap;\\n}\\n\",\"keccak256\":\"0xd6951c76a8a815e79c6698f4dafc0e37ed12200ed58ba4fd6fd4c00f2dd08869\",\"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/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/IOpenFundMarket.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity 0.8.20;\\n\\nstruct SubscribeLimitInfo {\\n uint256 hardCap;\\n uint256 subscribeMin;\\n uint256 subscribeMax;\\n uint64 fundraisingStartTime;\\n uint64 fundraisingEndTime;\\n}\\n\\nstruct PoolSFTInfo {\\n address openFundShare;\\n address openFundRedemption;\\n uint256 openFundShareSlot;\\n uint256 latestRedeemSlot;\\n}\\n\\nstruct PoolFeeInfo {\\n uint16 carryRate;\\n address carryCollector;\\n uint64 latestProtocolFeeSettleTime;\\n}\\n\\nstruct ManagerInfo {\\n address poolManager;\\n address subscribeNavManager;\\n address redeemNavManager;\\n}\\n\\nstruct PoolInfo {\\n PoolSFTInfo poolSFTInfo;\\n PoolFeeInfo poolFeeInfo;\\n ManagerInfo managerInfo;\\n SubscribeLimitInfo subscribeLimitInfo;\\n address vault;\\n address currency;\\n address navOracle;\\n uint64 valueDate;\\n bool permissionless;\\n uint256 fundraisingAmount;\\n}\\n\\ninterface IOpenFundMarket {\\n function subscribe(bytes32 poolId, uint256 currencyAmount, uint256 openFundShareId, uint64 expireTime)\\n external\\n returns (uint256 value_);\\n function requestRedeem(bytes32 poolId, uint256 openFundShareId, uint256 openFundRedemptionId, uint256 redeemValue)\\n external;\\n function revokeRedeem(bytes32 poolId, uint256 openFundRedemptionId) external;\\n\\n function poolInfos(bytes32 poolId) external view returns (PoolInfo memory);\\n function getAddress(bytes32 name) external view returns (address);\\n function purchasedRecords(bytes32 poolId, address buyer) external view returns (uint256);\\n}\\n\\ninterface IOFMWhitelistStrategyManager {\\n function isWhitelisted(bytes32 poolId_, address buyer_) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x086d692b85541803d243e9b8ab6aecb91821274054bf536bc360b355bacc94ac\",\"license\":\"MIT\"},\"contracts/external/IOpenFundRedemption.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity 0.8.20;\\n\\nstruct RedeemInfo {\\n bytes32 poolId;\\n address currency;\\n uint256 createTime;\\n uint256 nav;\\n}\\n\\ninterface IOpenFundRedemptionDelegate {\\n function concrete() external view returns (address);\\n}\\n\\ninterface IOpenFundRedemptionConcrete {\\n function getRedeemInfo(uint256 slot) external view returns (RedeemInfo memory);\\n}\\n\",\"keccak256\":\"0x469ff2d4672431dc2910417777fd3f79f9372f62497e5a186f53b7ac3e0fca4b\",\"license\":\"MIT\"},\"contracts/utils/ERC20TransferHelper.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity 0.8.20;\\n\\ninterface ERC20Interface {\\n function balanceOf(address account) external view returns (uint256);\\n\\n function transfer(address recipient, uint256 amount) external returns (bool);\\n\\n function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\\n\\n function approve(address spender, uint256 amount) external returns (bool);\\n}\\n\\n// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false\\nlibrary ERC20TransferHelper {\\n\\n address internal constant ETH_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\\n\\n function doApprove(address underlying, address spender, uint256 amount) internal {\\n require(underlying.code.length > 0, \\\"invalid underlying\\\");\\n (bool success, bytes memory data) = underlying.call(\\n abi.encodeWithSelector(\\n ERC20Interface.approve.selector,\\n spender,\\n amount\\n )\\n );\\n require(success && (data.length == 0 || abi.decode(data, (bool))), \\\"SAF\\\");\\n }\\n\\n function doTransferIn(address underlying, address from, uint256 amount) internal {\\n if (underlying == ETH_ADDRESS) {\\n // Sanity checks\\n require(tx.origin == from || msg.sender == from, \\\"sender mismatch\\\");\\n require(msg.value >= amount, \\\"value mismatch\\\");\\n } else {\\n require(underlying.code.length > 0, \\\"invalid underlying\\\");\\n (bool success, bytes memory data) = underlying.call(\\n abi.encodeWithSelector(\\n ERC20Interface.transferFrom.selector,\\n from,\\n address(this),\\n amount\\n )\\n );\\n require(success && (data.length == 0 || abi.decode(data, (bool))), \\\"STF\\\");\\n }\\n }\\n\\n function doTransferOut(address underlying, address payable to, uint256 amount) internal {\\n if (underlying == ETH_ADDRESS) {\\n (bool success, ) = to.call{value: amount}(new bytes(0));\\n require(success, \\\"STE\\\");\\n } else {\\n require(underlying.code.length > 0, \\\"invalid underlying\\\");\\n (bool success, bytes memory data) = underlying.call(\\n abi.encodeWithSelector(\\n ERC20Interface.transfer.selector,\\n to,\\n amount\\n )\\n );\\n require(success && (data.length == 0 || abi.decode(data, (bool))), \\\"ST\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0xad355871805100dae61fd0a58d926df8ee37db00237d339afde5269e79319fe2\",\"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": "0x60806040523480156200001157600080fd5b506200001c62000022565b620000d6565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000735760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620000d35780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6135b480620000e66000396000f3fe608060405234801561001057600080fd5b50600436106101125760003560e01c8063055227a114610117578063073ef0601461012c5780631d98e7f81461013f57806342c7774b14610167578063485cc955146101885780636534d8dc1461019b578063672262e5146101c65780636dadff0b146101d9578063715018a6146101f95780637448130c1461020157806379ba50971461022a57806383ef7d17146102325780638da5cb5b1461023b5780638df9dfda146102435780639ccd8a6914610256578063ba9cf75814610269578063cef4cde414610271578063d2cfd97d14610284578063e30c3978146102a5578063f2fde38b146102ad578063f355d417146102c0578063f6d852e2146102d3575b600080fd5b61012a610125366004612caa565b6102e6565b005b61012a61013a366004612d82565b61046f565b61015261014d366004612d9f565b61054e565b60405190151581526020015b60405180910390f35b61017a610175366004612db8565b6106e9565b60405190815260200161015e565b61012a610196366004612df9565b610bb4565b61017a6101a9366004612df9565b600360209081526000928352604080842090915290825290205481565b61017a6101d4366004612e47565b610d15565b6101ec6101e7366004612d9f565b611019565b60405161015e9190612ea6565b61012a611043565b6101ec61020f366004612d82565b6004602052600090815260409020546001600160a01b031681565b61012a611057565b61017a60001981565b6101ec611096565b61012a610251366004612db8565b6110b1565b61012a610264366004612df9565b6111ab565b6101526112c6565b6101ec61027f366004612db8565b61138b565b610297610292366004612db8565b6113d0565b60405161015e929190612eba565b6101ec61195d565b61012a6102bb366004612d82565b611968565b6000546101ec906001600160a01b031681565b61012a6102e1366004612d82565b6119d9565b6102ee611b1f565b6001600160a01b03831661031d5760405162461bcd60e51b815260040161031490612ed3565b60405180910390fd5b6001600160a01b0382166103435760405162461bcd60e51b815260040161031490612f02565b60005b81518110156103e85760006001600160a01b031682828151811061036c5761036c612f46565b60200260200101516001600160a01b0316036103d65760405162461bcd60e51b815260206004820152602360248201527f536f6c76425443526f7574657256323a20696e76616c6964207061746820746f60448201526235b2b760e91b6064820152608401610314565b806103e081612f72565b915050610346565b506001600160a01b0380841660009081526002602090815260408083209386168352928152919020825161041e92840190612b68565b50816001600160a01b0316836001600160a01b03167fc3799aea01bc3147c6d65980a35dbf4661fb244ecebf3890db31c1dea0e0131c836040516104629190612fcf565b60405180910390a3505050565b610477611b1f565b6001600160a01b0381166104d75760405162461bcd60e51b815260206004820152602160248201527f536f6c76425443526f7574657256323a20696e76616c696420766572696669656044820152603960f91b6064820152608401610314565b60018054808201825560009182527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319166001600160a01b03841690811790915560405190917f406973f217cd9d1d2338d714098813a16e977aeaa9781bd83da782276082a11391a250565b6000805460405162daa6b160e61b8152600481018490526001600160a01b0390911690829082906336a9ac40906024016102a060405180830381865afa15801561059c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c0919061318d565b9050806101000151156105d7575060019392505050565b6040516321f8a72160e01b81527a27a326abb434ba32b634b9ba29ba3930ba32b3bca6b0b730b3b2b960291b60048201526000906001600160a01b038416906321f8a72190602401602060405180830381865afa15801561063c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610660919061325a565b60405163f409981160e01b8152600481018790523360248201529091506001600160a01b0382169063f409981190604401602060405180830381865afa1580156106ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d29190613277565b806106e057506106e06112c6565b95945050505050565b60006106f3611b51565b60006106ff8484611b87565b6000805460405162daa6b160e61b8152600481018490529293506001600160a01b03169182906336a9ac40906024016102a060405180830381865afa15801561074c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610770919061318d565b805180516040918201516001600160a01b03808c1660009081526004602081905290859020549451639f0b8d0360e01b81529596509294919316918291639f0b8d03916107c1918791879101612eba565b602060405180830381865afa1580156107de573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610802919061325a565b6001600160a01b03168a6001600160a01b0316146108325760405162461bcd60e51b815260040161031490613292565b604051631398fee160e31b8152600481018990526001600160a01b038a1690639cc7f70890602401602060405180830381865afa158015610877573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089b91906132d9565b96506108a889338a611cd7565b6108b389868a611d41565b6040516302e9574960e51b815260048101879052602481018990526001600160a01b03861690635d2ae92090604401600060405180830381600087803b1580156108fc57600080fd5b505af1158015610910573d6000803e3d6000fd5b50506040516370a0823160e01b8152600092506001600160a01b03861691506370a0823190610943903090600401612ea6565b602060405180830381865afa158015610960573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098491906132d9565b905060006001600160a01b038516632f745c59306109a36001866132f2565b6040518363ffffffff1660e01b81526004016109c0929190612eba565b602060405180830381865afa1580156109dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0191906132d9565b604051631398fee160e31b8152600481018290529091506001600160a01b03861690639cc7f70890602401602060405180830381865afa158015610a49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6d91906132d9565b8914610acc5760405162461bcd60e51b815260206004820152602860248201527f536f6c76425443526f7574657256323a2063616e63656c20616d6f756e74206e6044820152670dee840dac2e8c6d60c31b6064820152608401610314565b610ad7858483611d41565b604051630efe6a8b60e01b81526001600160a01b03841690630efe6a8b90610b0790889085908e90600401613305565b600060405180830381600087803b158015610b2157600080fd5b505af1158015610b35573d6000803e3d6000fd5b50505050610b448c338b611d71565b336001600160a01b03168b6001600160a01b03168d6001600160a01b03167fbcab14a9990bc1fc30373acf248d280252f63653e6ccdcbd1f7929552a84c7388b8e8e604051610b9593929190613326565b60405180910390a45050505050505050610bad611f73565b9392505050565b6000610bbe611f84565b805490915060ff600160401b82041615906001600160401b0316600081158015610be55750825b90506000826001600160401b03166001148015610c015750303b155b905081158015610c0f575080155b15610c2d5760405163f92ee8a960e01b815260040160405180910390fd5b84546001600160401b03191660011785558315610c5657845460ff60401b1916600160401b1785555b6001600160a01b038716610cac5760405162461bcd60e51b815260206004820152601e60248201527f536f6c76425443526f7574657256323a20696e76616c69642061646d696e00006044820152606401610314565b610cb587611fa8565b610cbd611fda565b610cc686611fea565b8315610d0c57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b6000610d1f611b51565b60008411610d6e5760405162461bcd60e51b8152602060048201526028602482015260008051602061355f8339815191526044820152671e48185b5bdd5b9d60c21b6064820152608401610314565b610d79853386612098565b6001600160a01b038086166000908152600260209081526040808320938a16835292815282822080548451818402810184019095528085529293929091830182828015610def57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610dd1575b50505050509050600081516001610e06919061333c565b6001600160401b03811115610e1d57610e1d612bf7565b604051908082528060200260200182016040528015610e46578160200160208202803683370190505b50905085925060005b82518111610f405760008115610e885783610e6b6001846132f2565b81518110610e7b57610e7b612f46565b6020026020010151610e8a565b885b9050600084518314610eb557848381518110610ea857610ea8612f46565b6020026020010151610eb7565b8a5b6001600160a01b038082166000908152600360209081526040808320938716835292905220548551919250908190869086908110610ef757610ef7612f46565b602090810291909101015260018101610f1b57610f148288612290565b9650610f2a565b610f278284898b612320565b96505b5050508080610f3890612f72565b915050610e4f565b5084831015610fa95760405162461bcd60e51b815260206004820152602f60248201527f536f6c76425443526f7574657256323a2074617267657420746f6b656e20616d60448201526e0deeadce840dcdee840cadcdeeaced608b1b6064820152608401610314565b610fb4883385611d71565b336001600160a01b0316876001600160a01b0316896001600160a01b03167f6937da7733b7e101e4ab6e3a3ec12fe857d7a7ca921348ef12feff7abfcee01a868a8787604051611007949392919061334f565b60405180910390a450506106e0611f73565b6001818154811061102957600080fd5b6000918252602090912001546001600160a01b0316905081565b61104b611b1f565b61105560006128d6565b565b338061106161195d565b6001600160a01b03161461108a578060405163118cdaa760e01b81526004016103149190612ea6565b611093816128d6565b50565b6000806110a16128f9565b546001600160a01b031692915050565b6110b9611b1f565b6001600160a01b0383166110df5760405162461bcd60e51b815260040161031490612f02565b6001600160a01b0382166111055760405162461bcd60e51b815260040161031490612ed3565b806111525760405162461bcd60e51b815260206004820152601f60248201527f536f6c76425443526f7574657256323a20696e76616c696420706f6f6c4964006044820152606401610314565b6001600160a01b0380841660008181526003602090815260408083209487168084529490915280822085905551849392917f6c7f14630165c9c4c6ad227089f1fcb12296a6e2f333127dfac70ff6c01b752f91a4505050565b6111b3611b1f565b6001600160a01b0382166112095760405162461bcd60e51b815260206004820152601e60248201527f536f6c76425443526f7574657256323a20696e76616c696420746f6b656e00006044820152606401610314565b6001600160a01b03811661126f5760405162461bcd60e51b815260206004820152602760248201527f536f6c76425443526f7574657256323a20696e76616c6964206d756c746941736044820152661cd95d141bdbdb60ca1b6064820152608401610314565b6001600160a01b0382811660008181526004602052604080822080546001600160a01b0319169486169485179055517f6d8a13fa4299a53f42536f2eb442ae9416f32e834a4b630d335079cb5a2da9669190a35050565b6000805b600154811015611383576000600182815481106112e9576112e9612f46565b6000918252602090912001546040516370a0823160e01b81526001600160a01b03909116906370a0823190611322903390600401612ea6565b602060405180830381865afa15801561133f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136391906132d9565b111561137157600191505090565b8061137b81612f72565b9150506112ca565b506000905090565b600260205282600052604060002060205281600052604060002081815481106113b357600080fd5b6000918252602090912001546001600160a01b0316925083915050565b6000806113db611b51565b6001600160a01b038086166000908152600360209081526040808320938816835292905220548061141e5760405162461bcd60e51b8152600401610314906133b1565b6000805460405162daa6b160e61b8152600481018490526001600160a01b03909116919082906336a9ac40906024016102a060405180830381865afa15801561146b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148f919061318d565b90508060a001516001600160a01b0316876001600160a01b0316146114c65760405162461bcd60e51b8152600401610314906133f2565b805180516020808301516040938401516001600160a01b03808e166000908152600494859052869020549551639f0b8d0360e01b81529495929491939216918291639f0b8d039161151b918891879101612eba565b602060405180830381865afa158015611538573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155c919061325a565b6001600160a01b03168c6001600160a01b03161461158c5760405162461bcd60e51b815260040161031490613292565b6115978c338c612098565b6040516322996bbb60e11b81526001600160a01b03858116600483015260248201849052600060448301819052606483018d90529190831690634532d776906084016020604051808303816000875af11580156115f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161c91906132d9565b604051631398fee160e31b8152600481018290529091506001600160a01b03861690639cc7f70890602401602060405180830381865afa158015611664573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168891906132d9565b8b146116a65760405162461bcd60e51b815260040161031490613435565b6116b1858883611d41565b6040516371033ad760e01b8152600481018990526024810182905260006044820152606481018c90526001600160a01b038816906371033ad790608401600060405180830381600087803b15801561170857600080fd5b505af115801561171c573d6000803e3d6000fd5b50506040516370a0823160e01b8152600094506001600160a01b03871693506370a08231925061175191503090600401612ea6565b602060405180830381865afa15801561176e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061179291906132d9565b905060006001600160a01b038416632f745c59306117b16001866132f2565b6040518363ffffffff1660e01b81526004016117ce929190612eba565b602060405180830381865afa1580156117eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180f91906132d9565b604051631398fee160e31b8152600481018290529091506001600160a01b03851690639cc7f70890602401602060405180830381865afa158015611857573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061187b91906132d9565b8b146118dd5760405162461bcd60e51b815260206004820152602b60248201527f536f6c76425443526f7574657256323a20726564656d7074696f6e2076616c7560448201526a0ca40dcdee840dac2e8c6d60ab1b6064820152608401610314565b6118e884338361291d565b336001600160a01b03168c6001600160a01b03168e6001600160a01b03167f50aa488fffd286866bc78078718365f7c3880cf5f95179a61e37cf84c5fd76c58b8f8660405161193993929190613326565b60405180910390a4929850919650505050505050611955611f73565b935093915050565b6000806110a161294f565b611970611b1f565b600061197a61294f565b80546001600160a01b0319166001600160a01b03841690811782559091506119a0611096565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b6119e1611b1f565b60005b600154811015611b1b57816001600160a01b031660018281548110611a0b57611a0b612f46565b6000918252602090912001546001600160a01b031603611b095760018054611a349082906132f2565b81548110611a4457611a44612f46565b600091825260209091200154600180546001600160a01b039092169183908110611a7057611a70612f46565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506001805480611aaf57611aaf61347b565b600082815260208120820160001990810180546001600160a01b03191690559091019091556040516001600160a01b038416917f31fcc58e4308750615c411af54c81513de9d2e6c73cf7f3652928cdd25c8d5da91a25050565b80611b1381612f72565b9150506119e4565b5050565b33611b28611096565b6001600160a01b031614611055573360405163118cdaa760e01b81526004016103149190612ea6565b6000611b5b612973565b805490915060011901611b8157604051633ee5aeb560e01b815260040160405180910390fd5b60029055565b600080836001600160a01b0316638ba344706040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bec919061325a565b60405163131f9f3f60e11b8152600481018590529091506000906001600160a01b0386169063263f3e7e90602401602060405180830381865afa158015611c37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5b91906132d9565b604051636e14b58960e11b8152600481018290529091506000906001600160a01b0384169063dc296b1290602401608060405180830381865afa158015611ca6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cca9190613491565b5193505050505b92915050565b6040516323b872dd60e01b815283906001600160a01b038216906323b872dd90611d09908690309087906004016134df565b600060405180830381600087803b158015611d2357600080fd5b505af1158015611d37573d6000803e3d6000fd5b5050505050505050565b60405163095ea7b360e01b815283906001600160a01b0382169063095ea7b390611d099086908690600401612eba565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03841601611e3f57604080516000808252602082019092526001600160a01b038416908390604051611dc09190613503565b60006040518083038185875af1925050503d8060008114611dfd576040519150601f19603f3d011682016040523d82523d6000602084013e611e02565b606091505b5050905080611e395760405162461bcd60e51b815260206004820152600360248201526253544560e81b6044820152606401610314565b50505050565b6000836001600160a01b03163b11611e695760405162461bcd60e51b815260040161031490613532565b600080846001600160a01b031663a9059cbb60e01b8585604051602401611e91929190612eba565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051611ecf9190613503565b6000604051808303816000865af19150503d8060008114611f0c576040519150601f19603f3d011682016040523d82523d6000602084013e611f11565b606091505b5091509150818015611f3b575080511580611f3b575080806020019051810190611f3b9190613277565b611f6c5760405162461bcd60e51b815260206004820152600260248201526114d560f21b6044820152606401610314565b5050505050565b6000611f7d612973565b6001905550565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0090565b611fb0612997565b6001600160a01b03811661108a576000604051631e4fbdf760e01b81526004016103149190612ea6565b611fe2612997565b6110556129bc565b6001600160a01b0381166120505760405162461bcd60e51b815260206004820152602760248201527f536f6c76425443526f7574657256323a20696e76616c6964206f70656e46756e6044820152661913585c9ad95d60ca1b6064820152608401610314565b600080546001600160a01b0319166001600160a01b038316908117825560405190917fb972f7c26626db2ffb3776abf797d15304c8c1f62efdc3567bbdad00dddf896c91a250565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b0384160161216057326001600160a01b03831614806120dc5750336001600160a01b038316145b61211a5760405162461bcd60e51b815260206004820152600f60248201526e0e6cadcc8cae440dad2e6dac2e8c6d608b1b6044820152606401610314565b8034101561215b5760405162461bcd60e51b815260206004820152600e60248201526d0ecc2d8eaca40dad2e6dac2e8c6d60931b6044820152606401610314565b505050565b6000836001600160a01b03163b1161218a5760405162461bcd60e51b815260040161031490613532565b600080846001600160a01b03166323b872dd60e01b8530866040516024016121b4939291906134df565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516121f29190613503565b6000604051808303816000865af19150503d806000811461222f576040519150601f19603f3d011682016040523d82523d6000602084013e612234565b606091505b509150915081801561225e57508051158061225e57508080602001905181019061225e9190613277565b611f6c5760405162461bcd60e51b815260206004820152600360248201526229aa2360e91b6044820152606401610314565b6001600160a01b03808316600090815260046020819052604080832054905163b6b55f2560e01b815292931691829163b6b55f25916122d59187910190815260200190565b6020604051808303816000875af11580156122f4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061231891906132d9565b949350505050565b6001600160a01b038085166000908152600360209081526040808320938716835292905290812054806123655760405162461bcd60e51b8152600401610314906133b1565b61236e8161054e565b6123ca5760405162461bcd60e51b815260206004820152602760248201527f536f6c76425443526f7574657256323a20706f6f6c207065726d697373696f6e6044820152660819195b9a595960ca1b6064820152608401610314565b6000805460405162daa6b160e61b8152600481018490526001600160a01b03909116919082906336a9ac40906024016102a060405180830381865afa158015612417573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061243b919061318d565b90508060a001516001600160a01b0316876001600160a01b0316146124725760405162461bcd60e51b8152600401610314906133f2565b805180516040918201516001600160a01b03808c1660009081526004602081905290859020549451639f0b8d0360e01b81529394929392909116918291639f0b8d03916124c3918791879101612eba565b602060405180830381865afa1580156124e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612504919061325a565b6001600160a01b03168b6001600160a01b0316146125345760405162461bcd60e51b815260040161031490613292565b61253f8a868b6129c4565b6040516308f3ecff60e41b815260048101879052602481018a9052600060448201526001600160401b03891660648201526001600160a01b03861690638f3ecff0906084016020604051808303816000875af11580156125a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125c791906132d9565b96506000836001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016125f79190612ea6565b602060405180830381865afa158015612614573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061263891906132d9565b905060006001600160a01b038516632f745c59306126576001866132f2565b6040518363ffffffff1660e01b8152600401612674929190612eba565b602060405180830381865afa158015612691573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126b591906132d9565b60405163131f9f3f60e11b8152600481018290529091506001600160a01b0386169063263f3e7e90602401602060405180830381865afa1580156126fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061272191906132d9565b841461277d5760405162461bcd60e51b815260206004820152602560248201527f536f6c76425443526f7574657256323a20736861726520736c6f74206e6f74206044820152640dac2e8c6d60db1b6064820152608401610314565b604051631398fee160e31b8152600481018290526001600160a01b03861690639cc7f70890602401602060405180830381865afa1580156127c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127e691906132d9565b89146128045760405162461bcd60e51b815260040161031490613435565b60405163095ea7b360e01b81526001600160a01b0386169063095ea7b3906128329086908590600401612eba565b600060405180830381600087803b15801561284c57600080fd5b505af1158015612860573d6000803e3d6000fd5b5050604051630efe6a8b60e01b81526001600160a01b0386169250630efe6a8b915061289490889085908e90600401613305565b600060405180830381600087803b1580156128ae57600080fd5b505af11580156128c2573d6000803e3d6000fd5b505050505050505050505050949350505050565b60006128e061294f565b80546001600160a01b03191681559050611b1b82612af2565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930090565b6040516323b872dd60e01b815283906001600160a01b038216906323b872dd90611d09903090879087906004016134df565b7f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c0090565b7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0090565b61299f612b4e565b61105557604051631afcd79f60e31b815260040160405180910390fd5b611f73612997565b6000836001600160a01b03163b116129ee5760405162461bcd60e51b815260040161031490613532565b600080846001600160a01b031663095ea7b360e01b8585604051602401612a16929190612eba565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051612a549190613503565b6000604051808303816000865af19150503d8060008114612a91576040519150601f19603f3d011682016040523d82523d6000602084013e612a96565b606091505b5091509150818015612ac0575080511580612ac0575080806020019051810190612ac09190613277565b611f6c5760405162461bcd60e51b815260206004820152600360248201526229a0a360e91b6044820152606401610314565b6000612afc6128f9565b80546001600160a01b038481166001600160a01b031983168117845560405193945091169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b6000612b58611f84565b54600160401b900460ff16919050565b828054828255906000526020600020908101928215612bbd579160200282015b82811115612bbd57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190612b88565b50612bc9929150612bcd565b5090565b5b80821115612bc95760008155600101612bce565b6001600160a01b038116811461109357600080fd5b634e487b7160e01b600052604160045260246000fd5b604051608081016001600160401b0381118282101715612c2f57612c2f612bf7565b60405290565b604051606081016001600160401b0381118282101715612c2f57612c2f612bf7565b60405161014081016001600160401b0381118282101715612c2f57612c2f612bf7565b604051601f8201601f191681016001600160401b0381118282101715612ca257612ca2612bf7565b604052919050565b600080600060608486031215612cbf57600080fd5b8335612cca81612be2565b9250602084810135612cdb81612be2565b925060408501356001600160401b0380821115612cf757600080fd5b818701915087601f830112612d0b57600080fd5b813581811115612d1d57612d1d612bf7565b8060051b9150612d2e848301612c7a565b818152918301840191848101908a841115612d4857600080fd5b938501935b83851015612d725784359250612d6283612be2565b8282529385019390850190612d4d565b8096505050505050509250925092565b600060208284031215612d9457600080fd5b8135610bad81612be2565b600060208284031215612db157600080fd5b5035919050565b600080600060608486031215612dcd57600080fd5b8335612dd881612be2565b92506020840135612de881612be2565b929592945050506040919091013590565b60008060408385031215612e0c57600080fd5b8235612e1781612be2565b91506020830135612e2781612be2565b809150509250929050565b6001600160401b038116811461109357600080fd5b600080600080600060a08688031215612e5f57600080fd5b8535612e6a81612be2565b94506020860135612e7a81612be2565b935060408601359250606086013591506080860135612e9881612e32565b809150509295509295909350565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b602080825260219082015260008051602061355f8339815191526040820152607960f81b606082015260800190565b60208082526024908201527f536f6c76425443526f7574657256323a20696e76616c6964207461726765745460408201526337b5b2b760e11b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612f8457612f84612f5c565b5060010190565b600081518084526020808501945080840160005b83811015612fc45781516001600160a01b031687529582019590820190600101612f9f565b509495945050505050565b602081526000610bad6020830184612f8b565b8051612fed81612be2565b919050565b60006080828403121561300457600080fd5b61300c612c0d565b9050815161301981612be2565b8152602082015161302981612be2565b80602083015250604082015160408201526060820151606082015292915050565b8051612fed81612e32565b60006060828403121561306757600080fd5b61306f612c35565b9050815161ffff8116811461308357600080fd5b8152602082015161309381612be2565b602082015260408201516130a681612e32565b604082015292915050565b6000606082840312156130c357600080fd5b6130cb612c35565b905081516130d881612be2565b815260208201516130e881612be2565b602082015260408201516130a681612be2565b600060a0828403121561310d57600080fd5b60405160a081016001600160401b038111828210171561312f5761312f612bf7565b8060405250809150825181526020830151602082015260408301516040820152606083015161315d81612e32565b6060820152608083015161317081612e32565b6080919091015292915050565b80518015158114612fed57600080fd5b60006102a082840312156131a057600080fd5b6131a8612c57565b6131b28484612ff2565b81526131c18460808501613055565b60208201526131d38460e085016130b1565b60408201526131e68461014085016130fb565b60608201526131f86101e08401612fe2565b608082015261320a6102008401612fe2565b60a082015261321c6102208401612fe2565b60c082015261322e610240840161304a565b60e0820152613240610260840161317d565b610100820152610280929092015161012083015250919050565b60006020828403121561326c57600080fd5b8151610bad81612be2565b60006020828403121561328957600080fd5b610bad8261317d565b60208082526027908201527f536f6c76425443526f7574657256323a2074617267657420746f6b656e206e6f6040820152660e840dac2e8c6d60cb1b606082015260800190565b6000602082840312156132eb57600080fd5b5051919050565b81810381811115611cd157611cd1612f5c565b6001600160a01b039390931683526020830191909152604082015260600190565b9283526020830191909152604082015260600190565b80820180821115611cd157611cd1612f5c565b8481526000602085818401526080604084015261336f6080840186612f8b565b838103606085015284518082528286019183019060005b818110156133a257835183529284019291840191600101613386565b50909998505050505050505050565b60208082526021908201527f536f6c76425443526f7574657256323a20706f6f6c4964206e6f7420666f756e6040820152601960fa1b606082015260800190565b60208082526023908201527f536f6c76425443526f7574657256323a2063757272656e6379206e6f74206d616040820152620e8c6d60eb1b606082015260800190565b60208082526026908201527f536f6c76425443526f7574657256323a2073686172652076616c7565206e6f74604082015265040dac2e8c6d60d31b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b6000608082840312156134a357600080fd5b6134ab612c0d565b8251815260208301516134bd81612be2565b6020820152604083810151908201526060928301519281019290925250919050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000825160005b81811015613524576020818601810151858301520161350a565b506000920191825250919050565b602080825260129082015271696e76616c696420756e6465726c79696e6760701b60408201526060019056fe536f6c76425443526f7574657256323a20696e76616c69642063757272656e63a26469706673582212205610971800e27b29075064ba50cf4f0febfe97b463fcc084d85f07bca875b98e64736f6c63430008140033", "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101125760003560e01c8063055227a114610117578063073ef0601461012c5780631d98e7f81461013f57806342c7774b14610167578063485cc955146101885780636534d8dc1461019b578063672262e5146101c65780636dadff0b146101d9578063715018a6146101f95780637448130c1461020157806379ba50971461022a57806383ef7d17146102325780638da5cb5b1461023b5780638df9dfda146102435780639ccd8a6914610256578063ba9cf75814610269578063cef4cde414610271578063d2cfd97d14610284578063e30c3978146102a5578063f2fde38b146102ad578063f355d417146102c0578063f6d852e2146102d3575b600080fd5b61012a610125366004612caa565b6102e6565b005b61012a61013a366004612d82565b61046f565b61015261014d366004612d9f565b61054e565b60405190151581526020015b60405180910390f35b61017a610175366004612db8565b6106e9565b60405190815260200161015e565b61012a610196366004612df9565b610bb4565b61017a6101a9366004612df9565b600360209081526000928352604080842090915290825290205481565b61017a6101d4366004612e47565b610d15565b6101ec6101e7366004612d9f565b611019565b60405161015e9190612ea6565b61012a611043565b6101ec61020f366004612d82565b6004602052600090815260409020546001600160a01b031681565b61012a611057565b61017a60001981565b6101ec611096565b61012a610251366004612db8565b6110b1565b61012a610264366004612df9565b6111ab565b6101526112c6565b6101ec61027f366004612db8565b61138b565b610297610292366004612db8565b6113d0565b60405161015e929190612eba565b6101ec61195d565b61012a6102bb366004612d82565b611968565b6000546101ec906001600160a01b031681565b61012a6102e1366004612d82565b6119d9565b6102ee611b1f565b6001600160a01b03831661031d5760405162461bcd60e51b815260040161031490612ed3565b60405180910390fd5b6001600160a01b0382166103435760405162461bcd60e51b815260040161031490612f02565b60005b81518110156103e85760006001600160a01b031682828151811061036c5761036c612f46565b60200260200101516001600160a01b0316036103d65760405162461bcd60e51b815260206004820152602360248201527f536f6c76425443526f7574657256323a20696e76616c6964207061746820746f60448201526235b2b760e91b6064820152608401610314565b806103e081612f72565b915050610346565b506001600160a01b0380841660009081526002602090815260408083209386168352928152919020825161041e92840190612b68565b50816001600160a01b0316836001600160a01b03167fc3799aea01bc3147c6d65980a35dbf4661fb244ecebf3890db31c1dea0e0131c836040516104629190612fcf565b60405180910390a3505050565b610477611b1f565b6001600160a01b0381166104d75760405162461bcd60e51b815260206004820152602160248201527f536f6c76425443526f7574657256323a20696e76616c696420766572696669656044820152603960f91b6064820152608401610314565b60018054808201825560009182527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319166001600160a01b03841690811790915560405190917f406973f217cd9d1d2338d714098813a16e977aeaa9781bd83da782276082a11391a250565b6000805460405162daa6b160e61b8152600481018490526001600160a01b0390911690829082906336a9ac40906024016102a060405180830381865afa15801561059c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c0919061318d565b9050806101000151156105d7575060019392505050565b6040516321f8a72160e01b81527a27a326abb434ba32b634b9ba29ba3930ba32b3bca6b0b730b3b2b960291b60048201526000906001600160a01b038416906321f8a72190602401602060405180830381865afa15801561063c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610660919061325a565b60405163f409981160e01b8152600481018790523360248201529091506001600160a01b0382169063f409981190604401602060405180830381865afa1580156106ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d29190613277565b806106e057506106e06112c6565b95945050505050565b60006106f3611b51565b60006106ff8484611b87565b6000805460405162daa6b160e61b8152600481018490529293506001600160a01b03169182906336a9ac40906024016102a060405180830381865afa15801561074c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610770919061318d565b805180516040918201516001600160a01b03808c1660009081526004602081905290859020549451639f0b8d0360e01b81529596509294919316918291639f0b8d03916107c1918791879101612eba565b602060405180830381865afa1580156107de573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610802919061325a565b6001600160a01b03168a6001600160a01b0316146108325760405162461bcd60e51b815260040161031490613292565b604051631398fee160e31b8152600481018990526001600160a01b038a1690639cc7f70890602401602060405180830381865afa158015610877573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089b91906132d9565b96506108a889338a611cd7565b6108b389868a611d41565b6040516302e9574960e51b815260048101879052602481018990526001600160a01b03861690635d2ae92090604401600060405180830381600087803b1580156108fc57600080fd5b505af1158015610910573d6000803e3d6000fd5b50506040516370a0823160e01b8152600092506001600160a01b03861691506370a0823190610943903090600401612ea6565b602060405180830381865afa158015610960573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098491906132d9565b905060006001600160a01b038516632f745c59306109a36001866132f2565b6040518363ffffffff1660e01b81526004016109c0929190612eba565b602060405180830381865afa1580156109dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0191906132d9565b604051631398fee160e31b8152600481018290529091506001600160a01b03861690639cc7f70890602401602060405180830381865afa158015610a49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6d91906132d9565b8914610acc5760405162461bcd60e51b815260206004820152602860248201527f536f6c76425443526f7574657256323a2063616e63656c20616d6f756e74206e6044820152670dee840dac2e8c6d60c31b6064820152608401610314565b610ad7858483611d41565b604051630efe6a8b60e01b81526001600160a01b03841690630efe6a8b90610b0790889085908e90600401613305565b600060405180830381600087803b158015610b2157600080fd5b505af1158015610b35573d6000803e3d6000fd5b50505050610b448c338b611d71565b336001600160a01b03168b6001600160a01b03168d6001600160a01b03167fbcab14a9990bc1fc30373acf248d280252f63653e6ccdcbd1f7929552a84c7388b8e8e604051610b9593929190613326565b60405180910390a45050505050505050610bad611f73565b9392505050565b6000610bbe611f84565b805490915060ff600160401b82041615906001600160401b0316600081158015610be55750825b90506000826001600160401b03166001148015610c015750303b155b905081158015610c0f575080155b15610c2d5760405163f92ee8a960e01b815260040160405180910390fd5b84546001600160401b03191660011785558315610c5657845460ff60401b1916600160401b1785555b6001600160a01b038716610cac5760405162461bcd60e51b815260206004820152601e60248201527f536f6c76425443526f7574657256323a20696e76616c69642061646d696e00006044820152606401610314565b610cb587611fa8565b610cbd611fda565b610cc686611fea565b8315610d0c57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b6000610d1f611b51565b60008411610d6e5760405162461bcd60e51b8152602060048201526028602482015260008051602061355f8339815191526044820152671e48185b5bdd5b9d60c21b6064820152608401610314565b610d79853386612098565b6001600160a01b038086166000908152600260209081526040808320938a16835292815282822080548451818402810184019095528085529293929091830182828015610def57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610dd1575b50505050509050600081516001610e06919061333c565b6001600160401b03811115610e1d57610e1d612bf7565b604051908082528060200260200182016040528015610e46578160200160208202803683370190505b50905085925060005b82518111610f405760008115610e885783610e6b6001846132f2565b81518110610e7b57610e7b612f46565b6020026020010151610e8a565b885b9050600084518314610eb557848381518110610ea857610ea8612f46565b6020026020010151610eb7565b8a5b6001600160a01b038082166000908152600360209081526040808320938716835292905220548551919250908190869086908110610ef757610ef7612f46565b602090810291909101015260018101610f1b57610f148288612290565b9650610f2a565b610f278284898b612320565b96505b5050508080610f3890612f72565b915050610e4f565b5084831015610fa95760405162461bcd60e51b815260206004820152602f60248201527f536f6c76425443526f7574657256323a2074617267657420746f6b656e20616d60448201526e0deeadce840dcdee840cadcdeeaced608b1b6064820152608401610314565b610fb4883385611d71565b336001600160a01b0316876001600160a01b0316896001600160a01b03167f6937da7733b7e101e4ab6e3a3ec12fe857d7a7ca921348ef12feff7abfcee01a868a8787604051611007949392919061334f565b60405180910390a450506106e0611f73565b6001818154811061102957600080fd5b6000918252602090912001546001600160a01b0316905081565b61104b611b1f565b61105560006128d6565b565b338061106161195d565b6001600160a01b03161461108a578060405163118cdaa760e01b81526004016103149190612ea6565b611093816128d6565b50565b6000806110a16128f9565b546001600160a01b031692915050565b6110b9611b1f565b6001600160a01b0383166110df5760405162461bcd60e51b815260040161031490612f02565b6001600160a01b0382166111055760405162461bcd60e51b815260040161031490612ed3565b806111525760405162461bcd60e51b815260206004820152601f60248201527f536f6c76425443526f7574657256323a20696e76616c696420706f6f6c4964006044820152606401610314565b6001600160a01b0380841660008181526003602090815260408083209487168084529490915280822085905551849392917f6c7f14630165c9c4c6ad227089f1fcb12296a6e2f333127dfac70ff6c01b752f91a4505050565b6111b3611b1f565b6001600160a01b0382166112095760405162461bcd60e51b815260206004820152601e60248201527f536f6c76425443526f7574657256323a20696e76616c696420746f6b656e00006044820152606401610314565b6001600160a01b03811661126f5760405162461bcd60e51b815260206004820152602760248201527f536f6c76425443526f7574657256323a20696e76616c6964206d756c746941736044820152661cd95d141bdbdb60ca1b6064820152608401610314565b6001600160a01b0382811660008181526004602052604080822080546001600160a01b0319169486169485179055517f6d8a13fa4299a53f42536f2eb442ae9416f32e834a4b630d335079cb5a2da9669190a35050565b6000805b600154811015611383576000600182815481106112e9576112e9612f46565b6000918252602090912001546040516370a0823160e01b81526001600160a01b03909116906370a0823190611322903390600401612ea6565b602060405180830381865afa15801561133f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136391906132d9565b111561137157600191505090565b8061137b81612f72565b9150506112ca565b506000905090565b600260205282600052604060002060205281600052604060002081815481106113b357600080fd5b6000918252602090912001546001600160a01b0316925083915050565b6000806113db611b51565b6001600160a01b038086166000908152600360209081526040808320938816835292905220548061141e5760405162461bcd60e51b8152600401610314906133b1565b6000805460405162daa6b160e61b8152600481018490526001600160a01b03909116919082906336a9ac40906024016102a060405180830381865afa15801561146b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148f919061318d565b90508060a001516001600160a01b0316876001600160a01b0316146114c65760405162461bcd60e51b8152600401610314906133f2565b805180516020808301516040938401516001600160a01b03808e166000908152600494859052869020549551639f0b8d0360e01b81529495929491939216918291639f0b8d039161151b918891879101612eba565b602060405180830381865afa158015611538573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155c919061325a565b6001600160a01b03168c6001600160a01b03161461158c5760405162461bcd60e51b815260040161031490613292565b6115978c338c612098565b6040516322996bbb60e11b81526001600160a01b03858116600483015260248201849052600060448301819052606483018d90529190831690634532d776906084016020604051808303816000875af11580156115f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161c91906132d9565b604051631398fee160e31b8152600481018290529091506001600160a01b03861690639cc7f70890602401602060405180830381865afa158015611664573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168891906132d9565b8b146116a65760405162461bcd60e51b815260040161031490613435565b6116b1858883611d41565b6040516371033ad760e01b8152600481018990526024810182905260006044820152606481018c90526001600160a01b038816906371033ad790608401600060405180830381600087803b15801561170857600080fd5b505af115801561171c573d6000803e3d6000fd5b50506040516370a0823160e01b8152600094506001600160a01b03871693506370a08231925061175191503090600401612ea6565b602060405180830381865afa15801561176e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061179291906132d9565b905060006001600160a01b038416632f745c59306117b16001866132f2565b6040518363ffffffff1660e01b81526004016117ce929190612eba565b602060405180830381865afa1580156117eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180f91906132d9565b604051631398fee160e31b8152600481018290529091506001600160a01b03851690639cc7f70890602401602060405180830381865afa158015611857573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061187b91906132d9565b8b146118dd5760405162461bcd60e51b815260206004820152602b60248201527f536f6c76425443526f7574657256323a20726564656d7074696f6e2076616c7560448201526a0ca40dcdee840dac2e8c6d60ab1b6064820152608401610314565b6118e884338361291d565b336001600160a01b03168c6001600160a01b03168e6001600160a01b03167f50aa488fffd286866bc78078718365f7c3880cf5f95179a61e37cf84c5fd76c58b8f8660405161193993929190613326565b60405180910390a4929850919650505050505050611955611f73565b935093915050565b6000806110a161294f565b611970611b1f565b600061197a61294f565b80546001600160a01b0319166001600160a01b03841690811782559091506119a0611096565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b6119e1611b1f565b60005b600154811015611b1b57816001600160a01b031660018281548110611a0b57611a0b612f46565b6000918252602090912001546001600160a01b031603611b095760018054611a349082906132f2565b81548110611a4457611a44612f46565b600091825260209091200154600180546001600160a01b039092169183908110611a7057611a70612f46565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506001805480611aaf57611aaf61347b565b600082815260208120820160001990810180546001600160a01b03191690559091019091556040516001600160a01b038416917f31fcc58e4308750615c411af54c81513de9d2e6c73cf7f3652928cdd25c8d5da91a25050565b80611b1381612f72565b9150506119e4565b5050565b33611b28611096565b6001600160a01b031614611055573360405163118cdaa760e01b81526004016103149190612ea6565b6000611b5b612973565b805490915060011901611b8157604051633ee5aeb560e01b815260040160405180910390fd5b60029055565b600080836001600160a01b0316638ba344706040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bec919061325a565b60405163131f9f3f60e11b8152600481018590529091506000906001600160a01b0386169063263f3e7e90602401602060405180830381865afa158015611c37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5b91906132d9565b604051636e14b58960e11b8152600481018290529091506000906001600160a01b0384169063dc296b1290602401608060405180830381865afa158015611ca6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cca9190613491565b5193505050505b92915050565b6040516323b872dd60e01b815283906001600160a01b038216906323b872dd90611d09908690309087906004016134df565b600060405180830381600087803b158015611d2357600080fd5b505af1158015611d37573d6000803e3d6000fd5b5050505050505050565b60405163095ea7b360e01b815283906001600160a01b0382169063095ea7b390611d099086908690600401612eba565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03841601611e3f57604080516000808252602082019092526001600160a01b038416908390604051611dc09190613503565b60006040518083038185875af1925050503d8060008114611dfd576040519150601f19603f3d011682016040523d82523d6000602084013e611e02565b606091505b5050905080611e395760405162461bcd60e51b815260206004820152600360248201526253544560e81b6044820152606401610314565b50505050565b6000836001600160a01b03163b11611e695760405162461bcd60e51b815260040161031490613532565b600080846001600160a01b031663a9059cbb60e01b8585604051602401611e91929190612eba565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051611ecf9190613503565b6000604051808303816000865af19150503d8060008114611f0c576040519150601f19603f3d011682016040523d82523d6000602084013e611f11565b606091505b5091509150818015611f3b575080511580611f3b575080806020019051810190611f3b9190613277565b611f6c5760405162461bcd60e51b815260206004820152600260248201526114d560f21b6044820152606401610314565b5050505050565b6000611f7d612973565b6001905550565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0090565b611fb0612997565b6001600160a01b03811661108a576000604051631e4fbdf760e01b81526004016103149190612ea6565b611fe2612997565b6110556129bc565b6001600160a01b0381166120505760405162461bcd60e51b815260206004820152602760248201527f536f6c76425443526f7574657256323a20696e76616c6964206f70656e46756e6044820152661913585c9ad95d60ca1b6064820152608401610314565b600080546001600160a01b0319166001600160a01b038316908117825560405190917fb972f7c26626db2ffb3776abf797d15304c8c1f62efdc3567bbdad00dddf896c91a250565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b0384160161216057326001600160a01b03831614806120dc5750336001600160a01b038316145b61211a5760405162461bcd60e51b815260206004820152600f60248201526e0e6cadcc8cae440dad2e6dac2e8c6d608b1b6044820152606401610314565b8034101561215b5760405162461bcd60e51b815260206004820152600e60248201526d0ecc2d8eaca40dad2e6dac2e8c6d60931b6044820152606401610314565b505050565b6000836001600160a01b03163b1161218a5760405162461bcd60e51b815260040161031490613532565b600080846001600160a01b03166323b872dd60e01b8530866040516024016121b4939291906134df565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516121f29190613503565b6000604051808303816000865af19150503d806000811461222f576040519150601f19603f3d011682016040523d82523d6000602084013e612234565b606091505b509150915081801561225e57508051158061225e57508080602001905181019061225e9190613277565b611f6c5760405162461bcd60e51b815260206004820152600360248201526229aa2360e91b6044820152606401610314565b6001600160a01b03808316600090815260046020819052604080832054905163b6b55f2560e01b815292931691829163b6b55f25916122d59187910190815260200190565b6020604051808303816000875af11580156122f4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061231891906132d9565b949350505050565b6001600160a01b038085166000908152600360209081526040808320938716835292905290812054806123655760405162461bcd60e51b8152600401610314906133b1565b61236e8161054e565b6123ca5760405162461bcd60e51b815260206004820152602760248201527f536f6c76425443526f7574657256323a20706f6f6c207065726d697373696f6e6044820152660819195b9a595960ca1b6064820152608401610314565b6000805460405162daa6b160e61b8152600481018490526001600160a01b03909116919082906336a9ac40906024016102a060405180830381865afa158015612417573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061243b919061318d565b90508060a001516001600160a01b0316876001600160a01b0316146124725760405162461bcd60e51b8152600401610314906133f2565b805180516040918201516001600160a01b03808c1660009081526004602081905290859020549451639f0b8d0360e01b81529394929392909116918291639f0b8d03916124c3918791879101612eba565b602060405180830381865afa1580156124e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612504919061325a565b6001600160a01b03168b6001600160a01b0316146125345760405162461bcd60e51b815260040161031490613292565b61253f8a868b6129c4565b6040516308f3ecff60e41b815260048101879052602481018a9052600060448201526001600160401b03891660648201526001600160a01b03861690638f3ecff0906084016020604051808303816000875af11580156125a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125c791906132d9565b96506000836001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016125f79190612ea6565b602060405180830381865afa158015612614573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061263891906132d9565b905060006001600160a01b038516632f745c59306126576001866132f2565b6040518363ffffffff1660e01b8152600401612674929190612eba565b602060405180830381865afa158015612691573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126b591906132d9565b60405163131f9f3f60e11b8152600481018290529091506001600160a01b0386169063263f3e7e90602401602060405180830381865afa1580156126fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061272191906132d9565b841461277d5760405162461bcd60e51b815260206004820152602560248201527f536f6c76425443526f7574657256323a20736861726520736c6f74206e6f74206044820152640dac2e8c6d60db1b6064820152608401610314565b604051631398fee160e31b8152600481018290526001600160a01b03861690639cc7f70890602401602060405180830381865afa1580156127c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127e691906132d9565b89146128045760405162461bcd60e51b815260040161031490613435565b60405163095ea7b360e01b81526001600160a01b0386169063095ea7b3906128329086908590600401612eba565b600060405180830381600087803b15801561284c57600080fd5b505af1158015612860573d6000803e3d6000fd5b5050604051630efe6a8b60e01b81526001600160a01b0386169250630efe6a8b915061289490889085908e90600401613305565b600060405180830381600087803b1580156128ae57600080fd5b505af11580156128c2573d6000803e3d6000fd5b505050505050505050505050949350505050565b60006128e061294f565b80546001600160a01b03191681559050611b1b82612af2565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930090565b6040516323b872dd60e01b815283906001600160a01b038216906323b872dd90611d09903090879087906004016134df565b7f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c0090565b7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0090565b61299f612b4e565b61105557604051631afcd79f60e31b815260040160405180910390fd5b611f73612997565b6000836001600160a01b03163b116129ee5760405162461bcd60e51b815260040161031490613532565b600080846001600160a01b031663095ea7b360e01b8585604051602401612a16929190612eba565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051612a549190613503565b6000604051808303816000865af19150503d8060008114612a91576040519150601f19603f3d011682016040523d82523d6000602084013e612a96565b606091505b5091509150818015612ac0575080511580612ac0575080806020019051810190612ac09190613277565b611f6c5760405162461bcd60e51b815260206004820152600360248201526229a0a360e91b6044820152606401610314565b6000612afc6128f9565b80546001600160a01b038481166001600160a01b031983168117845560405193945091169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b6000612b58611f84565b54600160401b900460ff16919050565b828054828255906000526020600020908101928215612bbd579160200282015b82811115612bbd57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190612b88565b50612bc9929150612bcd565b5090565b5b80821115612bc95760008155600101612bce565b6001600160a01b038116811461109357600080fd5b634e487b7160e01b600052604160045260246000fd5b604051608081016001600160401b0381118282101715612c2f57612c2f612bf7565b60405290565b604051606081016001600160401b0381118282101715612c2f57612c2f612bf7565b60405161014081016001600160401b0381118282101715612c2f57612c2f612bf7565b604051601f8201601f191681016001600160401b0381118282101715612ca257612ca2612bf7565b604052919050565b600080600060608486031215612cbf57600080fd5b8335612cca81612be2565b9250602084810135612cdb81612be2565b925060408501356001600160401b0380821115612cf757600080fd5b818701915087601f830112612d0b57600080fd5b813581811115612d1d57612d1d612bf7565b8060051b9150612d2e848301612c7a565b818152918301840191848101908a841115612d4857600080fd5b938501935b83851015612d725784359250612d6283612be2565b8282529385019390850190612d4d565b8096505050505050509250925092565b600060208284031215612d9457600080fd5b8135610bad81612be2565b600060208284031215612db157600080fd5b5035919050565b600080600060608486031215612dcd57600080fd5b8335612dd881612be2565b92506020840135612de881612be2565b929592945050506040919091013590565b60008060408385031215612e0c57600080fd5b8235612e1781612be2565b91506020830135612e2781612be2565b809150509250929050565b6001600160401b038116811461109357600080fd5b600080600080600060a08688031215612e5f57600080fd5b8535612e6a81612be2565b94506020860135612e7a81612be2565b935060408601359250606086013591506080860135612e9881612e32565b809150509295509295909350565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b602080825260219082015260008051602061355f8339815191526040820152607960f81b606082015260800190565b60208082526024908201527f536f6c76425443526f7574657256323a20696e76616c6964207461726765745460408201526337b5b2b760e11b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612f8457612f84612f5c565b5060010190565b600081518084526020808501945080840160005b83811015612fc45781516001600160a01b031687529582019590820190600101612f9f565b509495945050505050565b602081526000610bad6020830184612f8b565b8051612fed81612be2565b919050565b60006080828403121561300457600080fd5b61300c612c0d565b9050815161301981612be2565b8152602082015161302981612be2565b80602083015250604082015160408201526060820151606082015292915050565b8051612fed81612e32565b60006060828403121561306757600080fd5b61306f612c35565b9050815161ffff8116811461308357600080fd5b8152602082015161309381612be2565b602082015260408201516130a681612e32565b604082015292915050565b6000606082840312156130c357600080fd5b6130cb612c35565b905081516130d881612be2565b815260208201516130e881612be2565b602082015260408201516130a681612be2565b600060a0828403121561310d57600080fd5b60405160a081016001600160401b038111828210171561312f5761312f612bf7565b8060405250809150825181526020830151602082015260408301516040820152606083015161315d81612e32565b6060820152608083015161317081612e32565b6080919091015292915050565b80518015158114612fed57600080fd5b60006102a082840312156131a057600080fd5b6131a8612c57565b6131b28484612ff2565b81526131c18460808501613055565b60208201526131d38460e085016130b1565b60408201526131e68461014085016130fb565b60608201526131f86101e08401612fe2565b608082015261320a6102008401612fe2565b60a082015261321c6102208401612fe2565b60c082015261322e610240840161304a565b60e0820152613240610260840161317d565b610100820152610280929092015161012083015250919050565b60006020828403121561326c57600080fd5b8151610bad81612be2565b60006020828403121561328957600080fd5b610bad8261317d565b60208082526027908201527f536f6c76425443526f7574657256323a2074617267657420746f6b656e206e6f6040820152660e840dac2e8c6d60cb1b606082015260800190565b6000602082840312156132eb57600080fd5b5051919050565b81810381811115611cd157611cd1612f5c565b6001600160a01b039390931683526020830191909152604082015260600190565b9283526020830191909152604082015260600190565b80820180821115611cd157611cd1612f5c565b8481526000602085818401526080604084015261336f6080840186612f8b565b838103606085015284518082528286019183019060005b818110156133a257835183529284019291840191600101613386565b50909998505050505050505050565b60208082526021908201527f536f6c76425443526f7574657256323a20706f6f6c4964206e6f7420666f756e6040820152601960fa1b606082015260800190565b60208082526023908201527f536f6c76425443526f7574657256323a2063757272656e6379206e6f74206d616040820152620e8c6d60eb1b606082015260800190565b60208082526026908201527f536f6c76425443526f7574657256323a2073686172652076616c7565206e6f74604082015265040dac2e8c6d60d31b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b6000608082840312156134a357600080fd5b6134ab612c0d565b8251815260208301516134bd81612be2565b6020820152604083810151908201526060928301519281019290925250919050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000825160005b81811015613524576020818601810151858301520161350a565b506000920191825250919050565b602080825260129082015271696e76616c696420756e6465726c79696e6760701b60408201526060019056fe536f6c76425443526f7574657256323a20696e76616c69642063757272656e63a26469706673582212205610971800e27b29075064ba50cf4f0febfe97b463fcc084d85f07bca875b98e64736f6c63430008140033", "devdoc": { "errors": { "InvalidInitialization()": [ { "details": "The contract is already initialized." } ], "NotInitializing()": [ { "details": "The contract is not initializing." } ], "OwnableInvalidOwner(address)": [ { "details": "The owner is not a valid owner account. (eg. `address(0)`)" } ], "OwnableUnauthorizedAccount(address)": [ { "details": "The caller account is not authorized to perform an operation." } ], "ReentrancyGuardReentrantCall()": [ { "details": "Unauthorized reentrant call." } ] }, "events": { "Initialized(uint64)": { "details": "Triggered when the contract has been initialized or reinitialized." } }, "kind": "dev", "methods": { "acceptOwnership()": { "details": "The new owner accepts the ownership transfer." }, "addKycSBTVerifier(address)": { "params": { "kycSBTVerifier_": "The KYC SBT verifier address" } }, "cancelWithdrawRequest(address,address,uint256)": { "params": { "redemptionId_": "The redemption sft token ID", "redemption_": "The redemption sft token address", "targetToken_": "The target ERC20 token address to receive after canceling" }, "returns": { "targetTokenAmount_": "The targetToken amount to receive" } }, "checkPoolPermission(bytes32)": { "params": { "poolId_": "The poolId of the pool to deposit" } }, "constructor": { "custom:oz-upgrades-unsafe-allow": "constructor" }, "deposit(address,address,uint256,uint256,uint64)": { "params": { "currencyAmount_": "The amount of currency to deposit", "currency_": "The currency address to deposit", "expireTime_": "The expire time", "minimumTargetTokenAmount_": "The minimum acceptable return amount of target token", "targetToken_": "The target ERC20 token address to receive" }, "returns": { "targetTokenAmount_": "The targetToken amount to receive" } }, "initialize(address,address)": { "params": { "openFundMarket_": "The address of openFundMarket", "owner_": "The owner of this router" } }, "owner()": { "details": "Returns the address of the current owner." }, "pendingOwner()": { "details": "Returns the address of the pending owner." }, "removeKycSBTVerifier(address)": { "params": { "kycSBTVerifier_": "The KYC SBT verifier address" } }, "renounceOwnership()": { "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner." }, "setMultiAssetPool(address,address)": { "params": { "multiAssetPool_": "The multiAssetPool/xSolvBTCPool address", "token_": "The target ERC20 token address" } }, "setPath(address,address,address[])": { "params": { "currency_": "The currency address to deposit", "path_": "The addresses of the path tokens that indicate how to convert currency to targetToken", "targetToken_": "The target ERC20 token address to receive" } }, "setPoolId(address,address,bytes32)": { "params": { "currency_": "The currency address to deposit", "poolId_": "The poolId of the pool to deposit", "targetToken_": "The target ERC20 token address to receive" } }, "transferOwnership(address)": { "details": "Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner." }, "withdrawRequest(address,address,uint256)": { "params": { "currency_": "The currency address to receive after claiming", "targetToken_": "The target ERC20 token address to withdraw", "withdrawAmount_": "The amount of targetToken to withdraw" }, "returns": { "_0": "The address and ID of the redemption sft token to receive" } } }, "version": 1 }, "userdoc": { "kind": "user", "methods": { "addKycSBTVerifier(address)": { "notice": "Add KYC SBT verifier" }, "cancelWithdrawRequest(address,address,uint256)": { "notice": "Cancel the withdraw request" }, "checkKycSBT()": { "notice": "Verify the KYC status of msg.sender" }, "checkPoolPermission(bytes32)": { "notice": "Check if msg.sender is allowed to deposit to the pool" }, "deposit(address,address,uint256,uint256,uint64)": { "notice": "Deposit currency and get targetToken" }, "initialize(address,address)": { "notice": "RouterV2 initialization" }, "removeKycSBTVerifier(address)": { "notice": "Remove KYC SBT verifier" }, "setMultiAssetPool(address,address)": { "notice": "Set the multiAssetPool/xSolvBTCPool address for a target token" }, "setPath(address,address,address[])": { "notice": "Set the path for a target token and currency" }, "setPoolId(address,address,bytes32)": { "notice": "Set the poolId for a target token and currency" }, "withdrawRequest(address,address,uint256)": { "notice": "Withdraw currency with target token from the pool" } }, "version": 1 }, "storageLayout": { "storage": [ { "astId": 3529, "contract": "contracts/SolvBTCRouterV2.sol:SolvBTCRouterV2", "label": "openFundMarket", "offset": 0, "slot": "0", "type": "t_address" }, { "astId": 3532, "contract": "contracts/SolvBTCRouterV2.sol:SolvBTCRouterV2", "label": "kycSBTVerifiers", "offset": 0, "slot": "1", "type": "t_array(t_address)dyn_storage" }, { "astId": 3539, "contract": "contracts/SolvBTCRouterV2.sol:SolvBTCRouterV2", "label": "paths", "offset": 0, "slot": "2", "type": "t_mapping(t_address,t_mapping(t_address,t_array(t_address)dyn_storage))" }, { "astId": 3545, "contract": "contracts/SolvBTCRouterV2.sol:SolvBTCRouterV2", "label": "poolIds", "offset": 0, "slot": "3", "type": "t_mapping(t_address,t_mapping(t_address,t_bytes32))" }, { "astId": 3549, "contract": "contracts/SolvBTCRouterV2.sol:SolvBTCRouterV2", "label": "multiAssetPools", "offset": 0, "slot": "4", "type": "t_mapping(t_address,t_address)" }, { "astId": 4775, "contract": "contracts/SolvBTCRouterV2.sol:SolvBTCRouterV2", "label": "__gap", "offset": 0, "slot": "5", "type": "t_array(t_uint256)45_storage" } ], "types": { "t_address": { "encoding": "inplace", "label": "address", "numberOfBytes": "20" }, "t_array(t_address)dyn_storage": { "base": "t_address", "encoding": "dynamic_array", "label": "address[]", "numberOfBytes": "32" }, "t_array(t_uint256)45_storage": { "base": "t_uint256", "encoding": "inplace", "label": "uint256[45]", "numberOfBytes": "1440" }, "t_bytes32": { "encoding": "inplace", "label": "bytes32", "numberOfBytes": "32" }, "t_mapping(t_address,t_address)": { "encoding": "mapping", "key": "t_address", "label": "mapping(address => address)", "numberOfBytes": "32", "value": "t_address" }, "t_mapping(t_address,t_array(t_address)dyn_storage)": { "encoding": "mapping", "key": "t_address", "label": "mapping(address => address[])", "numberOfBytes": "32", "value": "t_array(t_address)dyn_storage" }, "t_mapping(t_address,t_bytes32)": { "encoding": "mapping", "key": "t_address", "label": "mapping(address => bytes32)", "numberOfBytes": "32", "value": "t_bytes32" }, "t_mapping(t_address,t_mapping(t_address,t_array(t_address)dyn_storage))": { "encoding": "mapping", "key": "t_address", "label": "mapping(address => mapping(address => address[]))", "numberOfBytes": "32", "value": "t_mapping(t_address,t_array(t_address)dyn_storage)" }, "t_mapping(t_address,t_mapping(t_address,t_bytes32))": { "encoding": "mapping", "key": "t_address", "label": "mapping(address => mapping(address => bytes32))", "numberOfBytes": "32", "value": "t_mapping(t_address,t_bytes32)" }, "t_uint256": { "encoding": "inplace", "label": "uint256", "numberOfBytes": "32" } } } }