[ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "AlreadyTermContractPaired", "type": "error" }, { "inputs": [], "name": "ERC20TransferFailed", "type": "error" }, { "inputs": [], "name": "TermRepoLockerTransfersPaused", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "previousAdmin", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newAdmin", "type": "address" } ], "name": "AdminChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "beacon", "type": "address" } ], "name": "BeaconUpgraded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint8", "name": "version", "type": "uint8" } ], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "previousAdminRole", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "newAdminRole", "type": "bytes32" } ], "name": "RoleAdminChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "RoleGranted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "RoleRevoked", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "implementation", "type": "address" } ], "name": "Upgraded", "type": "event" }, { "inputs": [], "name": "ADMIN_ROLE", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "DEFAULT_ADMIN_ROLE", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "DEVOPS_ROLE", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "INITIALIZER_ROLE", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "SERVICER_ROLE", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" } ], "name": "getRoleAdmin", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "grantRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "hasRole", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "termRepoId_", "type": "string" }, { "internalType": "address", "name": "termInitializer_", "type": "address" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "termRepoCollateralManager_", "type": "address" }, { "internalType": "address", "name": "termRepoServicer_", "type": "address" }, { "internalType": "contract ITermEventEmitter", "name": "emitter_", "type": "address" }, { "internalType": "address", "name": "devopsMultisig_", "type": "address" }, { "internalType": "address", "name": "adminWallet_", "type": "address" } ], "name": "pairTermContracts", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "pauseTransfers", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "proxiableUUID", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "renounceRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "revokeRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "termRepoId", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "originWallet", "type": "address" }, { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transferTokenFromWallet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "destinationWallet", "type": "address" }, { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transferTokenToWallet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "transfersPaused", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "unpauseTransfers", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newImplementation", "type": "address" } ], "name": "upgradeTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newImplementation", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "upgradeToAndCall", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "version", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" } ]
60a06040523060805234801561001457600080fd5b5061001d610022565b6100e1565b600054610100900460ff161561008e5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116146100df576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b608051611bb8610118600039600081816105a5015281816105e5015281816106f70152818161073701526107af0152611bb86000f3fe6080604052600436106101205760003560e01c806347af9957116100a657806347af9957146102ba5780634f1ef286146102cf57806352d1902d146102e257806354fd4d50146102f757806375b238fc1461032b5780637910b4641461034d5780637ab4339d1461036d5780638936a91f1461038d57806391d14854146103a2578063a217fddf146103c2578063cc5b6e4a146103d7578063d547741f146103ed57600080fd5b806301ffc9a71461012557806309a016081461015a578063127ca9441461018a578063201a6625146101ac578063213919f2146101ce578063248a9ca3146101ee57806327df3d3e1461021e5780632f2ff15d1461024057806336568abe146102605780633659cfe6146102805780634563f30a146102a0575b600080fd5b34801561013157600080fd5b506101456101403660046115d5565b61040d565b60405190151581526020015b60405180910390f35b34801561016657600080fd5b5061017c600080516020611abc83398151915281565b604051908152602001610151565b34801561019657600080fd5b506101aa6101a5366004611614565b610444565b005b3480156101b857600080fd5b5061017c600080516020611adc83398151915281565b3480156101da57600080fd5b506101aa6101e9366004611614565b61049d565b3480156101fa57600080fd5b5061017c610209366004611655565b600090815260c9602052604090206001015490565b34801561022a57600080fd5b5061017c600080516020611afc83398151915281565b34801561024c57600080fd5b506101aa61025b36600461166e565b6104ee565b34801561026c57600080fd5b506101aa61027b36600461166e565b610518565b34801561028c57600080fd5b506101aa61029b36600461169e565b61059b565b3480156102ac57600080fd5b5060fc546101459060ff1681565b3480156102c657600080fd5b506101aa610663565b6101aa6102dd3660046116d1565b6106ed565b3480156102ee57600080fd5b5061017c6107a2565b34801561030357600080fd5b5060408051808201825260058152640302e362e360dc1b6020820152905161015191906117b9565b34801561033757600080fd5b5061017c600080516020611b6383398151915281565b34801561035957600080fd5b506101aa6103683660046117ec565b610850565b34801561037957600080fd5b506101aa61038836600461185d565b61098d565b34801561039957600080fd5b506101aa610b00565b3480156103ae57600080fd5b506101456103bd36600461166e565b610b5b565b3480156103ce57600080fd5b5061017c600081565b3480156103e357600080fd5b5061017c60fb5481565b3480156103f957600080fd5b506101aa61040836600461166e565b610b86565b60006001600160e01b03198216637965db0b60e01b148061043e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60fc5460ff16156104685760405163b16749ef60e01b815260040160405180910390fd5b600080516020611abc83398151915261048081610bab565b826104966001600160a01b038216863086610bb5565b5050505050565b60fc5460ff16156104c15760405163b16749ef60e01b815260040160405180910390fd5b600080516020611abc8339815191526104d981610bab565b826104966001600160a01b0382168685610c20565b600082815260c9602052604090206001015461050981610bab565b6105138383610c50565b505050565b6001600160a01b038116331461058d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6105978282610cd6565b5050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036105e35760405162461bcd60e51b8152600401610584906118e0565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610615610d3d565b6001600160a01b03161461063b5760405162461bcd60e51b81526004016105849061192c565b61064481610d59565b6040805160008082526020820190925261066091839190610de1565b50565b600080516020611b6383398151915261067b81610bab565b60fc8054600160ff19909116179081905560fb546040516380c48d1360e01b81526004810191909152620100009091046001600160a01b0316906380c48d13906024015b600060405180830381600087803b1580156106d957600080fd5b505af1158015610496573d6000803e3d6000fd5b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036107355760405162461bcd60e51b8152600401610584906118e0565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610767610d3d565b6001600160a01b03161461078d5760405162461bcd60e51b81526004016105849061192c565b61079682610d59565b61059782826001610de1565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461083d5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b6064820152608401610584565b50600080516020611b1c83398151915290565b600080516020611afc83398151915261086881610bab565b60fc54610100900460ff161561089157604051634ce377bb60e11b815260040160405180910390fd5b60fc80546001600160a01b0386166201000002610100600160b01b0319909116176101001790556108d0600080516020611abc83398151915287610c50565b6108e8600080516020611abc83398151915286610c50565b610900600080516020611adc83398151915284610c50565b610918600080516020611b6383398151915283610c50565b60fc5460fb54604051639c871b3160e01b81526004810191909152306024820152620100009091046001600160a01b031690639c871b3190604401600060405180830381600087803b15801561096d57600080fd5b505af1158015610981573d6000803e3d6000fd5b50505050505050505050565b600054610100900460ff16158080156109ad5750600054600160ff909116105b806109ce57506109bc30610f4c565b1580156109ce575060005460ff166001145b610a315760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610584565b6000805460ff191660011790558015610a54576000805461ff0019166101001790555b610a5c610f5b565b610a64610f5b565b8383604051602001610a77929190611978565b60408051601f19818403018152919052805160209091012060fb5560fc805460ff19169055610ab4600080516020611afc83398151915283610c50565b8015610afa576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050565b600080516020611b63833981519152610b1881610bab565b60fc805460ff19169081905560fb5460405163240d3a8560e11b81526004810191909152620100009091046001600160a01b03169063481a750a906024016106bf565b600091825260c9602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600082815260c96020526040902060010154610ba181610bab565b6105138383610cd6565b6106608133610fc8565b6040516001600160a01b0380851660248301528316604482015260648101829052610afa9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611021565b6040516001600160a01b03831660248201526044810182905261051390849063a9059cbb60e01b90606401610be9565b610c5a8282610b5b565b61059757600082815260c9602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610c923390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610ce08282610b5b565b1561059757600082815260c9602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600080516020611b1c833981519152546001600160a01b031690565b600080516020611adc833981519152610d7181610bab565b60fc5460405163b3c2d50b60e01b81523060048201526001600160a01b038481166024830152620100009092049091169063b3c2d50b90604401600060405180830381600087803b158015610dc557600080fd5b505af1158015610dd9573d6000803e3d6000fd5b505050505050565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615610e1457610513836110f6565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610e6e575060408051601f3d908101601f19168201909252610e6b91810190611988565b60015b610ed15760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610584565b600080516020611b1c8339815191528114610f405760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610584565b50610513838383611190565b6001600160a01b03163b151590565b600054610100900460ff16610fc65760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610584565b565b610fd28282610b5b565b61059757610fdf816111b5565b610fea8360206111c7565b604051602001610ffb9291906119a1565b60408051601f198184030181529082905262461bcd60e51b8252610584916004016117b9565b6000611076826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661136a9092919063ffffffff16565b90508051600014806110975750808060200190518101906110979190611a10565b6105135760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610584565b6110ff81610f4c565b6111615760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610584565b600080516020611b1c83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61119983611381565b6000825111806111a65750805b1561051357610afa83836113c1565b606061043e6001600160a01b03831660145b606060006111d6836002611a48565b6111e1906002611a5f565b67ffffffffffffffff8111156111f9576111f96116bb565b6040519080825280601f01601f191660200182016040528015611223576020820181803683370190505b509050600360fc1b8160008151811061123e5761123e611a72565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061126d5761126d611a72565b60200101906001600160f81b031916908160001a9053506000611291846002611a48565b61129c906001611a5f565b90505b6001811115611314576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106112d0576112d0611a72565b1a60f81b8282815181106112e6576112e6611a72565b60200101906001600160f81b031916908160001a90535060049490941c9361130d81611a88565b905061129f565b5083156113635760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610584565b9392505050565b606061137984846000856113e6565b949350505050565b61138a816110f6565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606113638383604051806060016040528060278152602001611b3c602791396114c1565b6060824710156114475760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610584565b600080866001600160a01b031685876040516114639190611a9f565b60006040518083038185875af1925050503d80600081146114a0576040519150601f19603f3d011682016040523d82523d6000602084013e6114a5565b606091505b50915091506114b687838387611539565b979650505050505050565b6060600080856001600160a01b0316856040516114de9190611a9f565b600060405180830381855af49150503d8060008114611519576040519150601f19603f3d011682016040523d82523d6000602084013e61151e565b606091505b509150915061152f86838387611539565b9695505050505050565b606083156115a657825160000361159f5761155385610f4c565b61159f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610584565b5081611379565b61137983838151156115bb5781518083602001fd5b8060405162461bcd60e51b815260040161058491906117b9565b6000602082840312156115e757600080fd5b81356001600160e01b03198116811461136357600080fd5b6001600160a01b038116811461066057600080fd5b60008060006060848603121561162957600080fd5b8335611634816115ff565b92506020840135611644816115ff565b929592945050506040919091013590565b60006020828403121561166757600080fd5b5035919050565b6000806040838503121561168157600080fd5b823591506020830135611693816115ff565b809150509250929050565b6000602082840312156116b057600080fd5b8135611363816115ff565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156116e457600080fd5b82356116ef816115ff565b9150602083013567ffffffffffffffff8082111561170c57600080fd5b818501915085601f83011261172057600080fd5b813581811115611732576117326116bb565b604051601f8201601f19908116603f0116810190838211818310171561175a5761175a6116bb565b8160405282815288602084870101111561177357600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60005b838110156117b0578181015183820152602001611798565b50506000910152565b60208152600082518060208401526117d8816040850160208701611795565b601f01601f19169190910160400192915050565b600080600080600060a0868803121561180457600080fd5b853561180f816115ff565b9450602086013561181f816115ff565b9350604086013561182f816115ff565b9250606086013561183f816115ff565b9150608086013561184f816115ff565b809150509295509295909350565b60008060006040848603121561187257600080fd5b833567ffffffffffffffff8082111561188a57600080fd5b818601915086601f83011261189e57600080fd5b8135818111156118ad57600080fd5b8760208285010111156118bf57600080fd5b602092830195509350508401356118d5816115ff565b809150509250925092565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b8183823760009101908152919050565b60006020828403121561199a57600080fd5b5051919050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516119d3816017850160208801611795565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611a04816028840160208801611795565b01602801949350505050565b600060208284031215611a2257600080fd5b8151801515811461136357600080fd5b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761043e5761043e611a32565b8082018082111561043e5761043e611a32565b634e487b7160e01b600052603260045260246000fd5b600081611a9757611a97611a32565b506000190190565b60008251611ab1818460208701611795565b919091019291505056fe250b76734a070a69c7b3930477dd35007ad9c9d0952e97903fdafb2db6980537793a6c9b7e0a9549c74edc2f9ae0dc50903dfaa9a56fb0116b27a8c71de3e2c630d41a597cac127d8249d31298b50e481ee82c3f4a49ff93c76a22735aa9f3ad360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a2646970667358221220f4cc5b5448c843466179d07736f4701cf63a52fba19d7841f373cc403f9b943764736f6c63430008120033