ERC-20
Source Code
Overview
Max Total Supply
25.515272241992106949 ERC20 ***
Holders
13
Transfers
-
0 (0%)
Market
Onchain Market Cap
-
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
| # | Exchange | Pair | Price | 24H Volume | % Volume |
|---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xC743083F...E0545ae16 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
VirtualToken
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 200 runs
Other Settings:
shanghai EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
/*
Ohf thm
Ohf thm
!LLbhf thkLLi
<hhhhf thhhh~
,((qhLf/ /fLhp((,
\xLhb{{: ,{{dhLx/
|hhhh1IIIIIIIIIIIIIIIIIIII[qqqq)
.,,,,thhbbJvvvvxrrrrrrrrrrrrrrrnvvvv[,,,,.
<hhhhhhkvvvvvvv' lvvvv0hhhh~
<hhhhhhkvvvvt<< ''xv0hhhh~
(Jv<<<<nhkvvvvtii 1UUUU; .UUUUf rv(<<<<uJ|
jj\(] |hkvvvvtii::nhhhh! 'hhhhY rv- ?(\jj
cc~ |hkvvvvj[[>i/UUUUi^^^"UUUUxiinv- <cc
,:fhkvvvvvvv_~~~~~~~~~~~~~~~[vvvv]^^^^.
OhhhkvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvI
fwwwwkhhhkvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvxr[
vvZhhhhhhwCCvvvvvvvvvj|(]]]]]]]]]]]]]]]]]]]]]rvj11
hhhhhhhhhOvvvvvvvvvvv\[{\\\\[lllllllll(\\\(lltvvvv
hhhhhhhhhOvvvvvvvvvvv\[\hhhhclllllllllqhhhwlltvvvvx
hhhhhhhhhOvvvvvvvvvvv\[\hhhhclllllllllqhhhwlltvvvv
hhhhhhhhhOvvvvvvvvvvv\[}||]-~lllllllll_---_lltvCdd
hhhhhhhhhpO0vvvvvvvvvrt/[[_++++llllllllllli))xvLhh
hhhhhhhhhhhkUUUUYvvvvvvn))}[[[[>>>>>>>>>~+]UUUUOhh
hhhhhhhhhhhhhhhhwvvvvvvvvv)[[[[[[[[[[[[[tvXhhhhhhh
"""""""""/hhhhhhhbbbbbbbbbddddddddddddddbbkhh-""""
!11111111111Jhhhhhhhhhhhhhhhhhhhhhhh~
*/
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.20;
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {LaunchPadUtils} from "./Utils/LaunchPadUtils.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
contract VirtualToken is ERC20, Ownable {
using SafeERC20 for IERC20;
uint256 public lastLoanBlock;
uint256 public loanedAmountThisBlock;
// immutable and constant
address public immutable underlyingToken;
uint256 public constant MAX_LOAN_PER_BLOCK = 300 ether;
uint8 public immutable underlyingTokenDecimals;
mapping(address => uint256) public _debt;
mapping(address => bool) public whiteList;
mapping(address => bool) public validFactories;
event LoanTaken(address user, uint256 amount);
event LoanRepaid(address user, uint256 amount);
event CashIn(address user, uint256 amount);
event CashOut(address user, uint256 amount);
event FactoryUpdated(address newFactory, bool isValid);
event WhiteListAdded(address user);
event WhiteListRemoved(address user);
error DebtOverflow(address user, uint256 debt, uint256 value);
modifier onlyWhiteListed() {
require(whiteList[msg.sender], "Only WhiteList");
_;
}
modifier onlyValidFactory() {
require(validFactories[msg.sender], "Only valid factory can call this function");
_;
}
constructor(
string memory name,
string memory symbol,
address _underlyingToken,
address _admin,
uint8 _underlyingTokenDecimals
) ERC20(name, symbol) Ownable(_admin) {
require(_underlyingToken != address(0), "Invalid underlying token address");
underlyingToken = _underlyingToken;
underlyingTokenDecimals = _underlyingTokenDecimals;
}
function isValidFactory(address _factory) external view returns (bool) {
return validFactories[_factory];
}
function updateFactory(address _factory, bool isValid) external onlyOwner {
validFactories[_factory] = isValid;
emit FactoryUpdated(_factory, isValid);
}
function addToWhiteList(address user) external onlyOwner {
whiteList[user] = true;
emit WhiteListAdded(user);
}
function removeFromWhiteList(address user) external onlyOwner {
whiteList[user] = false;
emit WhiteListRemoved(user);
}
function cashIn(uint256 amount) external payable onlyWhiteListed {
_transferAssetFromUser(amount);
_mint(msg.sender, amount);
emit CashIn(msg.sender, amount);
}
function cashOut(uint256 amount) external onlyWhiteListed {
_burn(msg.sender, amount);
_transferAssetToUser(amount);
emit CashOut(msg.sender, amount);
}
function takeLoan(address to, uint256 amount) external payable onlyValidFactory {
if (block.number > lastLoanBlock) {
lastLoanBlock = block.number;
loanedAmountThisBlock = 0;
}
require(loanedAmountThisBlock + amount <= MAX_LOAN_PER_BLOCK, "Loan limit per block exceeded");
loanedAmountThisBlock += amount;
_mint(to, amount);
_increaseDebt(to, amount);
emit LoanTaken(to, amount);
}
/**
* @notice This function is currently unused.
*/
function repayLoan(address to, uint256 amount) external onlyValidFactory {
_decreaseDebt(to, amount);
_burn(to, amount);
emit LoanRepaid(to, amount);
}
function getLoanDebt(address user) external view returns (uint256) {
return _debt[user];
}
function _increaseDebt(address user, uint256 amount) internal {
_debt[user] += amount;
}
function _decreaseDebt(address user, uint256 amount) internal {
require(_debt[user] >= amount, "Decrease amount exceeds current debt");
_debt[user] -= amount;
}
function _denormalizeDecimal(uint256 amount) internal view returns (uint256) {
return (amount * (10 ** underlyingTokenDecimals)) / (10 ** 18);
}
/**
* @dev Transfers the specified amount of the underlying asset from the user to the contract.
* The amount is first denormalized to match the underlying token's decimals.
* If the underlying token is the native token (e.g., ETH), the function checks if the sent value is sufficient.
* Otherwise, it transfers the specified amount of the ERC20 token from the user to the contract.
* @param amount The amount of the token in the contract's standard decimal format to transfer.
*/
function _transferAssetFromUser(uint256 amount) internal {
amount = _denormalizeDecimal(amount);
if (underlyingToken == LaunchPadUtils.NATIVE_TOKEN) {
require(msg.value >= amount, "Invalid ETH amount");
} else {
IERC20(underlyingToken).safeTransferFrom(msg.sender, address(this), amount);
}
}
/**
* @dev Transfers the specified amount of the underlying asset from the contract to the user.
* The amount is first denormalized to match the underlying token's decimals.
* If the underlying token is the native token (e.g., ETH), the function checks if the contract's balance is sufficient and transfers the amount.
* Otherwise, it transfers the specified amount of the ERC20 token from the contract to the user.
* @param amount The amount of the token in the contract's standard decimal format to transfer.
*/
function _transferAssetToUser(uint256 amount) internal {
amount = _denormalizeDecimal(amount);
if (underlyingToken == LaunchPadUtils.NATIVE_TOKEN) {
require(address(this).balance >= amount, "Insufficient ETH balance");
(bool success, ) = msg.sender.call{value: amount}("");
require(success, "Transfer failed");
} else {
IERC20(underlyingToken).safeTransfer(msg.sender, amount);
}
}
// override the _update function to prevent overflow
function _update(address from, address to, uint256 value) internal override {
// check: balance - _debt < value
if (from != address(0) && balanceOf(from) < value + _debt[from]) {
revert DebtOverflow(from, _debt[from], value);
}
super._update(from, to, value);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC-20
* applications.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Skips emitting an {Approval} event indicating an allowance update. This is not
* required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` amount of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
*
* ```solidity
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance < type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
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 value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` 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 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC-20 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 {
/**
* @dev An operation with an ERC-20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @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.encodeCall(token.transfer, (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.encodeCall(token.transferFrom, (from, to, 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.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @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.
*
* NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
* only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
* set here.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
safeTransfer(token, to, value);
} else if (!token.transferAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
* has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferFromAndCallRelaxed(
IERC1363 token,
address from,
address to,
uint256 value,
bytes memory data
) internal {
if (to.code.length == 0) {
safeTransferFrom(token, from, to, value);
} else if (!token.transferFromAndCall(from, to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
* Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
* once without retrying, and relies on the returned value to be true.
*
* Reverts if the returned value is other than `true`.
*/
function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
forceApprove(token, to, value);
} else if (!token.approveAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @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 {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
// bubble errors
if iszero(success) {
let ptr := mload(0x40)
returndatacopy(ptr, 0, returndatasize())
revert(ptr, returndatasize())
}
returnSize := returndatasize()
returnValue := mload(0)
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @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 silently catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
bool success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
returnSize := returndatasize()
returnValue := mload(0)
}
return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.20;
/// @title LaunchPadUtils Contract
/// @notice This contract stores constant values used in the LaunchPad system
library LaunchPadUtils {
/// @notice The max amount of uint256
uint256 public constant MAX_AMOUNT = 115792089237316195423570985008687907853269984665640564039457584007913129639935;
address public constant NATIVE_TOKEN = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
/// @notice Total amount of the quote token
uint256 public constant TOTAL_AMOUNT_OF_QUOTE_TOKEN = 10**8 * 1e18;
// ETH Mainnet
address public constant WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
/// @notice The Address of pool factory on uniswap
address public constant UNISWAP_POOL_FACTORY_ = 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f;
/// @notice The Address of router on uniswap
address public constant UNISWAP_ROUTER_ADDRESS = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../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.
*
* The initial owner is set to the address provided by the deployer. 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;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @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 {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @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 {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_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 v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC-20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC-20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC-721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC-1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";
/**
* @title IERC1363
* @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
*
* Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
* after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
*/
interface IERC1363 is IERC20, IERC165 {
/*
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
* 0xb0202a11 ===
* bytes4(keccak256('transferAndCall(address,uint256)')) ^
* bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
* bytes4(keccak256('approveAndCall(address,uint256)')) ^
* bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
*/
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @param data Additional data with no specified format, sent in call to `spender`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../token/ERC20/IERC20.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../utils/introspection/IERC165.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"remappings": [
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
"@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
"@uniswapV2-core/=script/uniswap/factory/",
"@uniswap/=lib/v2-core/contracts/",
"@morpho/=lib/morpho-blue/src/",
"ds-test/=lib/openzeppelin-contracts-upgradeable/lib/forge-std/lib/ds-test/src/",
"erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/",
"halmos-cheatcodes/=lib/openzeppelin-contracts-upgradeable/lib/halmos-cheatcodes/src/",
"morpho-blue/=lib/morpho-blue/",
"openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
"v2-core/=lib/v2-core/contracts/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "shanghai",
"viaIR": true,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"_underlyingToken","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"uint8","name":"_underlyingTokenDecimals","type":"uint8"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"debt","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"DebtOverflow","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CashIn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CashOut","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newFactory","type":"address"},{"indexed":false,"internalType":"bool","name":"isValid","type":"bool"}],"name":"FactoryUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LoanRepaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LoanTaken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"WhiteListAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"WhiteListRemoved","type":"event"},{"inputs":[],"name":"MAX_LOAN_PER_BLOCK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_debt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"addToWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"cashIn","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"cashOut","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getLoanDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_factory","type":"address"}],"name":"isValidFactory","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastLoanBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"loanedAmountThisBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"removeFromWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"repayLoan","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"takeLoan","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"underlyingToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"underlyingTokenDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"bool","name":"isValid","type":"bool"}],"name":"updateFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"validFactories","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whiteList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]Contract Creation Code
0x60c060405234620004115762001959803803806200001d8162000415565b928339810160a082820312620004115781516001600160401b0392908381116200041157826200004f9183016200043b565b91602090818301519085821162000411576200006d9184016200043b565b6200007b60408401620004ab565b9360806200008c60608601620004ab565b9401519560ff87168703620004115781518181116200031c576003908154906001948583811c9316801562000406575b88841014620003f2578190601f938481116200039f575b5088908483116001146200033c575f9262000330575b50505f1982851b1c191690851b1782555b84519283116200031c5760049485548581811c9116801562000311575b88821014620002fe57828111620002b6575b50869184116001146200024f579383949184925f9562000243575b50501b925f19911b1c19161781555b6001600160a01b039283169283156200022c57600580546001600160a01b031981168617909155604051949082167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3841615620001ed5750505060805260a0526040516114989081620004c182396080518181816102c0015281816109640152610bf4015260a05181818161086c01526113b30152f35b62461bcd60e51b8352820181905260248201527f496e76616c696420756e6465726c79696e6720746f6b656e2061646472657373604482015260649150fd5b604051631e4fbdf760e01b81525f81840152602490fd5b015193505f8062000144565b9190601f19841692865f5284885f20945f5b8a898383106200029e575050501062000284575b50505050811b01815562000153565b01519060f8845f19921b161c191690555f80808062000275565b86860151895590970196948501948893500162000261565b865f52875f208380870160051c8201928a8810620002f4575b0160051c019086905b828110620002e857505062000129565b5f8155018690620002d8565b92508192620002cf565b602287634e487b7160e01b5f525260245ffd5b90607f169062000117565b634e487b7160e01b5f52604160045260245ffd5b015190505f80620000e9565b90879350601f19831691865f528a5f20925f5b8c82821062000388575050841162000370575b505050811b018255620000fa565b01515f1983871b60f8161c191690555f808062000362565b8385015186558b979095019493840193016200034f565b909150845f52885f208480850160051c8201928b8610620003e8575b918991869594930160051c01915b828110620003d9575050620000d3565b5f8155859450899101620003c9565b92508192620003bb565b634e487b7160e01b5f52602260045260245ffd5b92607f1692620000bc565b5f80fd5b6040519190601f01601f191682016001600160401b038111838210176200031c57604052565b919080601f84011215620004115782516001600160401b0381116200031c5760209062000471601f8201601f1916830162000415565b9281845282828701011162000411575f5b818110620004975750825f9394955001015290565b858101830151848201840152820162000482565b51906001600160a01b0382168203620004115756fe604060808152600480361015610013575f80fd5b5f3560e01c806301bf664814610f2a57806306fdde0314610e3557806307d4eb0414610dfe5780630816ca4214610dfe578063095ea7b314610d555780630e4355d414610234578063127d1d1a14610d3257806318160ddd14610d1457806323b872dd14610c235780632495a59914610be0578063313ce56714610bc5578063372c12b114610b8957806347ee039414610b1c5780635c7b79f51461092157806370a08231146108eb578063715018a6146108905780637284168a146108535780637ce1bca81461083557806389e6bc38146107b65780638da5cb5b1461078e57806393a595f51461067257806395d89b411461056f5780639e358be11461044c578063a9059cbb1461041c578063c32966731461028e578063cee011ea14610270578063d47310e614610234578063dd62ed3e146101eb5763f2fde38b1461015a575f80fd5b346101e75760203660031901126101e757610173610f94565b9061017c6110f9565b6001600160a01b039182169283156101d1575050600554826bffffffffffffffffffffffff60a01b821617600555167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3005b905f6024925191631e4fbdf760e01b8352820152fd5b5f80fd5b82346101e757806003193601126101e757602090610207610f94565b61020f610faa565b9060018060a01b038091165f5260018452825f2091165f528252805f20549051908152f35b82346101e75760203660031901126101e7576020906001600160a01b03610259610f94565b165f52600a825260ff815f20541690519015158152f35b82346101e7575f3660031901126101e7576020906006549051908152f35b5060203660031901126101e757803590335f5260096020526102b560ff845f20541661103d565b6102be826113af565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee810361038f575034106103575750610352907fd5df9b37b38c0b1a9dbea0a7b8383cc78f9bd743db408c795083eb83e122a36d925b61033c8233611352565b5133815260208101919091529081906040820190565b0390a1005b606490602084519162461bcd60e51b83528201526012602482015271125b9d985b1a590811551208185b5bdd5b9d60721b6044820152fd5b909184939451926323b872dd60e01b602085015233602485015230604485015260648401526064835260a083019083821067ffffffffffffffff83111761040957507fd5df9b37b38c0b1a9dbea0a7b8383cc78f9bd743db408c795083eb83e122a36d949284926104049261035296526113fd565b610332565b604190634e487b7160e01b5f525260245ffd5b82346101e757806003193601126101e75760209061044561043b610f94565b6024359033611125565b5160018152f35b50816003193601126101e757610460610f94565b60243591335f52600a60205261047b60ff855f20541661107a565b6006544311610562575b60075490681043561a882930000061049d85846110d8565b1161051f57507fd5c776eab9418d89c040ffee59f2310d225f5ff682191bcee59b0413a7fd4835936104d284610352936110d8565b6007556104df8484611352565b60018060a01b0383165f526008602052805f206104fd8582546110d8565b9055516001600160a01b03909216825260208201929092529081906040820190565b606490602086519162461bcd60e51b8352820152601d60248201527f4c6f616e206c696d69742070657220626c6f636b2065786365656465640000006044820152fd5b436006555f600755610485565b5090346101e7575f3660031901126101e7578051905f9280549060018260011c9160018416938415610668575b60209485851081146106555784885290811561063357506001146105da575b6105d686866105cc828b0383611007565b5191829182610fc0565b0390f35b5f9081529295507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82841061062057505050826105d6946105cc92820101945f6105bb565b8054868501880152928601928101610603565b60ff191687860152505050151560051b83010192506105cc826105d65f6105bb565b602283634e487b7160e01b5f525260245ffd5b92607f169261059c565b50346101e757816003193601126101e75761068b610f94565b60243591335f52600a6020526106a660ff855f20541661107a565b6001600160a01b0382165f818152600860205285902054841161073f575f526008602052835f2080549184830392831161072c5750557fc200a1f31dd659e356e0f112c82558e25f49f7b0f84438691cd96f5cb3558823926103529061070c8484611258565b516001600160a01b03909216825260208201929092529081906040820190565b601190634e487b7160e01b5f525260245ffd5b845162461bcd60e51b81526020818401526024808201527f446563726561736520616d6f756e7420657863656564732063757272656e74206044820152631919589d60e21b6064820152608490fd5b82346101e7575f3660031901126101e75760055490516001600160a01b039091168152602090f35b82346101e757806003193601126101e7576107cf610f94565b906024358015158091036101e7577f309e49506b5bfa680b6edfbee91c1314f386b28cfb0cb8d2980bab7af0ef4927926108076110f9565b60018060a01b031690815f52600a602052825f2060ff1981541660ff831617905582519182526020820152a1005b82346101e7575f3660031901126101e7576020906007549051908152f35b82346101e7575f3660031901126101e7576020905160ff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b346101e7575f3660031901126101e7576108a86110f9565b600580546001600160a01b031981169091555f906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b82346101e75760203660031901126101e7576020906001600160a01b03610910610f94565b165f525f8252805f20549051908152f35b5090346101e757602091826003193601126101e757803592335f526009815261094f60ff845f20541661103d565b6109598433611258565b610962846113af565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8103610ab65750804710610a75575f80808093335af13d15610a70573d67ffffffffffffffff8111610a5d578451906109e3601f8201601f1916850183611007565b81525f833d92013e5b15610a2b5750505133815260208101919091527fab933177d8753a66dd869151cf9aa88649e067b7a4e2dad9d5d192d61cf593b0908060408101610352565b606492519162461bcd60e51b8352820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152fd5b604184634e487b7160e01b5f525260245ffd5b6109ec565b50606492519162461bcd60e51b8352820152601860248201527f496e73756666696369656e74204554482062616c616e636500000000000000006044820152fd5b845163a9059cbb60e01b938101939093523360248401526044808401929092529082527fab933177d8753a66dd869151cf9aa88649e067b7a4e2dad9d5d192d61cf593b0946103529490935091610b1791610b12606483611007565b6113fd565b61033c565b82346101e75760203660031901126101e75760207fbf309892cce19064e6d63ba3339f893b199c8cb5041fc6731702cb18e805d29191610b5a610f94565b610b626110f9565b6001600160a01b03165f81815260098452829020805460ff191660011790559051908152a1005b82346101e75760203660031901126101e7576020906001600160a01b03610bae610f94565b165f526009825260ff815f20541690519015158152f35b82346101e7575f3660031901126101e7576020905160128152f35b82346101e7575f3660031901126101e757517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50346101e75760603660031901126101e757610c3d610f94565b610c45610faa565b906044359260018060a01b038216805f526001602052855f20335f52602052855f2054915f198310610c80575b602087610445888888611125565b858310610ce8578115610cd2573315610cbc57505f90815260016020908152868220338352815290869020918590039091558290610445610c72565b6024905f885191634a1406b160e11b8352820152fd5b6024905f88519163e602df0560e01b8352820152fd5b8651637dc7a0d960e11b8152339181019182526020820193909352604081018690528291506060010390fd5b82346101e7575f3660031901126101e7576020906002549051908152f35b82346101e7575f3660031901126101e75760209051681043561a88293000008152f35b5090346101e757806003193601126101e757610d6f610f94565b602435903315610de8576001600160a01b0316908115610dd25760209350335f5260018452825f20825f52845280835f205582519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925843392a35160018152f35b8251634a1406b160e11b81525f81860152602490fd5b825163e602df0560e01b81525f81860152602490fd5b82346101e75760203660031901126101e7576020906001600160a01b03610e23610f94565b165f5260088252805f20549051908152f35b5090346101e7575f3660031901126101e7578051905f9260035460018160011c91600181168015610f20575b6020948585108214610f0d5750838752908115610eed5750600114610e93575b5050506105cc826105d6940383611007565b60035f9081529295507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b828410610eda57505050826105d6946105cc9282010194610e81565b8054868501880152928601928101610ebe565b60ff1916868501525050151560051b83010192506105cc826105d6610e81565b602290634e487b7160e01b5f525260245ffd5b92607f1692610e61565b82346101e75760203660031901126101e75760207fdb0d54f6e7ff4a52bdc49b4c8d9ff245f409fee25c2c0a0a72ece14e2ddf4cfc91610f68610f94565b610f706110f9565b6001600160a01b03165f81815260098452829020805460ff191690559051908152a1005b600435906001600160a01b03821682036101e757565b602435906001600160a01b03821682036101e757565b602080825282518183018190529093925f5b828110610ff357505060409293505f838284010152601f8019910116010190565b818101860151848201604001528501610fd2565b90601f8019910116810190811067ffffffffffffffff82111761102957604052565b634e487b7160e01b5f52604160045260245ffd5b1561104457565b60405162461bcd60e51b815260206004820152600e60248201526d13db9b1e4815da1a5d19531a5cdd60921b6044820152606490fd5b1561108157565b60405162461bcd60e51b815260206004820152602960248201527f4f6e6c792076616c696420666163746f72792063616e2063616c6c207468697360448201526810333ab731ba34b7b760b91b6064820152608490fd5b919082018092116110e557565b634e487b7160e01b5f52601160045260245ffd5b6005546001600160a01b0316330361110d57565b60405163118cdaa760e01b8152336004820152602490fd5b9291906001600160a01b03808516918215611240571691821561122857815f526020905f82526040805f205460088452611162825f2054846110d8565b116111ed57835f525f8352805f2054968288106111be575081849596977fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef955f525f855203815f2055855f52805f2082815401905551908152a3565b905163391434e360e21b81526001600160a01b0390911660048201526024810187905260448101829052606490fd5b5f84815260088452819020549051631b11306160e01b81526001600160a01b0388166004820152602481019190915260448101829052606490fd5b60405163ec442f0560e01b81525f6004820152602490fd5b604051634b637e8f60e11b81525f6004820152602490fd5b6001600160a01b03811691821561124057825f526020915f8352604090815f20546008855261128a835f2054856110d8565b1161131557845f525f8452815f2054908382106112e4575091849391817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef945f9788528785520381872055816002540360025551908152a3565b825163391434e360e21b81526001600160a01b03919091166004820152602481019190915260448101839052606490fd5b5f85815260088552829020549151631b11306160e01b81526001600160a01b03919091166004820152602481019190915260448101829052606490fd5b6001600160a01b0316908115611228577fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020826113935f946002546110d8565b60025584845283825260408420818154019055604051908152a3565b60ff7f000000000000000000000000000000000000000000000000000000000000000016604d81116110e557600a0a908181029181830414901517156110e557670de0b6b3a7640000900490565b905f602091828151910182855af115611457575f513d61144e57506001600160a01b0381163b155b61142c5750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b60011415611425565b6040513d5f823e3d90fdfea26469706673582212201187ed2e009d6963c09c77c0cb4e3f15521a48d2b523645fb16371b78077ddf764736f6c6343000817003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000c8547be64bd5b725c430a0e7484ab8ff1179960c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000004564554480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045645544800000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x604060808152600480361015610013575f80fd5b5f3560e01c806301bf664814610f2a57806306fdde0314610e3557806307d4eb0414610dfe5780630816ca4214610dfe578063095ea7b314610d555780630e4355d414610234578063127d1d1a14610d3257806318160ddd14610d1457806323b872dd14610c235780632495a59914610be0578063313ce56714610bc5578063372c12b114610b8957806347ee039414610b1c5780635c7b79f51461092157806370a08231146108eb578063715018a6146108905780637284168a146108535780637ce1bca81461083557806389e6bc38146107b65780638da5cb5b1461078e57806393a595f51461067257806395d89b411461056f5780639e358be11461044c578063a9059cbb1461041c578063c32966731461028e578063cee011ea14610270578063d47310e614610234578063dd62ed3e146101eb5763f2fde38b1461015a575f80fd5b346101e75760203660031901126101e757610173610f94565b9061017c6110f9565b6001600160a01b039182169283156101d1575050600554826bffffffffffffffffffffffff60a01b821617600555167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3005b905f6024925191631e4fbdf760e01b8352820152fd5b5f80fd5b82346101e757806003193601126101e757602090610207610f94565b61020f610faa565b9060018060a01b038091165f5260018452825f2091165f528252805f20549051908152f35b82346101e75760203660031901126101e7576020906001600160a01b03610259610f94565b165f52600a825260ff815f20541690519015158152f35b82346101e7575f3660031901126101e7576020906006549051908152f35b5060203660031901126101e757803590335f5260096020526102b560ff845f20541661103d565b6102be826113af565b7f000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee810361038f575034106103575750610352907fd5df9b37b38c0b1a9dbea0a7b8383cc78f9bd743db408c795083eb83e122a36d925b61033c8233611352565b5133815260208101919091529081906040820190565b0390a1005b606490602084519162461bcd60e51b83528201526012602482015271125b9d985b1a590811551208185b5bdd5b9d60721b6044820152fd5b909184939451926323b872dd60e01b602085015233602485015230604485015260648401526064835260a083019083821067ffffffffffffffff83111761040957507fd5df9b37b38c0b1a9dbea0a7b8383cc78f9bd743db408c795083eb83e122a36d949284926104049261035296526113fd565b610332565b604190634e487b7160e01b5f525260245ffd5b82346101e757806003193601126101e75760209061044561043b610f94565b6024359033611125565b5160018152f35b50816003193601126101e757610460610f94565b60243591335f52600a60205261047b60ff855f20541661107a565b6006544311610562575b60075490681043561a882930000061049d85846110d8565b1161051f57507fd5c776eab9418d89c040ffee59f2310d225f5ff682191bcee59b0413a7fd4835936104d284610352936110d8565b6007556104df8484611352565b60018060a01b0383165f526008602052805f206104fd8582546110d8565b9055516001600160a01b03909216825260208201929092529081906040820190565b606490602086519162461bcd60e51b8352820152601d60248201527f4c6f616e206c696d69742070657220626c6f636b2065786365656465640000006044820152fd5b436006555f600755610485565b5090346101e7575f3660031901126101e7578051905f9280549060018260011c9160018416938415610668575b60209485851081146106555784885290811561063357506001146105da575b6105d686866105cc828b0383611007565b5191829182610fc0565b0390f35b5f9081529295507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82841061062057505050826105d6946105cc92820101945f6105bb565b8054868501880152928601928101610603565b60ff191687860152505050151560051b83010192506105cc826105d65f6105bb565b602283634e487b7160e01b5f525260245ffd5b92607f169261059c565b50346101e757816003193601126101e75761068b610f94565b60243591335f52600a6020526106a660ff855f20541661107a565b6001600160a01b0382165f818152600860205285902054841161073f575f526008602052835f2080549184830392831161072c5750557fc200a1f31dd659e356e0f112c82558e25f49f7b0f84438691cd96f5cb3558823926103529061070c8484611258565b516001600160a01b03909216825260208201929092529081906040820190565b601190634e487b7160e01b5f525260245ffd5b845162461bcd60e51b81526020818401526024808201527f446563726561736520616d6f756e7420657863656564732063757272656e74206044820152631919589d60e21b6064820152608490fd5b82346101e7575f3660031901126101e75760055490516001600160a01b039091168152602090f35b82346101e757806003193601126101e7576107cf610f94565b906024358015158091036101e7577f309e49506b5bfa680b6edfbee91c1314f386b28cfb0cb8d2980bab7af0ef4927926108076110f9565b60018060a01b031690815f52600a602052825f2060ff1981541660ff831617905582519182526020820152a1005b82346101e7575f3660031901126101e7576020906007549051908152f35b82346101e7575f3660031901126101e7576020905160ff7f0000000000000000000000000000000000000000000000000000000000000012168152f35b346101e7575f3660031901126101e7576108a86110f9565b600580546001600160a01b031981169091555f906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b82346101e75760203660031901126101e7576020906001600160a01b03610910610f94565b165f525f8252805f20549051908152f35b5090346101e757602091826003193601126101e757803592335f526009815261094f60ff845f20541661103d565b6109598433611258565b610962846113af565b7f000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8103610ab65750804710610a75575f80808093335af13d15610a70573d67ffffffffffffffff8111610a5d578451906109e3601f8201601f1916850183611007565b81525f833d92013e5b15610a2b5750505133815260208101919091527fab933177d8753a66dd869151cf9aa88649e067b7a4e2dad9d5d192d61cf593b0908060408101610352565b606492519162461bcd60e51b8352820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152fd5b604184634e487b7160e01b5f525260245ffd5b6109ec565b50606492519162461bcd60e51b8352820152601860248201527f496e73756666696369656e74204554482062616c616e636500000000000000006044820152fd5b845163a9059cbb60e01b938101939093523360248401526044808401929092529082527fab933177d8753a66dd869151cf9aa88649e067b7a4e2dad9d5d192d61cf593b0946103529490935091610b1791610b12606483611007565b6113fd565b61033c565b82346101e75760203660031901126101e75760207fbf309892cce19064e6d63ba3339f893b199c8cb5041fc6731702cb18e805d29191610b5a610f94565b610b626110f9565b6001600160a01b03165f81815260098452829020805460ff191660011790559051908152a1005b82346101e75760203660031901126101e7576020906001600160a01b03610bae610f94565b165f526009825260ff815f20541690519015158152f35b82346101e7575f3660031901126101e7576020905160128152f35b82346101e7575f3660031901126101e757517f000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b03168152602090f35b50346101e75760603660031901126101e757610c3d610f94565b610c45610faa565b906044359260018060a01b038216805f526001602052855f20335f52602052855f2054915f198310610c80575b602087610445888888611125565b858310610ce8578115610cd2573315610cbc57505f90815260016020908152868220338352815290869020918590039091558290610445610c72565b6024905f885191634a1406b160e11b8352820152fd5b6024905f88519163e602df0560e01b8352820152fd5b8651637dc7a0d960e11b8152339181019182526020820193909352604081018690528291506060010390fd5b82346101e7575f3660031901126101e7576020906002549051908152f35b82346101e7575f3660031901126101e75760209051681043561a88293000008152f35b5090346101e757806003193601126101e757610d6f610f94565b602435903315610de8576001600160a01b0316908115610dd25760209350335f5260018452825f20825f52845280835f205582519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925843392a35160018152f35b8251634a1406b160e11b81525f81860152602490fd5b825163e602df0560e01b81525f81860152602490fd5b82346101e75760203660031901126101e7576020906001600160a01b03610e23610f94565b165f5260088252805f20549051908152f35b5090346101e7575f3660031901126101e7578051905f9260035460018160011c91600181168015610f20575b6020948585108214610f0d5750838752908115610eed5750600114610e93575b5050506105cc826105d6940383611007565b60035f9081529295507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b828410610eda57505050826105d6946105cc9282010194610e81565b8054868501880152928601928101610ebe565b60ff1916868501525050151560051b83010192506105cc826105d6610e81565b602290634e487b7160e01b5f525260245ffd5b92607f1692610e61565b82346101e75760203660031901126101e75760207fdb0d54f6e7ff4a52bdc49b4c8d9ff245f409fee25c2c0a0a72ece14e2ddf4cfc91610f68610f94565b610f706110f9565b6001600160a01b03165f81815260098452829020805460ff191690559051908152a1005b600435906001600160a01b03821682036101e757565b602435906001600160a01b03821682036101e757565b602080825282518183018190529093925f5b828110610ff357505060409293505f838284010152601f8019910116010190565b818101860151848201604001528501610fd2565b90601f8019910116810190811067ffffffffffffffff82111761102957604052565b634e487b7160e01b5f52604160045260245ffd5b1561104457565b60405162461bcd60e51b815260206004820152600e60248201526d13db9b1e4815da1a5d19531a5cdd60921b6044820152606490fd5b1561108157565b60405162461bcd60e51b815260206004820152602960248201527f4f6e6c792076616c696420666163746f72792063616e2063616c6c207468697360448201526810333ab731ba34b7b760b91b6064820152608490fd5b919082018092116110e557565b634e487b7160e01b5f52601160045260245ffd5b6005546001600160a01b0316330361110d57565b60405163118cdaa760e01b8152336004820152602490fd5b9291906001600160a01b03808516918215611240571691821561122857815f526020905f82526040805f205460088452611162825f2054846110d8565b116111ed57835f525f8352805f2054968288106111be575081849596977fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef955f525f855203815f2055855f52805f2082815401905551908152a3565b905163391434e360e21b81526001600160a01b0390911660048201526024810187905260448101829052606490fd5b5f84815260088452819020549051631b11306160e01b81526001600160a01b0388166004820152602481019190915260448101829052606490fd5b60405163ec442f0560e01b81525f6004820152602490fd5b604051634b637e8f60e11b81525f6004820152602490fd5b6001600160a01b03811691821561124057825f526020915f8352604090815f20546008855261128a835f2054856110d8565b1161131557845f525f8452815f2054908382106112e4575091849391817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef945f9788528785520381872055816002540360025551908152a3565b825163391434e360e21b81526001600160a01b03919091166004820152602481019190915260448101839052606490fd5b5f85815260088552829020549151631b11306160e01b81526001600160a01b03919091166004820152602481019190915260448101829052606490fd5b6001600160a01b0316908115611228577fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020826113935f946002546110d8565b60025584845283825260408420818154019055604051908152a3565b60ff7f000000000000000000000000000000000000000000000000000000000000001216604d81116110e557600a0a908181029181830414901517156110e557670de0b6b3a7640000900490565b905f602091828151910182855af115611457575f513d61144e57506001600160a01b0381163b155b61142c5750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b60011415611425565b6040513d5f823e3d90fdfea26469706673582212201187ed2e009d6963c09c77c0cb4e3f15521a48d2b523645fb16371b78077ddf764736f6c63430008170033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.
Add Token to MetaMask (Web3)