More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 30 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Migrate Trove | 20134662 | 215 days ago | IN | 0 ETH | 0.01095177 | ||||
Migrate Trove | 20106760 | 219 days ago | IN | 0 ETH | 0.00673734 | ||||
Migrate Trove | 19862615 | 253 days ago | IN | 0 ETH | 0.024803 | ||||
Migrate Trove | 19774588 | 265 days ago | IN | 0 ETH | 0.00901548 | ||||
Migrate Trove | 19727852 | 272 days ago | IN | 0 ETH | 0.01028898 | ||||
Migrate Trove | 19707520 | 275 days ago | IN | 0 ETH | 0.00680036 | ||||
Migrate Trove | 19698852 | 276 days ago | IN | 0 ETH | 0.00916654 | ||||
Migrate Trove | 19671125 | 280 days ago | IN | 0 ETH | 0.00874781 | ||||
Migrate Trove | 19671113 | 280 days ago | IN | 0 ETH | 0.00914863 | ||||
Migrate Trove | 19670657 | 280 days ago | IN | 0 ETH | 0.01121935 | ||||
Migrate Trove | 19669165 | 280 days ago | IN | 0 ETH | 0.02520125 | ||||
Migrate Trove | 19667916 | 280 days ago | IN | 0 ETH | 0.01482508 | ||||
Migrate Trove | 19666231 | 280 days ago | IN | 0 ETH | 0.0093868 | ||||
Migrate Trove | 19665221 | 281 days ago | IN | 0 ETH | 0.00840523 | ||||
Migrate Trove | 19658922 | 281 days ago | IN | 0 ETH | 0.00957454 | ||||
Migrate Trove | 19657165 | 282 days ago | IN | 0 ETH | 0.00843947 | ||||
Migrate Trove | 19657131 | 282 days ago | IN | 0 ETH | 0.01016397 | ||||
Migrate Trove | 19634940 | 285 days ago | IN | 0 ETH | 0.02452304 | ||||
Migrate Trove | 19632024 | 285 days ago | IN | 0 ETH | 0.01943761 | ||||
Migrate Trove | 19622263 | 287 days ago | IN | 0 ETH | 0.01638386 | ||||
Migrate Trove | 19618811 | 287 days ago | IN | 0 ETH | 0.05590583 | ||||
Migrate Trove | 19616933 | 287 days ago | IN | 0 ETH | 0.03025201 | ||||
Migrate Trove | 19612927 | 288 days ago | IN | 0 ETH | 0.04458575 | ||||
Migrate Trove | 19612923 | 288 days ago | IN | 0 ETH | 0.0372923 | ||||
Migrate Trove | 19604559 | 289 days ago | IN | 0 ETH | 0.02164605 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
MigrateTroveZap
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "contracts/zaps/BaseZap.sol"; import "contracts/interfaces/ITroveManager.sol"; import "contracts/interfaces/IDebtToken.sol"; import "contracts/interfaces/IBorrowerOperations.sol"; /** @title Prisma Migrate Trove Zap @notice Zap to automate migrating to a different version of a Trove Manager for the same collateral. */ contract MigrateTroveZap is BaseZap { bytes32 private constant _RETURN_VALUE = keccak256("ERC3156FlashBorrower.onFlashLoan"); uint256 public immutable DEBT_GAS_COMPENSATION; IBorrowerOperations public immutable borrowerOps; IDebtToken public immutable debtToken; // State --------------------------------------------------------------------------------------------------------- mapping(address collateral => bool approved) public approvedCollaterals; // Events --------------------------------------------------------------------------------------------------------- event TroveMigrated(address account, address troveManagerFrom, address troveManagerTo, uint256 coll, uint256 debt); event NewTokenRegistered(address token); constructor(IBorrowerOperations _borrowerOps, IDebtToken _debtToken) { borrowerOps = _borrowerOps; debtToken = _debtToken; IDebtToken(debtToken).approve(address(_borrowerOps), type(uint256).max); IDebtToken(debtToken).approve(address(_debtToken), type(uint256).max); DEBT_GAS_COMPENSATION = _debtToken.DEBT_GAS_COMPENSATION(); } // Public functions ------------------------------------------------------------------------------------------------- /// @notice Flashloan callback function /// @dev This callback fails if there is any leftover collateral in the Zap function onFlashLoan( address originator, address, uint256 amount, uint256 fee, bytes calldata data ) external whenNotPaused returns (bytes32) { require(msg.sender == address(debtToken), "!DebtToken"); require(originator == address(this), "!Zap"); ( address collateralFrom, address account, address troveManagerFrom, address troveManagerTo, uint256 maxFeePercentage, uint256 coll, address upperHint, address lowerHint ) = abi.decode(data, (address, address, address, address, uint256, uint256, address, address)); uint256 toMint = amount + fee; uint256 balanceBefore = IERC20(collateralFrom).balanceOf(address(this)); borrowerOps.closeTrove(troveManagerFrom, account); borrowerOps.openTrove(troveManagerTo, account, maxFeePercentage, coll, toMint, upperHint, lowerHint); require(IERC20(collateralFrom).balanceOf(address(this)) == balanceBefore, "Invalid migration amount"); return _RETURN_VALUE; } /** @notice Migrates a trove to another TroveManager for the same collateral @param troveManagerFrom Trove manager to migrate the user trove from @param troveManagerTo Trove manager to migrate the user trove to @param maxFeePercentage Maximum fee accepted by the user for this operation @param upperHint Upper Hint for locating the trove in the list of troves @param lowerHint Lower Hint for locating the trove in the list of troves */ function migrateTrove( ITroveManager troveManagerFrom, ITroveManager troveManagerTo, uint256 maxFeePercentage, address upperHint, address lowerHint ) external { (address collateralFrom, ) = borrowerOps.troveManagersData(address(troveManagerFrom)); { (address collateralTo, ) = borrowerOps.troveManagersData(address(troveManagerTo)); require(collateralFrom != address(0), "Invalid TM"); require(address(troveManagerTo) != address(troveManagerFrom), "Cannot migrate to same TM"); require(collateralFrom == collateralTo, "Migration not supported"); } (uint256 coll, uint256 debt) = troveManagerFrom.getTroveCollAndDebt(msg.sender); require(debt > 0, "Trove not active"); // One SLOAD to allow set and forget if (!approvedCollaterals[collateralFrom]) { IERC20(collateralFrom).approve(address(borrowerOps), type(uint256).max); approvedCollaterals[collateralFrom] = true; } debtToken.flashLoan( address(this), address(debtToken), debt - DEBT_GAS_COMPENSATION, abi.encode( collateralFrom, msg.sender, address(troveManagerFrom), address(troveManagerTo), maxFeePercentage, coll, upperHint, lowerHint ) ); emit TroveMigrated(msg.sender, address(troveManagerFrom), address(troveManagerTo), coll, debt); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "contracts/utils/Address.sol"; import { Ownable } from "contracts/access/Ownable.sol"; import { Pausable } from "contracts/security/Pausable.sol"; import "contracts/token/ERC20/IERC20.sol"; import "contracts/token/ERC20/utils/SafeERC20.sol"; /** @title Base Zap @notice Abstract contract with common functions for Prisma Zaps for the same collateral. */ abstract contract BaseZap is Ownable, Pausable { using SafeERC20 for IERC20; using Address for address; event EmergencyEtherRecovered(uint256 amount); event EmergencyERC20Recovered(address tokenAddress, uint256 tokenAmount); // Admin routines --------------------------------------------------------------------------------------------------- /// @notice For emergencies if something gets stuck function recoverEther(uint256 amount) external onlyOwner { (bool success, ) = owner().call{ value: amount }(""); require(success, "Invalid transfer"); emit EmergencyEtherRecovered(amount); } /// @notice For emergencies if someone accidentally sent some ERC20 tokens here function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner { IERC20(tokenAddress).safeTransfer(msg.sender, tokenAmount); emit EmergencyERC20Recovered(tokenAddress, tokenAmount); } function pause() external virtual whenNotPaused onlyOwner { _pause(); } function unpause() external virtual whenPaused onlyOwner { _unpause(); } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "contracts/utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev 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. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "contracts/utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "contracts/token/ERC20/IERC20.sol"; import "contracts/token/ERC20/extensions/IERC20Permit.sol"; import "contracts/utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface ITroveManager { event BaseRateUpdated(uint256 _baseRate); event CollateralSent(address _to, uint256 _amount); event LTermsUpdated(uint256 _L_collateral, uint256 _L_debt); event LastFeeOpTimeUpdated(uint256 _lastFeeOpTime); event Redemption( uint256 _attemptedDebtAmount, uint256 _actualDebtAmount, uint256 _collateralSent, uint256 _collateralFee ); event RewardClaimed(address indexed account, address indexed recipient, uint256 claimed); event SystemSnapshotsUpdated(uint256 _totalStakesSnapshot, uint256 _totalCollateralSnapshot); event TotalStakesUpdated(uint256 _newTotalStakes); event TroveIndexUpdated(address _borrower, uint256 _newIndex); event TroveSnapshotsUpdated(uint256 _L_collateral, uint256 _L_debt); event TroveUpdated(address indexed _borrower, uint256 _debt, uint256 _coll, uint256 _stake, uint8 _operation); function addCollateralSurplus(address borrower, uint256 collSurplus) external; function applyPendingRewards(address _borrower) external returns (uint256 coll, uint256 debt); function claimCollateral(address _receiver) external; function claimReward(address receiver) external returns (uint256); function closeTrove(address _borrower, address _receiver, uint256 collAmount, uint256 debtAmount) external; function closeTroveByLiquidation(address _borrower) external; function collectInterests() external; function decayBaseRateAndGetBorrowingFee(uint256 _debt) external returns (uint256); function decreaseDebtAndSendCollateral(address account, uint256 debt, uint256 coll) external; function fetchPrice() external returns (uint256); function finalizeLiquidation( address _liquidator, uint256 _debt, uint256 _coll, uint256 _collSurplus, uint256 _debtGasComp, uint256 _collGasComp ) external; function getEntireSystemBalances() external returns (uint256, uint256, uint256); function movePendingTroveRewardsToActiveBalances(uint256 _debt, uint256 _collateral) external; function notifyRegisteredId(uint256[] calldata _assignedIds) external returns (bool); function openTrove( address _borrower, uint256 _collateralAmount, uint256 _compositeDebt, uint256 NICR, address _upperHint, address _lowerHint, bool _isRecoveryMode ) external returns (uint256 stake, uint256 arrayIndex); function redeemCollateral( uint256 _debtAmount, address _firstRedemptionHint, address _upperPartialRedemptionHint, address _lowerPartialRedemptionHint, uint256 _partialRedemptionHintNICR, uint256 _maxIterations, uint256 _maxFeePercentage ) external; function setAddresses(address _priceFeedAddress, address _sortedTrovesAddress, address _collateralToken) external; function setParameters( uint256 _minuteDecayFactor, uint256 _redemptionFeeFloor, uint256 _maxRedemptionFee, uint256 _borrowingFeeFloor, uint256 _maxBorrowingFee, uint256 _interestRateInBPS, uint256 _maxSystemDebt, uint256 _MCR ) external; function setPaused(bool _paused) external; function setPriceFeed(address _priceFeedAddress) external; function startSunset() external; function updateBalances() external; function updateTroveFromAdjustment( bool _isRecoveryMode, bool _isDebtIncrease, uint256 _debtChange, uint256 _netDebtChange, bool _isCollIncrease, uint256 _collChange, address _upperHint, address _lowerHint, address _borrower, address _receiver ) external returns (uint256, uint256, uint256); function vaultClaimReward(address claimant, address) external returns (uint256); function BOOTSTRAP_PERIOD() external view returns (uint256); function CCR() external view returns (uint256); function DEBT_GAS_COMPENSATION() external view returns (uint256); function DECIMAL_PRECISION() external view returns (uint256); function L_collateral() external view returns (uint256); function L_debt() external view returns (uint256); function MAX_INTEREST_RATE_IN_BPS() external view returns (uint256); function MCR() external view returns (uint256); function PERCENT_DIVISOR() external view returns (uint256); function PRISMA_CORE() external view returns (address); function Troves( address ) external view returns ( uint256 debt, uint256 coll, uint256 stake, uint8 status, uint128 arrayIndex, uint256 activeInterestIndex ); function accountLatestMint(address) external view returns (uint32 amount, uint32 week, uint32 day); function baseRate() external view returns (uint256); function borrowerOperationsAddress() external view returns (address); function borrowingFeeFloor() external view returns (uint256); function claimableReward(address account) external view returns (uint256); function collateralToken() external view returns (address); function dailyMintReward(uint256) external view returns (uint256); function debtToken() external view returns (address); function defaultedCollateral() external view returns (uint256); function defaultedDebt() external view returns (uint256); function emissionId() external view returns (uint16 debt, uint16 minting); function getBorrowingFee(uint256 _debt) external view returns (uint256); function getBorrowingFeeWithDecay(uint256 _debt) external view returns (uint256); function getBorrowingRate() external view returns (uint256); function getBorrowingRateWithDecay() external view returns (uint256); function getCurrentICR(address _borrower, uint256 _price) external view returns (uint256); function getEntireDebtAndColl( address _borrower ) external view returns (uint256 debt, uint256 coll, uint256 pendingDebtReward, uint256 pendingCollateralReward); function getEntireSystemColl() external view returns (uint256); function getEntireSystemDebt() external view returns (uint256); function getNominalICR(address _borrower) external view returns (uint256); function getPendingCollAndDebtRewards(address _borrower) external view returns (uint256, uint256); function getRedemptionFeeWithDecay(uint256 _collateralDrawn) external view returns (uint256); function getRedemptionRate() external view returns (uint256); function getRedemptionRateWithDecay() external view returns (uint256); function getTotalActiveCollateral() external view returns (uint256); function getTotalActiveDebt() external view returns (uint256); function getTotalMints(uint256 week) external view returns (uint32[7] memory); function getTroveCollAndDebt(address _borrower) external view returns (uint256 coll, uint256 debt); function getTroveFromTroveOwnersArray(uint256 _index) external view returns (address); function getTroveOwnersCount() external view returns (uint256); function getTroveStake(address _borrower) external view returns (uint256); function getTroveStatus(address _borrower) external view returns (uint256); function getWeek() external view returns (uint256 week); function getWeekAndDay() external view returns (uint256, uint256); function guardian() external view returns (address); function hasPendingRewards(address _borrower) external view returns (bool); function interestPayable() external view returns (uint256); function interestRate() external view returns (uint256); function lastFeeOperationTime() external view returns (uint256); function lastUpdate() external view returns (uint32); function liquidationManager() external view returns (address); function maxSystemDebt() external view returns (uint256); function minuteDecayFactor() external view returns (uint256); function owner() external view returns (address); function paused() external view returns (bool); function periodFinish() external view returns (uint32); function priceFeed() external view returns (address); function redemptionFeeFloor() external view returns (uint256); function rewardIntegral() external view returns (uint256); function rewardIntegralFor(address) external view returns (uint256); function rewardRate() external view returns (uint128); function rewardSnapshots(address) external view returns (uint256 collateral, uint256 debt); function sortedTroves() external view returns (address); function sunsetting() external view returns (bool); function surplusBalances(address) external view returns (uint256); function totalCollateralSnapshot() external view returns (uint256); function totalStakes() external view returns (uint256); function totalStakesSnapshot() external view returns (uint256); function vault() external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IDebtToken { event Approval(address indexed owner, address indexed spender, uint256 value); event MessageFailed(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload, bytes _reason); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); event ReceiveFromChain(uint16 indexed _srcChainId, address indexed _to, uint256 _amount); event RetryMessageSuccess(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes32 _payloadHash); event SendToChain(uint16 indexed _dstChainId, address indexed _from, bytes _toAddress, uint256 _amount); event SetMinDstGas(uint16 _dstChainId, uint16 _type, uint256 _minDstGas); event SetPrecrime(address precrime); event SetTrustedRemote(uint16 _remoteChainId, bytes _path); event SetTrustedRemoteAddress(uint16 _remoteChainId, bytes _remoteAddress); event SetUseCustomAdapterParams(bool _useCustomAdapterParams); event Transfer(address indexed from, address indexed to, uint256 value); function approve(address spender, uint256 amount) external returns (bool); function burn(address _account, uint256 _amount) external; function burnWithGasCompensation(address _account, uint256 _amount) external returns (bool); function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool); function enableTroveManager(address _troveManager) external; function flashLoan(address receiver, address token, uint256 amount, bytes calldata data) external returns (bool); function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external; function increaseAllowance(address spender, uint256 addedValue) external returns (bool); function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external; function mint(address _account, uint256 _amount) external; function mintWithGasCompensation(address _account, uint256 _amount) external returns (bool); function nonblockingLzReceive( uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload ) external; function permit( address owner, address spender, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; function renounceOwnership() external; function returnFromPool(address _poolAddress, address _receiver, uint256 _amount) external; function sendToSP(address _sender, uint256 _amount) external; function setConfig(uint16 _version, uint16 _chainId, uint256 _configType, bytes calldata _config) external; function setMinDstGas(uint16 _dstChainId, uint16 _packetType, uint256 _minGas) external; function setPayloadSizeLimit(uint16 _dstChainId, uint256 _size) external; function setPrecrime(address _precrime) external; function setReceiveVersion(uint16 _version) external; function setSendVersion(uint16 _version) external; function setTrustedRemote(uint16 _srcChainId, bytes calldata _path) external; function setTrustedRemoteAddress(uint16 _remoteChainId, bytes calldata _remoteAddress) external; function setUseCustomAdapterParams(bool _useCustomAdapterParams) external; function transfer(address recipient, uint256 amount) external returns (bool); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); function transferOwnership(address newOwner) external; function retryMessage( uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload ) external payable; function sendFrom( address _from, uint16 _dstChainId, bytes calldata _toAddress, uint256 _amount, address _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams ) external payable; function DEBT_GAS_COMPENSATION() external view returns (uint256); function DEFAULT_PAYLOAD_SIZE_LIMIT() external view returns (uint256); function FLASH_LOAN_FEE() external view returns (uint256); function NO_EXTRA_GAS() external view returns (uint256); function PT_SEND() external view returns (uint16); function allowance(address owner, address spender) external view returns (uint256); function balanceOf(address account) external view returns (uint256); function borrowerOperationsAddress() external view returns (address); function circulatingSupply() external view returns (uint256); function decimals() external view returns (uint8); function domainSeparator() external view returns (bytes32); function estimateSendFee( uint16 _dstChainId, bytes calldata _toAddress, uint256 _amount, bool _useZro, bytes calldata _adapterParams ) external view returns (uint256 nativeFee, uint256 zroFee); function factory() external view returns (address); function failedMessages(uint16, bytes calldata, uint64) external view returns (bytes32); function flashFee(address token, uint256 amount) external view returns (uint256); function gasPool() external view returns (address); function getConfig( uint16 _version, uint16 _chainId, address, uint256 _configType ) external view returns (bytes memory); function getTrustedRemoteAddress(uint16 _remoteChainId) external view returns (bytes memory); function isTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool); function lzEndpoint() external view returns (address); function maxFlashLoan(address token) external view returns (uint256); function minDstGasLookup(uint16, uint16) external view returns (uint256); function name() external view returns (string memory); function nonces(address owner) external view returns (uint256); function owner() external view returns (address); function payloadSizeLimitLookup(uint16) external view returns (uint256); function permitTypeHash() external view returns (bytes32); function precrime() external view returns (address); function stabilityPoolAddress() external view returns (address); function supportsInterface(bytes4 interfaceId) external view returns (bool); function symbol() external view returns (string memory); function token() external view returns (address); function totalSupply() external view returns (uint256); function troveManager(address) external view returns (bool); function trustedRemoteLookup(uint16) external view returns (bytes memory); function useCustomAdapterParams() external view returns (bool); function version() external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IBorrowerOperations { struct Balances { uint256[] collaterals; uint256[] debts; uint256[] prices; } event BorrowingFeePaid(address indexed borrower, uint256 amount); event CollateralConfigured(address troveManager, address collateralToken); event TroveCreated(address indexed _borrower, uint256 arrayIndex); event TroveManagerRemoved(address troveManager); event TroveUpdated(address indexed _borrower, uint256 _debt, uint256 _coll, uint256 stake, uint8 operation); function addColl( address troveManager, address account, uint256 _collateralAmount, address _upperHint, address _lowerHint ) external; function adjustTrove( address troveManager, address account, uint256 _maxFeePercentage, uint256 _collDeposit, uint256 _collWithdrawal, uint256 _debtChange, bool _isDebtIncrease, address _upperHint, address _lowerHint ) external; function closeTrove(address troveManager, address account) external; function configureCollateral(address troveManager, address collateralToken) external; function fetchBalances() external returns (Balances memory balances); function getGlobalSystemBalances() external returns (uint256 totalPricedCollateral, uint256 totalDebt); function getTCR() external returns (uint256 globalTotalCollateralRatio); function openTrove( address troveManager, address account, uint256 _maxFeePercentage, uint256 _collateralAmount, uint256 _debtAmount, address _upperHint, address _lowerHint ) external; function removeTroveManager(address troveManager) external; function repayDebt( address troveManager, address account, uint256 _debtAmount, address _upperHint, address _lowerHint ) external; function setDelegateApproval(address _delegate, bool _isApproved) external; function setMinNetDebt(uint256 _minNetDebt) external; function withdrawColl( address troveManager, address account, uint256 _collWithdrawal, address _upperHint, address _lowerHint ) external; function withdrawDebt( address troveManager, address account, uint256 _maxFeePercentage, uint256 _debtAmount, address _upperHint, address _lowerHint ) external; function checkRecoveryMode(uint256 TCR) external pure returns (bool); function CCR() external view returns (uint256); function DEBT_GAS_COMPENSATION() external view returns (uint256); function DECIMAL_PRECISION() external view returns (uint256); function PERCENT_DIVISOR() external view returns (uint256); function PRISMA_CORE() external view returns (address); function _100pct() external view returns (uint256); function debtToken() external view returns (address); function factory() external view returns (address); function getCompositeDebt(uint256 _debt) external view returns (uint256); function guardian() external view returns (address); function isApprovedDelegate(address owner, address caller) external view returns (bool isApproved); function minNetDebt() external view returns (uint256); function owner() external view returns (address); function troveManagersData(address) external view returns (address collateralToken, uint16 index); }
{ "evmVersion": "paris", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "MigrateTroveZap.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IBorrowerOperations","name":"_borrowerOps","type":"address"},{"internalType":"contract IDebtToken","name":"_debtToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"EmergencyERC20Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyEtherRecovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"NewTokenRegistered","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address","name":"troveManagerFrom","type":"address"},{"indexed":false,"internalType":"address","name":"troveManagerTo","type":"address"},{"indexed":false,"internalType":"uint256","name":"coll","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"debt","type":"uint256"}],"name":"TroveMigrated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEBT_GAS_COMPENSATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collateral","type":"address"}],"name":"approvedCollaterals","outputs":[{"internalType":"bool","name":"approved","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowerOps","outputs":[{"internalType":"contract IBorrowerOperations","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debtToken","outputs":[{"internalType":"contract IDebtToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ITroveManager","name":"troveManagerFrom","type":"address"},{"internalType":"contract ITroveManager","name":"troveManagerTo","type":"address"},{"internalType":"uint256","name":"maxFeePercentage","type":"uint256"},{"internalType":"address","name":"upperHint","type":"address"},{"internalType":"address","name":"lowerHint","type":"address"}],"name":"migrateTrove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"originator","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onFlashLoan","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e06040523480156200001157600080fd5b506040516200197238038062001972833981016040819052620000349162000228565b6200003f33620001bf565b6000805460ff60a01b191690556001600160a01b0382811660a081905290821660c081905260405163095ea7b360e01b8152600481019290925260001960248301529063095ea7b3906044016020604051808303816000875af1158015620000ab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000d1919062000267565b5060c05160405163095ea7b360e01b81526001600160a01b03838116600483015260001960248301529091169063095ea7b3906044016020604051808303816000875af115801562000127573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200014d919062000267565b50806001600160a01b0316634ba4a28b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200018d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001b3919062000292565b60805250620002ac9050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146200022557600080fd5b50565b600080604083850312156200023c57600080fd5b825162000249816200020f565b60208401519092506200025c816200020f565b809150509250929050565b6000602082840312156200027a57600080fd5b815180151581146200028b57600080fd5b9392505050565b600060208284031215620002a557600080fd5b5051919050565b60805160a05160c0516116576200031b600039600081816102e80152818161031f01528181610a7a0152610aaa0152600081816102440152818161048a01528181610532015281816106e40152818161077601526109d30152600081816101490152610acb01526116576000f3fe6080604052600436106100e15760003560e01c80638980f11f1161007f578063c3d3148711610059578063c3d3148714610266578063e692669314610286578063f2fde38b146102b6578063f8d89898146102d657600080fd5b80638980f11f146101e05780638da5cb5b14610200578063b913c28b1461023257600080fd5b80635c975abb116100bb5780635c975abb1461016b578063715018a6146101965780638456cb59146101ab57806385617d58146101c057600080fd5b806323e30c8b146100ed5780633f4ba83a146101205780634ba4a28b1461013757600080fd5b366100e857005b600080fd5b3480156100f957600080fd5b5061010d610108366004611271565b61030a565b6040519081526020015b60405180910390f35b34801561012c57600080fd5b5061013561067e565b005b34801561014357600080fd5b5061010d7f000000000000000000000000000000000000000000000000000000000000000081565b34801561017757600080fd5b50600054600160a01b900460ff165b6040519015158152602001610117565b3480156101a257600080fd5b50610135610698565b3480156101b757600080fd5b506101356106aa565b3480156101cc57600080fd5b506101356101db36600461131b565b6106c2565b3480156101ec57600080fd5b506101356101fb366004611383565b610c17565b34801561020c57600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610117565b34801561023e57600080fd5b5061021a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561027257600080fd5b506101356102813660046113af565b610c7a565b34801561029257600080fd5b506101866102a13660046113c8565b60016020526000908152604090205460ff1681565b3480156102c257600080fd5b506101356102d13660046113c8565b610d48565b3480156102e257600080fd5b5061021a7f000000000000000000000000000000000000000000000000000000000000000081565b6000610314610dc1565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461037e5760405162461bcd60e51b815260206004820152600a60248201526910a232b13a2a37b5b2b760b11b60448201526064015b60405180910390fd5b6001600160a01b03871630146103bf5760405162461bcd60e51b8152600401610375906020808252600490820152630215a61760e41b604082015260600190565b6000808080808080806103d48a8c018c6113ec565b9750975097509750975097509750975060008c8e6103f29190611499565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038b16906370a0823190602401602060405180830381865afa15801561043c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046091906114b2565b6040516317d5218560e21b81526001600160a01b038a811660048301528b811660248301529192507f000000000000000000000000000000000000000000000000000000000000000090911690635f54861490604401600060405180830381600087803b1580156104d057600080fd5b505af11580156104e4573d6000803e3d6000fd5b50506040516311c61ad360e01b81526001600160a01b038a811660048301528c81166024830152604482018a9052606482018990526084820186905287811660a483015286811660c48301527f00000000000000000000000000000000000000000000000000000000000000001692506311c61ad3915060e401600060405180830381600087803b15801561057857600080fd5b505af115801561058c573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201528392506001600160a01b038d1691506370a0823190602401602060405180830381865afa1580156105d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fa91906114b2565b146106475760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964206d6967726174696f6e20616d6f756e7400000000000000006044820152606401610375565b7f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd99a50505050505050505050509695505050505050565b610686610e0e565b61068e610e5e565b610696610eb8565b565b6106a0610e5e565b6106966000610f0d565b6106b2610dc1565b6106ba610e5e565b610696610f5d565b60405163568d6fe560e01b81526001600160a01b0386811660048301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063568d6fe5906024016040805180830381865afa15801561072c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075091906114cb565b5060405163568d6fe560e01b81526001600160a01b0387811660048301529192506000917f0000000000000000000000000000000000000000000000000000000000000000169063568d6fe5906024016040805180830381865afa1580156107bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e091906114cb565b5090506001600160a01b0382166108265760405162461bcd60e51b815260206004820152600a602482015269496e76616c696420544d60b01b6044820152606401610375565b866001600160a01b0316866001600160a01b0316036108875760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74206d69677261746520746f2073616d6520544d000000000000006044820152606401610375565b806001600160a01b0316826001600160a01b0316146108e85760405162461bcd60e51b815260206004820152601760248201527f4d6967726174696f6e206e6f7420737570706f727465640000000000000000006044820152606401610375565b50604051630acacaeb60e21b815233600482015260009081906001600160a01b03891690632b2b2bac906024016040805180830381865afa158015610931573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610955919061150c565b915091506000811161099c5760405162461bcd60e51b815260206004820152601060248201526f54726f7665206e6f742061637469766560801b6044820152606401610375565b6001600160a01b03831660009081526001602052604090205460ff16610a785760405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152600019602483015284169063095ea7b3906044016020604051808303816000875af1158015610a2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a509190611530565b506001600160a01b0383166000908152600160208190526040909120805460ff191690911790555b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635cffe9de307f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000085610af59190611552565b604080516001600160a01b03808b1660208301523392820192909252818f166060820152818e16608082015260a081018d905260c08101899052818c1660e0820152908a16610100820152610120016040516020818303038152906040526040518563ffffffff1660e01b8152600401610b7294939291906115b5565b6020604051808303816000875af1158015610b91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb59190611530565b50604080513381526001600160a01b038a81166020830152891681830152606081018490526080810183905290517f232db5e9ef053b14d697abc8acc98aec4ef5b168ec7f5cab73b63f37d743d01d9181900360a00190a15050505050505050565b610c1f610e5e565b610c336001600160a01b0383163383610fa0565b604080516001600160a01b0384168152602081018390527f2178cd1256ad9200080414ad733212aa6401e6a74954264b7654e671db074f5691015b60405180910390a15050565b610c82610e5e565b600080546040516001600160a01b039091169083908381818185875af1925050503d8060008114610ccf576040519150601f19603f3d011682016040523d82523d6000602084013e610cd4565b606091505b5050905080610d185760405162461bcd60e51b815260206004820152601060248201526f24b73b30b634b2103a3930b739b332b960811b6044820152606401610375565b6040518281527f040130779a9eeca4469ba7b0c5223a65f424ea2a23f9b9ee336afd7905ef68b490602001610c6e565b610d50610e5e565b6001600160a01b038116610db55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610375565b610dbe81610f0d565b50565b600054600160a01b900460ff16156106965760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610375565b600054600160a01b900460ff166106965760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610375565b6000546001600160a01b031633146106965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610375565b610ec0610e0e565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610f65610dc1565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610ef03390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610ff2908490610ff7565b505050565b600061104c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110cc9092919063ffffffff16565b905080516000148061106d57508080602001905181019061106d9190611530565b610ff25760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610375565b60606110db84846000856110e3565b949350505050565b6060824710156111445760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610375565b600080866001600160a01b0316858760405161116091906115f2565b60006040518083038185875af1925050503d806000811461119d576040519150601f19603f3d011682016040523d82523d6000602084013e6111a2565b606091505b50915091506111b3878383876111be565b979650505050505050565b6060831561122d578251600003611226576001600160a01b0385163b6112265760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610375565b50816110db565b6110db83838151156112425781518083602001fd5b8060405162461bcd60e51b8152600401610375919061160e565b6001600160a01b0381168114610dbe57600080fd5b60008060008060008060a0878903121561128a57600080fd5b86356112958161125c565b955060208701356112a58161125c565b94506040870135935060608701359250608087013567ffffffffffffffff808211156112d057600080fd5b818901915089601f8301126112e457600080fd5b8135818111156112f357600080fd5b8a602082850101111561130557600080fd5b6020830194508093505050509295509295509295565b600080600080600060a0868803121561133357600080fd5b853561133e8161125c565b9450602086013561134e8161125c565b93506040860135925060608601356113658161125c565b915060808601356113758161125c565b809150509295509295909350565b6000806040838503121561139657600080fd5b82356113a18161125c565b946020939093013593505050565b6000602082840312156113c157600080fd5b5035919050565b6000602082840312156113da57600080fd5b81356113e58161125c565b9392505050565b600080600080600080600080610100898b03121561140957600080fd5b88356114148161125c565b975060208901356114248161125c565b965060408901356114348161125c565b955060608901356114448161125c565b94506080890135935060a0890135925060c08901356114628161125c565b915060e08901356114728161125c565b809150509295985092959890939650565b634e487b7160e01b600052601160045260246000fd5b808201808211156114ac576114ac611483565b92915050565b6000602082840312156114c457600080fd5b5051919050565b600080604083850312156114de57600080fd5b82516114e98161125c565b602084015190925061ffff8116811461150157600080fd5b809150509250929050565b6000806040838503121561151f57600080fd5b505080516020909101519092909150565b60006020828403121561154257600080fd5b815180151581146113e557600080fd5b818103818111156114ac576114ac611483565b60005b83811015611580578181015183820152602001611568565b50506000910152565b600081518084526115a1816020860160208601611565565b601f01601f19169290920160200192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906115e890830184611589565b9695505050505050565b60008251611604818460208701611565565b9190910192915050565b6020815260006113e5602083018461158956fea264697066735822122086d23c250d89e06227d4ac087306a16e2e1ae561133e70650049403ce3bcf1db64736f6c6343000813003300000000000000000000000072c590349535ad52e6953744cb2a36b4095427190000000000000000000000004591dbff62656e7859afe5e45f6f47d3669fbb28
Deployed Bytecode
0x6080604052600436106100e15760003560e01c80638980f11f1161007f578063c3d3148711610059578063c3d3148714610266578063e692669314610286578063f2fde38b146102b6578063f8d89898146102d657600080fd5b80638980f11f146101e05780638da5cb5b14610200578063b913c28b1461023257600080fd5b80635c975abb116100bb5780635c975abb1461016b578063715018a6146101965780638456cb59146101ab57806385617d58146101c057600080fd5b806323e30c8b146100ed5780633f4ba83a146101205780634ba4a28b1461013757600080fd5b366100e857005b600080fd5b3480156100f957600080fd5b5061010d610108366004611271565b61030a565b6040519081526020015b60405180910390f35b34801561012c57600080fd5b5061013561067e565b005b34801561014357600080fd5b5061010d7f00000000000000000000000000000000000000000000000ad78ebc5ac620000081565b34801561017757600080fd5b50600054600160a01b900460ff165b6040519015158152602001610117565b3480156101a257600080fd5b50610135610698565b3480156101b757600080fd5b506101356106aa565b3480156101cc57600080fd5b506101356101db36600461131b565b6106c2565b3480156101ec57600080fd5b506101356101fb366004611383565b610c17565b34801561020c57600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610117565b34801561023e57600080fd5b5061021a7f00000000000000000000000072c590349535ad52e6953744cb2a36b40954271981565b34801561027257600080fd5b506101356102813660046113af565b610c7a565b34801561029257600080fd5b506101866102a13660046113c8565b60016020526000908152604090205460ff1681565b3480156102c257600080fd5b506101356102d13660046113c8565b610d48565b3480156102e257600080fd5b5061021a7f0000000000000000000000004591dbff62656e7859afe5e45f6f47d3669fbb2881565b6000610314610dc1565b336001600160a01b037f0000000000000000000000004591dbff62656e7859afe5e45f6f47d3669fbb28161461037e5760405162461bcd60e51b815260206004820152600a60248201526910a232b13a2a37b5b2b760b11b60448201526064015b60405180910390fd5b6001600160a01b03871630146103bf5760405162461bcd60e51b8152600401610375906020808252600490820152630215a61760e41b604082015260600190565b6000808080808080806103d48a8c018c6113ec565b9750975097509750975097509750975060008c8e6103f29190611499565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038b16906370a0823190602401602060405180830381865afa15801561043c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046091906114b2565b6040516317d5218560e21b81526001600160a01b038a811660048301528b811660248301529192507f00000000000000000000000072c590349535ad52e6953744cb2a36b40954271990911690635f54861490604401600060405180830381600087803b1580156104d057600080fd5b505af11580156104e4573d6000803e3d6000fd5b50506040516311c61ad360e01b81526001600160a01b038a811660048301528c81166024830152604482018a9052606482018990526084820186905287811660a483015286811660c48301527f00000000000000000000000072c590349535ad52e6953744cb2a36b4095427191692506311c61ad3915060e401600060405180830381600087803b15801561057857600080fd5b505af115801561058c573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201528392506001600160a01b038d1691506370a0823190602401602060405180830381865afa1580156105d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fa91906114b2565b146106475760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964206d6967726174696f6e20616d6f756e7400000000000000006044820152606401610375565b7f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd99a50505050505050505050509695505050505050565b610686610e0e565b61068e610e5e565b610696610eb8565b565b6106a0610e5e565b6106966000610f0d565b6106b2610dc1565b6106ba610e5e565b610696610f5d565b60405163568d6fe560e01b81526001600160a01b0386811660048301526000917f00000000000000000000000072c590349535ad52e6953744cb2a36b4095427199091169063568d6fe5906024016040805180830381865afa15801561072c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075091906114cb565b5060405163568d6fe560e01b81526001600160a01b0387811660048301529192506000917f00000000000000000000000072c590349535ad52e6953744cb2a36b409542719169063568d6fe5906024016040805180830381865afa1580156107bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e091906114cb565b5090506001600160a01b0382166108265760405162461bcd60e51b815260206004820152600a602482015269496e76616c696420544d60b01b6044820152606401610375565b866001600160a01b0316866001600160a01b0316036108875760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74206d69677261746520746f2073616d6520544d000000000000006044820152606401610375565b806001600160a01b0316826001600160a01b0316146108e85760405162461bcd60e51b815260206004820152601760248201527f4d6967726174696f6e206e6f7420737570706f727465640000000000000000006044820152606401610375565b50604051630acacaeb60e21b815233600482015260009081906001600160a01b03891690632b2b2bac906024016040805180830381865afa158015610931573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610955919061150c565b915091506000811161099c5760405162461bcd60e51b815260206004820152601060248201526f54726f7665206e6f742061637469766560801b6044820152606401610375565b6001600160a01b03831660009081526001602052604090205460ff16610a785760405163095ea7b360e01b81526001600160a01b037f00000000000000000000000072c590349535ad52e6953744cb2a36b40954271981166004830152600019602483015284169063095ea7b3906044016020604051808303816000875af1158015610a2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a509190611530565b506001600160a01b0383166000908152600160208190526040909120805460ff191690911790555b7f0000000000000000000000004591dbff62656e7859afe5e45f6f47d3669fbb286001600160a01b0316635cffe9de307f0000000000000000000000004591dbff62656e7859afe5e45f6f47d3669fbb287f00000000000000000000000000000000000000000000000ad78ebc5ac620000085610af59190611552565b604080516001600160a01b03808b1660208301523392820192909252818f166060820152818e16608082015260a081018d905260c08101899052818c1660e0820152908a16610100820152610120016040516020818303038152906040526040518563ffffffff1660e01b8152600401610b7294939291906115b5565b6020604051808303816000875af1158015610b91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb59190611530565b50604080513381526001600160a01b038a81166020830152891681830152606081018490526080810183905290517f232db5e9ef053b14d697abc8acc98aec4ef5b168ec7f5cab73b63f37d743d01d9181900360a00190a15050505050505050565b610c1f610e5e565b610c336001600160a01b0383163383610fa0565b604080516001600160a01b0384168152602081018390527f2178cd1256ad9200080414ad733212aa6401e6a74954264b7654e671db074f5691015b60405180910390a15050565b610c82610e5e565b600080546040516001600160a01b039091169083908381818185875af1925050503d8060008114610ccf576040519150601f19603f3d011682016040523d82523d6000602084013e610cd4565b606091505b5050905080610d185760405162461bcd60e51b815260206004820152601060248201526f24b73b30b634b2103a3930b739b332b960811b6044820152606401610375565b6040518281527f040130779a9eeca4469ba7b0c5223a65f424ea2a23f9b9ee336afd7905ef68b490602001610c6e565b610d50610e5e565b6001600160a01b038116610db55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610375565b610dbe81610f0d565b50565b600054600160a01b900460ff16156106965760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610375565b600054600160a01b900460ff166106965760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610375565b6000546001600160a01b031633146106965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610375565b610ec0610e0e565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610f65610dc1565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610ef03390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610ff2908490610ff7565b505050565b600061104c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110cc9092919063ffffffff16565b905080516000148061106d57508080602001905181019061106d9190611530565b610ff25760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610375565b60606110db84846000856110e3565b949350505050565b6060824710156111445760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610375565b600080866001600160a01b0316858760405161116091906115f2565b60006040518083038185875af1925050503d806000811461119d576040519150601f19603f3d011682016040523d82523d6000602084013e6111a2565b606091505b50915091506111b3878383876111be565b979650505050505050565b6060831561122d578251600003611226576001600160a01b0385163b6112265760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610375565b50816110db565b6110db83838151156112425781518083602001fd5b8060405162461bcd60e51b8152600401610375919061160e565b6001600160a01b0381168114610dbe57600080fd5b60008060008060008060a0878903121561128a57600080fd5b86356112958161125c565b955060208701356112a58161125c565b94506040870135935060608701359250608087013567ffffffffffffffff808211156112d057600080fd5b818901915089601f8301126112e457600080fd5b8135818111156112f357600080fd5b8a602082850101111561130557600080fd5b6020830194508093505050509295509295509295565b600080600080600060a0868803121561133357600080fd5b853561133e8161125c565b9450602086013561134e8161125c565b93506040860135925060608601356113658161125c565b915060808601356113758161125c565b809150509295509295909350565b6000806040838503121561139657600080fd5b82356113a18161125c565b946020939093013593505050565b6000602082840312156113c157600080fd5b5035919050565b6000602082840312156113da57600080fd5b81356113e58161125c565b9392505050565b600080600080600080600080610100898b03121561140957600080fd5b88356114148161125c565b975060208901356114248161125c565b965060408901356114348161125c565b955060608901356114448161125c565b94506080890135935060a0890135925060c08901356114628161125c565b915060e08901356114728161125c565b809150509295985092959890939650565b634e487b7160e01b600052601160045260246000fd5b808201808211156114ac576114ac611483565b92915050565b6000602082840312156114c457600080fd5b5051919050565b600080604083850312156114de57600080fd5b82516114e98161125c565b602084015190925061ffff8116811461150157600080fd5b809150509250929050565b6000806040838503121561151f57600080fd5b505080516020909101519092909150565b60006020828403121561154257600080fd5b815180151581146113e557600080fd5b818103818111156114ac576114ac611483565b60005b83811015611580578181015183820152602001611568565b50506000910152565b600081518084526115a1816020860160208601611565565b601f01601f19169290920160200192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906115e890830184611589565b9695505050505050565b60008251611604818460208701611565565b9190910192915050565b6020815260006113e5602083018461158956fea264697066735822122086d23c250d89e06227d4ac087306a16e2e1ae561133e70650049403ce3bcf1db64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000072c590349535ad52e6953744cb2a36b4095427190000000000000000000000004591dbff62656e7859afe5e45f6f47d3669fbb28
-----Decoded View---------------
Arg [0] : _borrowerOps (address): 0x72c590349535AD52e6953744cb2A36B409542719
Arg [1] : _debtToken (address): 0x4591DBfF62656E7859Afe5e45f6f47D3669fBB28
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000072c590349535ad52e6953744cb2a36b409542719
Arg [1] : 0000000000000000000000004591dbff62656e7859afe5e45f6f47d3669fbb28
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.