Source Code
Latest 23 from a total of 23 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Accept And Claim... | 23654205 | 139 days ago | IN | 0 ETH | 0.00000691 | ||||
| Accept And Claim... | 23543533 | 155 days ago | IN | 0 ETH | 0.00000826 | ||||
| Accept And Claim... | 23543528 | 155 days ago | IN | 0 ETH | 0.0000103 | ||||
| Accept And Claim... | 23539334 | 155 days ago | IN | 0 ETH | 0.00002324 | ||||
| Accept And Claim... | 23531096 | 156 days ago | IN | 0 ETH | 0.00000999 | ||||
| Accept And Claim... | 23531093 | 156 days ago | IN | 0 ETH | 0.00000989 | ||||
| Accept And Claim... | 23529202 | 157 days ago | IN | 0 ETH | 0.00000732 | ||||
| Accept And Claim... | 23529199 | 157 days ago | IN | 0 ETH | 0.00001084 | ||||
| Accept And Claim... | 23523915 | 157 days ago | IN | 0 ETH | 0.00006968 | ||||
| Accept And Claim... | 23523228 | 158 days ago | IN | 0 ETH | 0.00008658 | ||||
| Accept And Claim... | 23520400 | 158 days ago | IN | 0 ETH | 0.00022671 | ||||
| Accept And Claim... | 23518613 | 158 days ago | IN | 0 ETH | 0.00010859 | ||||
| Accept And Claim... | 23518568 | 158 days ago | IN | 0 ETH | 0.00010401 | ||||
| Accept And Claim... | 23518443 | 158 days ago | IN | 0 ETH | 0.00010038 | ||||
| Accept And Claim... | 23481597 | 163 days ago | IN | 0 ETH | 0.0000096 | ||||
| Accept And Claim... | 23478753 | 164 days ago | IN | 0 ETH | 0.00009524 | ||||
| Accept And Claim... | 23476914 | 164 days ago | IN | 0 ETH | 0.00007106 | ||||
| Accept And Claim... | 23476296 | 164 days ago | IN | 0 ETH | 0.00009515 | ||||
| Accept And Claim... | 23475242 | 164 days ago | IN | 0 ETH | 0.00004829 | ||||
| Accept And Claim... | 23475206 | 164 days ago | IN | 0 ETH | 0.00011868 | ||||
| Accept And Claim... | 23475165 | 164 days ago | IN | 0 ETH | 0.00004613 | ||||
| Accept And Claim... | 23475147 | 164 days ago | IN | 0 ETH | 0.00012255 | ||||
| Accept And Claim... | 23473765 | 164 days ago | IN | 0 ETH | 0.00009562 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
WildcatRepayment
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 200 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
/**
* @title WildcatRepayment
* @notice A contract that holds all the positions from Wildcat lenders so they can recover a portion of their principal as estipulated.
* @dev This contract is owned by the Kinto foundation.
*/
contract WildcatRepayment is Ownable, ReentrancyGuard {
using SafeERC20 for IERC20;
/* ============ Struct ============ */
struct UserInfo {
uint256 firstClaim; // 1e6 USDC
uint256 secondClaim; // 1e6 USDC
bool claimedFirst;
bool claimedSecond;
}
/* ============ Events ============ */
event ClaimedFirst(address indexed user, uint256 amount);
event ClaimedSecond(address indexed user, uint256 amount);
event EmergencyRecovered(uint256 amount);
/* ============ State Variables ============ */
IERC20 public constant USDC = IERC20(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48);
address public constant OWNER = 0x2E7111Ef34D39b36EC84C656b947CA746e495Ff6;
bool public secondPeriodOpen = false;
mapping(address => UserInfo) public userInfos;
/* ============ Constructor ============ */
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() {
userInfos[0x5b1b1Ef66214fe163B602FC5B81903906A786211] =
UserInfo({firstClaim: 250000000000, secondClaim: 130000000000, claimedFirst: false, claimedSecond: false});
userInfos[0x4086f688855dcAe061e7f68fc181566FFfa856eA] =
UserInfo({firstClaim: 100396500000, secondClaim: 52206180000, claimedFirst: false, claimedSecond: false});
userInfos[0xE1f8aFc92644Bfe77080D7DCb0f936F578E00F53] =
UserInfo({firstClaim: 9300000000, secondClaim: 4836000000, claimedFirst: false, claimedSecond: false});
userInfos[0x3a00568BAb4D610C2e97C1AAD1959af4e2AA15a0] =
UserInfo({firstClaim: 4999100130, secondClaim: 2599532068, claimedFirst: false, claimedSecond: false});
userInfos[0xdaE0424Fd265b683EF1a2525aCeBa37d001565B7] =
UserInfo({firstClaim: 4990500000, secondClaim: 2595060000, claimedFirst: false, claimedSecond: false});
userInfos[0xFE10dFDc18789eb5F3a8FE4fE9FBc3e17E075191] =
UserInfo({firstClaim: 1500000000, secondClaim: 780000000, claimedFirst: false, claimedSecond: false});
userInfos[0x702d2f5d52811d08A2211B49a8524355B9AEEe6C] =
UserInfo({firstClaim: 1248500000, secondClaim: 649220000, claimedFirst: false, claimedSecond: false});
userInfos[0xC4293F52633b3603E65e9B4C2B4D4F40EecCA91C] =
UserInfo({firstClaim: 599000000, secondClaim: 311480000, claimedFirst: false, claimedSecond: false});
userInfos[0x5F5F90E8359131daCAec572F5128220362Be1E71] =
UserInfo({firstClaim: 500000000, secondClaim: 260000000, claimedFirst: false, claimedSecond: false});
userInfos[0x660ad4B5A74130a4796B4d54BC6750Ae93C86e6c] =
UserInfo({firstClaim: 497500000, secondClaim: 258700000, claimedFirst: false, claimedSecond: false});
userInfos[0xd61daEBC28274d1feaAf51F11179cd264e4105fB] =
UserInfo({firstClaim: 444933950, secondClaim: 231365654, claimedFirst: false, claimedSecond: false});
userInfos[0x9194eFdF03174a804f3552F4F7B7A4bB74BaDb7F] =
UserInfo({firstClaim: 250000000, secondClaim: 130000000, claimedFirst: false, claimedSecond: false});
userInfos[0xac0BA417f93682CCC27723bbFAD2128bfcff6Dc6] =
UserInfo({firstClaim: 250000000, secondClaim: 130000000, claimedFirst: false, claimedSecond: false});
userInfos[0x5b105130f6E50ECdaD810a6BD29c267ADf57d211] =
UserInfo({firstClaim: 2500, secondClaim: 1300, claimedFirst: false, claimedSecond: false});
_transferOwnership(OWNER);
}
/* ============ Claims============ */
/**
* @notice Accept terms and claims first period
*/
function acceptAndClaimFirst() external nonReentrant {
require(!userInfos[msg.sender].claimedFirst, "Already claimed");
require(userInfos[msg.sender].firstClaim > 0, "Nothing to claim");
userInfos[msg.sender].claimedFirst = true;
USDC.safeTransfer(msg.sender, userInfos[msg.sender].firstClaim);
emit ClaimedFirst(msg.sender, userInfos[msg.sender].firstClaim);
}
/**
* @notice Accepts terms and claims second period
*/
function acceptAndClaimSecond() external nonReentrant {
require(secondPeriodOpen, "Second period not open");
require(!userInfos[msg.sender].claimedSecond, "Already claimed");
require(userInfos[msg.sender].secondClaim > 0, "Nothing to claim");
userInfos[msg.sender].claimedSecond = true;
USDC.safeTransfer(msg.sender, userInfos[msg.sender].secondClaim);
emit ClaimedSecond(msg.sender, userInfos[msg.sender].secondClaim);
}
/* ============ Admin functions ============ */
/**
* @notice Emergency recover by the safe in case of emergency
*/
function emergencyRecover() external onlyOwner nonReentrant {
uint256 amount = USDC.balanceOf(address(this));
USDC.safeTransfer(OWNER, amount);
emit EmergencyRecovered(amount);
}
/**
* @notice Set user info
* @param _user The users to update
* @param _userInfo The info to set
*/
function updateUserInfo(address _user, UserInfo calldata _userInfo) external onlyOwner {
require(!_userInfo.claimedFirst && !_userInfo.claimedSecond, "User immutable");
userInfos[_user] = _userInfo;
}
function startSecondPeriod() external onlyOwner {
secondPeriodOpen = true;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../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/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.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../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 (last updated v4.9.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
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].
*
* CAUTION: See Security Considerations above.
*/
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
// 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.4) (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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}{
"remappings": [
"node_modules/account-abstraction-0.7.0:@openzeppelin/contracts/=node_modules/openzeppelin-contracts-5.0.1/",
"@aa-v7/=node_modules/account-abstraction-0.7.0/contracts/",
"ds-test/=node_modules/forge-std/lib/ds-test/src/",
"forge-std/=node_modules/forge-std/src/",
"@kinto-core-script/=script/",
"@kinto-core-test/=test/",
"@kinto-core/=src/",
"@openzeppelin-5.0.1/contracts/=node_modules/openzeppelin-contracts-5.0.1/",
"node_modules/openzeppelin-contracts-upgradeable-5.0.1:@openzeppelin/contracts/=node_modules/openzeppelin-contracts-5.0.1/",
"@openzeppelin-5.0.1/contracts-upgradeable/=node_modules/openzeppelin-contracts-upgradeable-5.0.1/",
"@openzeppelin/contracts/=node_modules/openzeppelin-contracts/",
"@openzeppelin/contracts-upgradeable/=node_modules/openzeppelin-contracts-upgradeable/",
"node_modules/account-abstraction:@openzeppelin/contracts/=node_modules/openzeppelin-contracts/",
"@aa/=node_modules/account-abstraction/contracts/",
"@solady/=node_modules/solady/src/",
"solady/=node_modules/solady/src/",
"@token-bridge-contracts/=node_modules/token-bridge-contracts/",
"@arbitrum/nitro-contracts/=node_modules/nitro-contracts/",
"@alto/=node_modules/alto/contracts/",
"permit2/=node_modules/permit2/",
"@dk1a/solidity-stringutils/=node_modules/@dk1a/solidity-stringutils/",
"node_modules/@uniswap/v3-periphery:@uniswap/v3-core/=node_modules/@uniswap/v3-core/",
"@uniswap/v3-periphery/=node_modules/@uniswap/v3-periphery/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "cancun",
"viaIR": false
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimedFirst","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimedSecond","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyRecovered","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"},{"inputs":[],"name":"OWNER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptAndClaimFirst","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"acceptAndClaimSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyRecover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"secondPeriodOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startSecondPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"components":[{"internalType":"uint256","name":"firstClaim","type":"uint256"},{"internalType":"uint256","name":"secondClaim","type":"uint256"},{"internalType":"bool","name":"claimedFirst","type":"bool"},{"internalType":"bool","name":"claimedSecond","type":"bool"}],"internalType":"struct WildcatRepayment.UserInfo","name":"_userInfo","type":"tuple"}],"name":"updateUserInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfos","outputs":[{"internalType":"uint256","name":"firstClaim","type":"uint256"},{"internalType":"uint256","name":"secondClaim","type":"uint256"},{"internalType":"bool","name":"claimedFirst","type":"bool"},{"internalType":"bool","name":"claimedSecond","type":"bool"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60806040526002805460ff19169055348015610019575f80fd5b5061002333610ae4565b600180556040805160808082018352643a352944008252641e449a940060208084019182525f8486018181526060808701838152735b1b1ef66214fe163b602fc5b81903906a7862118452600380865297517f98b07497b77841390be1508d071b45cc8426fe2475382df95aeb1575b83bbce85594517f98b07497b77841390be1508d071b45cc8426fe2475382df95aeb1575b83bbce95590517f98b07497b77841390be1508d071b45cc8426fe2475382df95aeb1575b83bbcea80549551151561010090810261ff0019931515841661ffff19988916171790915588518088018a526417601904208152640c27bb16a0818701908152818b01868152828601878152734086f688855dcae061e7f68fc181566fffa856ea88528b895292517f0fe645fd6982afb66b9076ea1976e42c40195b363a82e424f9905997db85211d5590517f0fe645fd6982afb66b9076ea1976e42c40195b363a82e424f9905997db85211e55517f0fe645fd6982afb66b9076ea1976e42c40195b363a82e424f9905997db85211f805492511515840291151585169289169290921717905588518088018a5264022a52bd0081526401203f8100818701908152818b0186815282860187815273e1f8afc92644bfe77080d7dcb0f936f578e00f5388528b895292517f33c42ba92a8f3a1182e129bb007cca36496eec47afa43024bc8c949bb0a36f8a5590517f33c42ba92a8f3a1182e129bb007cca36496eec47afa43024bc8c949bb0a36f8b55517f33c42ba92a8f3a1182e129bb007cca36496eec47afa43024bc8c949bb0a36f8c805492511515840291151585169289169290921717905588518088018a52640129f836e28152639af1b624818701908152818b01868152828601878152733a00568bab4d610c2e97c1aad1959af4e2aa15a088528b895292517f39dba4eb7ee05028e01a45cf98a713cb6b31428a20b70812eb25cf9e98839ac35590517f39dba4eb7ee05028e01a45cf98a713cb6b31428a20b70812eb25cf9e98839ac455517f39dba4eb7ee05028e01a45cf98a713cb6b31428a20b70812eb25cf9e98839ac5805492511515840291151585169289169290921717905588518088018a5264012974fca08152639aad7920818701908152818b0186815282860187815273dae0424fd265b683ef1a2525aceba37d001565b788528b895292517f3456b57e9a2516c9aaf9e146bfb6dbe2016e624e37db162be36e93063b2512f95590517f3456b57e9a2516c9aaf9e146bfb6dbe2016e624e37db162be36e93063b2512fa55517f3456b57e9a2516c9aaf9e146bfb6dbe2016e624e37db162be36e93063b2512fb805492511515840291151585169289169290921717905588518088018a526359682f008152632e7ddb00818701908152818b0186815282860187815273fe10dfdc18789eb5f3a8fe4fe9fbc3e17e07519188528b895292517fb537f7ddca4ae9eb73b5cdc082f18a634f6e909fbb158502345c28de793cfd9e5590517fb537f7ddca4ae9eb73b5cdc082f18a634f6e909fbb158502345c28de793cfd9f55517fb537f7ddca4ae9eb73b5cdc082f18a634f6e909fbb158502345c28de793cfda0805492511515840291151585169289169290921717905588518088018a52634a6a992081526326b24fa0818701908152818b0186815282860187815273702d2f5d52811d08a2211b49a8524355b9aeee6c88528b895292517fa1f4674d761cfe2d0b4ccc8d3bee320abecca254b8afa2630c1dfd323fb89b955590517fa1f4674d761cfe2d0b4ccc8d3bee320abecca254b8afa2630c1dfd323fb89b9655517fa1f4674d761cfe2d0b4ccc8d3bee320abecca254b8afa2630c1dfd323fb89b97805492511515840291151585169289169290921717905588518088018a526323b403c08152631290cec0818701908152818b0186815282860187815273c4293f52633b3603e65e9b4c2b4d4f40eecca91c88528b895292517f953ac61bbd0bd28a5bf15b1d7ced55d7e9d54c2d84c471710e7bbea3581505a95590517f953ac61bbd0bd28a5bf15b1d7ced55d7e9d54c2d84c471710e7bbea3581505aa55517f953ac61bbd0bd28a5bf15b1d7ced55d7e9d54c2d84c471710e7bbea3581505ab805492511515840291151585169289169290921717905588518088018a52631dcd65008152630f7f4900818701908152818b01868152828601878152735f5f90e8359131dacaec572f5128220362be1e7188528b895292517f9f8ab6d4ceaf88ed85b43cc2e3859e1cbf798ccf800d4e3cca908948476cc0605590517f9f8ab6d4ceaf88ed85b43cc2e3859e1cbf798ccf800d4e3cca908948476cc06155517f9f8ab6d4ceaf88ed85b43cc2e3859e1cbf798ccf800d4e3cca908948476cc062805492511515840291151585169289169290921717905588518088018a52631da73f608152630f6b72e0818701908152818b0186815282860187815273660ad4b5a74130a4796b4d54bc6750ae93c86e6c88528b895292517f720b2c022621cbd0c84fdfafaa976ada5e8b8e1e74bb16ccb4378eb49345e6a55590517f720b2c022621cbd0c84fdfafaa976ada5e8b8e1e74bb16ccb4378eb49345e6a655517f720b2c022621cbd0c84fdfafaa976ada5e8b8e1e74bb16ccb4378eb49345e6a7805492511515840291151585169289169290921717905588518088018a52631a85273e8152630dca5c16818701908152818b0186815282860187815273d61daebc28274d1feaaf51f11179cd264e4105fb88528b895292517f0211825bfb2e17ea50f7ef1cd6478de02d58b5bb064575a76a77e2e1145c51995590517f0211825bfb2e17ea50f7ef1cd6478de02d58b5bb064575a76a77e2e1145c519a55517f0211825bfb2e17ea50f7ef1cd6478de02d58b5bb064575a76a77e2e1145c519b805492511515840291151585169289169290921717905588518088018a52630ee6b2808082526307bfa480828801818152838d01888152848801898152739194efdf03174a804f3552f4f7b7a4bb74badb7f8a528d8b5294517ffbadd8f963a70195016a168ef971997507757bfc8d21393826caa34d48697d835590517ffbadd8f963a70195016a168ef971997507757bfc8d21393826caa34d48697d8455517ffbadd8f963a70195016a168ef971997507757bfc8d21393826caa34d48697d8580549451151586029115158716948b1694909417179092558a51808a018c52908152808701918252808b0186815281860187815273ac0ba417f93682ccc27723bbfad2128bfcff6dc688528b895291517ff8865e71ba890481b27ebaa8240bda0bb0800360e150a8ddf06908cfe6741a685591517ff8865e71ba890481b27ebaa8240bda0bb0800360e150a8ddf06908cfe6741a695590517ff8865e71ba890481b27ebaa8240bda0bb0800360e150a8ddf06908cfe6741a6a8054925115158402911515851692891692909217179055885196870189526109c48752610514878601908152988701848152928701848152735b105130f6e50ecdad810a6bd29c267adf57d2119094529690935293517ffdc6abb11442e393e2d0793dc2c7b4e0609f171da522a01f64e50afa708409965594517ffdc6abb11442e393e2d0793dc2c7b4e0609f171da522a01f64e50afa708409975591517ffdc6abb11442e393e2d0793dc2c7b4e0609f171da522a01f64e50afa70840998805495511515909402901515909216931692909217919091179055610adf732e7111ef34d39b36ec84c656b947ca746e495ff6610ae4565b610b33565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610c4f80610b405f395ff3fe608060405234801561000f575f80fd5b50600436106100b1575f3560e01c80638da5cb5b1161006e5780638da5cb5b1461018f5780639e5ccf641461019f578063bc8a89a9146101bc578063f2fde38b146101c4578063f59f1b1a146101d7578063f968514f146101df575f80fd5b8063117803e3146100b55780631b992218146100ed57806343b0215f146100f7578063715018a614610159578063819dda931461016157806389a3027114610174575b5f80fd5b6100d0732e7111ef34d39b36ec84c656b947ca746e495ff681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100f56101e7565b005b610131610105366004610aa2565b60036020525f908152604090208054600182015460029092015490919060ff8082169161010090041684565b60408051948552602085019390935290151591830191909152151560608201526080016100e4565b6100f56102de565b6100f561016f366004610ac2565b6102ef565b6100d073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b5f546001600160a01b03166100d0565b6002546101ac9060ff1681565b60405190151581526020016100e4565b6100f561038c565b6100f56101d2366004610aa2565b6103a3565b6100f561041c565b6100f5610550565b6101ef6106d2565b6101f761072b565b6040516370a0823160e01b81523060048201525f9073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48906370a0823190602401602060405180830381865afa158015610246573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061026a9190610afe565b905061029f73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48732e7111ef34d39b36ec84c656b947ca746e495ff683610784565b6040518181527f1010ac54e8c5565ea52205d406de8d8a2fc6886f41ae0c855d68ee076b5615aa9060200160405180910390a1506102dc60018055565b565b6102e66106d2565b6102dc5f6107db565b6102f76106d2565b6103076060820160408301610b22565b158015610321575061031f6080820160608301610b22565b155b6103635760405162461bcd60e51b815260206004820152600e60248201526d5573657220696d6d757461626c6560901b60448201526064015b60405180910390fd5b6001600160a01b0382165f90815260036020526040902081906103868282610b3d565b50505050565b6103946106d2565b6002805460ff19166001179055565b6103ab6106d2565b6001600160a01b0381166104105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161035a565b610419816107db565b50565b61042461072b565b335f9081526003602052604090206002015460ff16156104785760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b604482015260640161035a565b335f908152600360205260409020546104c65760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b604482015260640161035a565b335f81815260036020526040902060028101805460ff19166001179055546105039173a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4891610784565b335f818152600360209081526040918290205491519182527fb045ea2a39a211a4843b84c4f4f812e2370cb648ce9aa128c5e032ae8348bcb291015b60405180910390a26102dc60018055565b61055861072b565b60025460ff166105a35760405162461bcd60e51b815260206004820152601660248201527529b2b1b7b732103832b934b7b2103737ba1037b832b760511b604482015260640161035a565b335f90815260036020526040902060020154610100900460ff16156105fc5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b604482015260640161035a565b335f9081526003602052604090206001015461064d5760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b604482015260640161035a565b335f81815260036020526040902060028101805461ff0019166101001790556001015461068f9173a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4891610784565b335f818152600360209081526040918290206001015491519182527fb561778fbfdfd190e3c356e9fcc99f699ac1a3e4c2ed3c4ee99a88d11d89c2e2910161053f565b5f546001600160a01b031633146102dc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161035a565b60026001540361077d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161035a565b6002600155565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526107d690849061082a565b505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f61087e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108fd9092919063ffffffff16565b905080515f148061089e57508080602001905181019061089e9190610b8f565b6107d65760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161035a565b606061090b84845f85610913565b949350505050565b6060824710156109745760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161035a565b5f80866001600160a01b0316858760405161098f9190610bcc565b5f6040518083038185875af1925050503d805f81146109c9576040519150601f19603f3d011682016040523d82523d5f602084013e6109ce565b606091505b50915091506109df878383876109ea565b979650505050505050565b60608315610a585782515f03610a51576001600160a01b0385163b610a515760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161035a565b508161090b565b61090b8383815115610a6d5781518083602001fd5b8060405162461bcd60e51b815260040161035a9190610be7565b80356001600160a01b0381168114610a9d575f80fd5b919050565b5f60208284031215610ab2575f80fd5b610abb82610a87565b9392505050565b5f8082840360a0811215610ad4575f80fd5b610add84610a87565b92506080601f1982011215610af0575f80fd5b506020830190509250929050565b5f60208284031215610b0e575f80fd5b5051919050565b8015158114610419575f80fd5b5f60208284031215610b32575f80fd5b8135610abb81610b15565b8135815560208201356001820155600281016040830135610b5d81610b15565b81546060850135610b6d81610b15565b61ff0081151560081b1660ff8415151661ffff19841617178455505050505050565b5f60208284031215610b9f575f80fd5b8151610abb81610b15565b5f5b83811015610bc4578181015183820152602001610bac565b50505f910152565b5f8251610bdd818460208701610baa565b9190910192915050565b602081525f8251806020840152610c05816040850160208701610baa565b601f01601f1916919091016040019291505056fea2646970667358221220327496f04dce26a2ce8238c104fa0d218e03ac4f77f74014778178ad02b9d5a364736f6c63430008180033
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106100b1575f3560e01c80638da5cb5b1161006e5780638da5cb5b1461018f5780639e5ccf641461019f578063bc8a89a9146101bc578063f2fde38b146101c4578063f59f1b1a146101d7578063f968514f146101df575f80fd5b8063117803e3146100b55780631b992218146100ed57806343b0215f146100f7578063715018a614610159578063819dda931461016157806389a3027114610174575b5f80fd5b6100d0732e7111ef34d39b36ec84c656b947ca746e495ff681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100f56101e7565b005b610131610105366004610aa2565b60036020525f908152604090208054600182015460029092015490919060ff8082169161010090041684565b60408051948552602085019390935290151591830191909152151560608201526080016100e4565b6100f56102de565b6100f561016f366004610ac2565b6102ef565b6100d073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b5f546001600160a01b03166100d0565b6002546101ac9060ff1681565b60405190151581526020016100e4565b6100f561038c565b6100f56101d2366004610aa2565b6103a3565b6100f561041c565b6100f5610550565b6101ef6106d2565b6101f761072b565b6040516370a0823160e01b81523060048201525f9073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48906370a0823190602401602060405180830381865afa158015610246573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061026a9190610afe565b905061029f73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48732e7111ef34d39b36ec84c656b947ca746e495ff683610784565b6040518181527f1010ac54e8c5565ea52205d406de8d8a2fc6886f41ae0c855d68ee076b5615aa9060200160405180910390a1506102dc60018055565b565b6102e66106d2565b6102dc5f6107db565b6102f76106d2565b6103076060820160408301610b22565b158015610321575061031f6080820160608301610b22565b155b6103635760405162461bcd60e51b815260206004820152600e60248201526d5573657220696d6d757461626c6560901b60448201526064015b60405180910390fd5b6001600160a01b0382165f90815260036020526040902081906103868282610b3d565b50505050565b6103946106d2565b6002805460ff19166001179055565b6103ab6106d2565b6001600160a01b0381166104105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161035a565b610419816107db565b50565b61042461072b565b335f9081526003602052604090206002015460ff16156104785760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b604482015260640161035a565b335f908152600360205260409020546104c65760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b604482015260640161035a565b335f81815260036020526040902060028101805460ff19166001179055546105039173a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4891610784565b335f818152600360209081526040918290205491519182527fb045ea2a39a211a4843b84c4f4f812e2370cb648ce9aa128c5e032ae8348bcb291015b60405180910390a26102dc60018055565b61055861072b565b60025460ff166105a35760405162461bcd60e51b815260206004820152601660248201527529b2b1b7b732103832b934b7b2103737ba1037b832b760511b604482015260640161035a565b335f90815260036020526040902060020154610100900460ff16156105fc5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b604482015260640161035a565b335f9081526003602052604090206001015461064d5760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b604482015260640161035a565b335f81815260036020526040902060028101805461ff0019166101001790556001015461068f9173a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4891610784565b335f818152600360209081526040918290206001015491519182527fb561778fbfdfd190e3c356e9fcc99f699ac1a3e4c2ed3c4ee99a88d11d89c2e2910161053f565b5f546001600160a01b031633146102dc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161035a565b60026001540361077d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161035a565b6002600155565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526107d690849061082a565b505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f61087e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108fd9092919063ffffffff16565b905080515f148061089e57508080602001905181019061089e9190610b8f565b6107d65760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161035a565b606061090b84845f85610913565b949350505050565b6060824710156109745760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161035a565b5f80866001600160a01b0316858760405161098f9190610bcc565b5f6040518083038185875af1925050503d805f81146109c9576040519150601f19603f3d011682016040523d82523d5f602084013e6109ce565b606091505b50915091506109df878383876109ea565b979650505050505050565b60608315610a585782515f03610a51576001600160a01b0385163b610a515760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161035a565b508161090b565b61090b8383815115610a6d5781518083602001fd5b8060405162461bcd60e51b815260040161035a9190610be7565b80356001600160a01b0381168114610a9d575f80fd5b919050565b5f60208284031215610ab2575f80fd5b610abb82610a87565b9392505050565b5f8082840360a0811215610ad4575f80fd5b610add84610a87565b92506080601f1982011215610af0575f80fd5b506020830190509250929050565b5f60208284031215610b0e575f80fd5b5051919050565b8015158114610419575f80fd5b5f60208284031215610b32575f80fd5b8135610abb81610b15565b8135815560208201356001820155600281016040830135610b5d81610b15565b81546060850135610b6d81610b15565b61ff0081151560081b1660ff8415151661ffff19841617178455505050505050565b5f60208284031215610b9f575f80fd5b8151610abb81610b15565b5f5b83811015610bc4578181015183820152602001610bac565b50505f910152565b5f8251610bdd818460208701610baa565b9190910192915050565b602081525f8251806020840152610c05816040850160208701610baa565b601f01601f1916919091016040019291505056fea2646970667358221220327496f04dce26a2ce8238c104fa0d218e03ac4f77f74014778178ad02b9d5a364736f6c63430008180033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.