ERC-20
Overview
Max Total Supply
1,400 WF
Holders
178
Transfers
-
0
Market
Price
$0.00 @ 0.000000 ETH
Onchain Market Cap
-
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x4B1b0cE9...a056d73B9 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
WrappedFriend
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.21;
import {ERC20} from "solady/src/tokens/ERC20.sol";
import {IFriendtechSharesV1} from "./interfaces/IFriendTech.sol";
contract WrappedFriend is ERC20 {
IFriendtechSharesV1 public constant FRIENDTECH = IFriendtechSharesV1(0xCF205808Ed36593aa40a44F10c7f7C2F67d4A4d4);
uint256 public constant MULTIPLIER = 100;
address public target;
address public immutable factory;
string internal _name = "WrappedFriend";
string internal _symbol = "WF";
constructor() {
factory = msg.sender;
}
function initialize(address _target) external {
require(msg.sender == factory, "auth");
target = _target;
}
receive() external payable {}
/*//////////////////////////////////////////////////////////////
MINT & BURN
//////////////////////////////////////////////////////////////*/
function mint(uint256 shares) external payable returns (uint256 refund) {
uint256 cost = FRIENDTECH.getBuyPriceAfterFee(target, shares);
require(msg.value >= cost, "WrappedFriend: not enough eth");
FRIENDTECH.buyShares{value: cost}(target, shares);
_mint(msg.sender, shares * MULTIPLIER * 1e18);
// Refund excess
refund = msg.value - cost;
if (refund > 0) {
msg.sender.call{value: refund}("");
}
}
function burn(address from, uint256 shares) external returns (uint256 proceeds) {
require(from == msg.sender || msg.sender == factory, "auth");
_burn(from, shares * MULTIPLIER * 1e18);
FRIENDTECH.sellShares(target, shares);
proceeds = address(this).balance;
msg.sender.call{value: address(this).balance}("");
}
/*//////////////////////////////////////////////////////////////
NAMING
//////////////////////////////////////////////////////////////*/
function setNameAndSymbol(string memory __name, string memory __symbol) external {
require(msg.sender == target, "auth");
_name = __name;
_symbol = __symbol;
}
function name() public view override returns (string memory) {
return _name;
}
function symbol() public view override returns (string memory) {
return _symbol;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
/// @notice Simple ERC20 + EIP-2612 implementation.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol)
///
/// @dev Note:
/// The ERC20 standard allows minting and transferring to and from the zero address,
/// minting and transferring zero tokens, as well as self-approvals.
/// For performance, this implementation WILL NOT revert for such actions.
/// Please add any checks with overrides if desired.
abstract contract ERC20 {
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
/* CUSTOM ERRORS */
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/
/// @dev The total supply has overflowed.
error TotalSupplyOverflow();
/// @dev The allowance has overflowed.
error AllowanceOverflow();
/// @dev The allowance has underflowed.
error AllowanceUnderflow();
/// @dev Insufficient balance.
error InsufficientBalance();
/// @dev Insufficient allowance.
error InsufficientAllowance();
/// @dev The permit is invalid.
error InvalidPermit();
/// @dev The permit has expired.
error PermitExpired();
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
/* EVENTS */
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/
/// @dev Emitted when `amount` tokens is transferred from `from` to `to`.
event Transfer(address indexed from, address indexed to, uint256 amount);
/// @dev Emitted when `amount` tokens is approved by `owner` to be used by `spender`.
event Approval(address indexed owner, address indexed spender, uint256 amount);
/// @dev `keccak256(bytes("Transfer(address,address,uint256)"))`.
uint256 private constant _TRANSFER_EVENT_SIGNATURE =
0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;
/// @dev `keccak256(bytes("Approval(address,address,uint256)"))`.
uint256 private constant _APPROVAL_EVENT_SIGNATURE =
0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925;
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
/* STORAGE */
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/
/// @dev The storage slot for the total supply.
uint256 private constant _TOTAL_SUPPLY_SLOT = 0x05345cdf77eb68f44c;
/// @dev The balance slot of `owner` is given by:
/// ```
/// mstore(0x0c, _BALANCE_SLOT_SEED)
/// mstore(0x00, owner)
/// let balanceSlot := keccak256(0x0c, 0x20)
/// ```
uint256 private constant _BALANCE_SLOT_SEED = 0x87a211a2;
/// @dev The allowance slot of (`owner`, `spender`) is given by:
/// ```
/// mstore(0x20, spender)
/// mstore(0x0c, _ALLOWANCE_SLOT_SEED)
/// mstore(0x00, owner)
/// let allowanceSlot := keccak256(0x0c, 0x34)
/// ```
uint256 private constant _ALLOWANCE_SLOT_SEED = 0x7f5e9f20;
/// @dev The nonce slot of `owner` is given by:
/// ```
/// mstore(0x0c, _NONCES_SLOT_SEED)
/// mstore(0x00, owner)
/// let nonceSlot := keccak256(0x0c, 0x20)
/// ```
uint256 private constant _NONCES_SLOT_SEED = 0x38377508;
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
/* ERC20 METADATA */
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/
/// @dev Returns the name of the token.
function name() public view virtual returns (string memory);
/// @dev Returns the symbol of the token.
function symbol() public view virtual returns (string memory);
/// @dev Returns the decimals places of the token.
function decimals() public view virtual returns (uint8) {
return 18;
}
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
/* ERC20 */
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/
/// @dev Returns the amount of tokens in existence.
function totalSupply() public view virtual returns (uint256 result) {
/// @solidity memory-safe-assembly
assembly {
result := sload(_TOTAL_SUPPLY_SLOT)
}
}
/// @dev Returns the amount of tokens owned by `owner`.
function balanceOf(address owner) public view virtual returns (uint256 result) {
/// @solidity memory-safe-assembly
assembly {
mstore(0x0c, _BALANCE_SLOT_SEED)
mstore(0x00, owner)
result := sload(keccak256(0x0c, 0x20))
}
}
/// @dev Returns the amount of tokens that `spender` can spend on behalf of `owner`.
function allowance(address owner, address spender)
public
view
virtual
returns (uint256 result)
{
/// @solidity memory-safe-assembly
assembly {
mstore(0x20, spender)
mstore(0x0c, _ALLOWANCE_SLOT_SEED)
mstore(0x00, owner)
result := sload(keccak256(0x0c, 0x34))
}
}
/// @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
///
/// Emits a {Approval} event.
function approve(address spender, uint256 amount) public virtual returns (bool) {
/// @solidity memory-safe-assembly
assembly {
// Compute the allowance slot and store the amount.
mstore(0x20, spender)
mstore(0x0c, _ALLOWANCE_SLOT_SEED)
mstore(0x00, caller())
sstore(keccak256(0x0c, 0x34), amount)
// Emit the {Approval} event.
mstore(0x00, amount)
log3(0x00, 0x20, _APPROVAL_EVENT_SIGNATURE, caller(), shr(96, mload(0x2c)))
}
return true;
}
/// @dev Atomically increases the allowance granted to `spender` by the caller.
///
/// Emits a {Approval} event.
function increaseAllowance(address spender, uint256 difference) public virtual returns (bool) {
/// @solidity memory-safe-assembly
assembly {
// Compute the allowance slot and load its value.
mstore(0x20, spender)
mstore(0x0c, _ALLOWANCE_SLOT_SEED)
mstore(0x00, caller())
let allowanceSlot := keccak256(0x0c, 0x34)
let allowanceBefore := sload(allowanceSlot)
// Add to the allowance.
let allowanceAfter := add(allowanceBefore, difference)
// Revert upon overflow.
if lt(allowanceAfter, allowanceBefore) {
mstore(0x00, 0xf9067066) // `AllowanceOverflow()`.
revert(0x1c, 0x04)
}
// Store the updated allowance.
sstore(allowanceSlot, allowanceAfter)
// Emit the {Approval} event.
mstore(0x00, allowanceAfter)
log3(0x00, 0x20, _APPROVAL_EVENT_SIGNATURE, caller(), shr(96, mload(0x2c)))
}
return true;
}
/// @dev Atomically decreases the allowance granted to `spender` by the caller.
///
/// Emits a {Approval} event.
function decreaseAllowance(address spender, uint256 difference) public virtual returns (bool) {
/// @solidity memory-safe-assembly
assembly {
// Compute the allowance slot and load its value.
mstore(0x20, spender)
mstore(0x0c, _ALLOWANCE_SLOT_SEED)
mstore(0x00, caller())
let allowanceSlot := keccak256(0x0c, 0x34)
let allowanceBefore := sload(allowanceSlot)
// Revert if will underflow.
if lt(allowanceBefore, difference) {
mstore(0x00, 0x8301ab38) // `AllowanceUnderflow()`.
revert(0x1c, 0x04)
}
// Subtract and store the updated allowance.
let allowanceAfter := sub(allowanceBefore, difference)
sstore(allowanceSlot, allowanceAfter)
// Emit the {Approval} event.
mstore(0x00, allowanceAfter)
log3(0x00, 0x20, _APPROVAL_EVENT_SIGNATURE, caller(), shr(96, mload(0x2c)))
}
return true;
}
/// @dev Transfer `amount` tokens from the caller to `to`.
///
/// Requirements:
/// - `from` must at least have `amount`.
///
/// Emits a {Transfer} event.
function transfer(address to, uint256 amount) public virtual returns (bool) {
_beforeTokenTransfer(msg.sender, to, amount);
/// @solidity memory-safe-assembly
assembly {
// Compute the balance slot and load its value.
mstore(0x0c, _BALANCE_SLOT_SEED)
mstore(0x00, caller())
let fromBalanceSlot := keccak256(0x0c, 0x20)
let fromBalance := sload(fromBalanceSlot)
// Revert if insufficient balance.
if gt(amount, fromBalance) {
mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.
revert(0x1c, 0x04)
}
// Subtract and store the updated balance.
sstore(fromBalanceSlot, sub(fromBalance, amount))
// Compute the balance slot of `to`.
mstore(0x00, to)
let toBalanceSlot := keccak256(0x0c, 0x20)
// Add and store the updated balance of `to`.
// Will not overflow because the sum of all user balances
// cannot exceed the maximum uint256 value.
sstore(toBalanceSlot, add(sload(toBalanceSlot), amount))
// Emit the {Transfer} event.
mstore(0x20, amount)
log3(0x20, 0x20, _TRANSFER_EVENT_SIGNATURE, caller(), shr(96, mload(0x0c)))
}
_afterTokenTransfer(msg.sender, to, amount);
return true;
}
/// @dev Transfers `amount` tokens from `from` to `to`.
///
/// Note: Does not update the allowance if it is the maximum uint256 value.
///
/// Requirements:
/// - `from` must at least have `amount`.
/// - The caller must have at least `amount` of allowance to transfer the tokens of `from`.
///
/// Emits a {Transfer} event.
function transferFrom(address from, address to, uint256 amount) public virtual returns (bool) {
_beforeTokenTransfer(from, to, amount);
/// @solidity memory-safe-assembly
assembly {
let from_ := shl(96, from)
// Compute the allowance slot and load its value.
mstore(0x20, caller())
mstore(0x0c, or(from_, _ALLOWANCE_SLOT_SEED))
let allowanceSlot := keccak256(0x0c, 0x34)
let allowance_ := sload(allowanceSlot)
// If the allowance is not the maximum uint256 value.
if iszero(eq(allowance_, not(0))) {
// Revert if the amount to be transferred exceeds the allowance.
if gt(amount, allowance_) {
mstore(0x00, 0x13be252b) // `InsufficientAllowance()`.
revert(0x1c, 0x04)
}
// Subtract and store the updated allowance.
sstore(allowanceSlot, sub(allowance_, amount))
}
// Compute the balance slot and load its value.
mstore(0x0c, or(from_, _BALANCE_SLOT_SEED))
let fromBalanceSlot := keccak256(0x0c, 0x20)
let fromBalance := sload(fromBalanceSlot)
// Revert if insufficient balance.
if gt(amount, fromBalance) {
mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.
revert(0x1c, 0x04)
}
// Subtract and store the updated balance.
sstore(fromBalanceSlot, sub(fromBalance, amount))
// Compute the balance slot of `to`.
mstore(0x00, to)
let toBalanceSlot := keccak256(0x0c, 0x20)
// Add and store the updated balance of `to`.
// Will not overflow because the sum of all user balances
// cannot exceed the maximum uint256 value.
sstore(toBalanceSlot, add(sload(toBalanceSlot), amount))
// Emit the {Transfer} event.
mstore(0x20, amount)
log3(0x20, 0x20, _TRANSFER_EVENT_SIGNATURE, shr(96, from_), shr(96, mload(0x0c)))
}
_afterTokenTransfer(from, to, amount);
return true;
}
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
/* EIP-2612 */
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/
/// @dev Returns the current nonce for `owner`.
/// This value is used to compute the signature for EIP-2612 permit.
function nonces(address owner) public view virtual returns (uint256 result) {
/// @solidity memory-safe-assembly
assembly {
// Compute the nonce slot and load its value.
mstore(0x0c, _NONCES_SLOT_SEED)
mstore(0x00, owner)
result := sload(keccak256(0x0c, 0x20))
}
}
/// @dev Sets `value` as the allowance of `spender` over the tokens of `owner`,
/// authorized by a signed approval by `owner`.
///
/// Emits a {Approval} event.
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) public virtual {
bytes32 domainSeparator = DOMAIN_SEPARATOR();
/// @solidity memory-safe-assembly
assembly {
// Grab the free memory pointer.
let m := mload(0x40)
// Revert if the block timestamp greater than `deadline`.
if gt(timestamp(), deadline) {
mstore(0x00, 0x1a15a3cc) // `PermitExpired()`.
revert(0x1c, 0x04)
}
// Clean the upper 96 bits.
owner := shr(96, shl(96, owner))
spender := shr(96, shl(96, spender))
// Compute the nonce slot and load its value.
mstore(0x0c, _NONCES_SLOT_SEED)
mstore(0x00, owner)
let nonceSlot := keccak256(0x0c, 0x20)
let nonceValue := sload(nonceSlot)
// Increment and store the updated nonce.
sstore(nonceSlot, add(nonceValue, 1))
// Prepare the inner hash.
// `keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)")`.
// forgefmt: disable-next-item
mstore(m, 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9)
mstore(add(m, 0x20), owner)
mstore(add(m, 0x40), spender)
mstore(add(m, 0x60), value)
mstore(add(m, 0x80), nonceValue)
mstore(add(m, 0xa0), deadline)
// Prepare the outer hash.
mstore(0, 0x1901)
mstore(0x20, domainSeparator)
mstore(0x40, keccak256(m, 0xc0))
// Prepare the ecrecover calldata.
mstore(0, keccak256(0x1e, 0x42))
mstore(0x20, and(0xff, v))
mstore(0x40, r)
mstore(0x60, s)
pop(staticcall(gas(), 1, 0, 0x80, 0x20, 0x20))
// If the ecrecover fails, the returndatasize will be 0x00,
// `owner` will be be checked if it equals the hash at 0x00,
// which evaluates to false (i.e. 0), and we will revert.
// If the ecrecover succeeds, the returndatasize will be 0x20,
// `owner` will be compared against the returned address at 0x20.
if iszero(eq(mload(returndatasize()), owner)) {
mstore(0x00, 0xddafbaef) // `InvalidPermit()`.
revert(0x1c, 0x04)
}
// Compute the allowance slot and store the value.
// The `owner` is already at slot 0x20.
mstore(0x40, or(shl(160, _ALLOWANCE_SLOT_SEED), spender))
sstore(keccak256(0x2c, 0x34), value)
// Emit the {Approval} event.
log3(add(m, 0x60), 0x20, _APPROVAL_EVENT_SIGNATURE, owner, spender)
mstore(0x40, m) // Restore the free memory pointer.
mstore(0x60, 0) // Restore the zero pointer.
}
}
/// @dev Returns the EIP-2612 domains separator.
function DOMAIN_SEPARATOR() public view virtual returns (bytes32 result) {
/// @solidity memory-safe-assembly
assembly {
result := mload(0x40) // Grab the free memory pointer.
}
// We simply calculate it on-the-fly to allow for cases where the `name` may change.
bytes32 nameHash = keccak256(bytes(name()));
/// @solidity memory-safe-assembly
assembly {
let m := result
// `keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)")`.
// forgefmt: disable-next-item
mstore(m, 0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f)
mstore(add(m, 0x20), nameHash)
// `keccak256("1")`.
// forgefmt: disable-next-item
mstore(add(m, 0x40), 0xc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6)
mstore(add(m, 0x60), chainid())
mstore(add(m, 0x80), address())
result := keccak256(m, 0xa0)
}
}
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
/* INTERNAL MINT FUNCTIONS */
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/
/// @dev Mints `amount` tokens to `to`, increasing the total supply.
///
/// Emits a {Transfer} event.
function _mint(address to, uint256 amount) internal virtual {
_beforeTokenTransfer(address(0), to, amount);
/// @solidity memory-safe-assembly
assembly {
let totalSupplyBefore := sload(_TOTAL_SUPPLY_SLOT)
let totalSupplyAfter := add(totalSupplyBefore, amount)
// Revert if the total supply overflows.
if lt(totalSupplyAfter, totalSupplyBefore) {
mstore(0x00, 0xe5cfe957) // `TotalSupplyOverflow()`.
revert(0x1c, 0x04)
}
// Store the updated total supply.
sstore(_TOTAL_SUPPLY_SLOT, totalSupplyAfter)
// Compute the balance slot and load its value.
mstore(0x0c, _BALANCE_SLOT_SEED)
mstore(0x00, to)
let toBalanceSlot := keccak256(0x0c, 0x20)
// Add and store the updated balance.
sstore(toBalanceSlot, add(sload(toBalanceSlot), amount))
// Emit the {Transfer} event.
mstore(0x20, amount)
log3(0x20, 0x20, _TRANSFER_EVENT_SIGNATURE, 0, shr(96, mload(0x0c)))
}
_afterTokenTransfer(address(0), to, amount);
}
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
/* INTERNAL BURN FUNCTIONS */
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/
/// @dev Burns `amount` tokens from `from`, reducing the total supply.
///
/// Emits a {Transfer} event.
function _burn(address from, uint256 amount) internal virtual {
_beforeTokenTransfer(from, address(0), amount);
/// @solidity memory-safe-assembly
assembly {
// Compute the balance slot and load its value.
mstore(0x0c, _BALANCE_SLOT_SEED)
mstore(0x00, from)
let fromBalanceSlot := keccak256(0x0c, 0x20)
let fromBalance := sload(fromBalanceSlot)
// Revert if insufficient balance.
if gt(amount, fromBalance) {
mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.
revert(0x1c, 0x04)
}
// Subtract and store the updated balance.
sstore(fromBalanceSlot, sub(fromBalance, amount))
// Subtract and store the updated total supply.
sstore(_TOTAL_SUPPLY_SLOT, sub(sload(_TOTAL_SUPPLY_SLOT), amount))
// Emit the {Transfer} event.
mstore(0x00, amount)
log3(0x00, 0x20, _TRANSFER_EVENT_SIGNATURE, shr(96, shl(96, from)), 0)
}
_afterTokenTransfer(from, address(0), amount);
}
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
/* INTERNAL TRANSFER FUNCTIONS */
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/
/// @dev Moves `amount` of tokens from `from` to `to`.
function _transfer(address from, address to, uint256 amount) internal virtual {
_beforeTokenTransfer(from, to, amount);
/// @solidity memory-safe-assembly
assembly {
let from_ := shl(96, from)
// Compute the balance slot and load its value.
mstore(0x0c, or(from_, _BALANCE_SLOT_SEED))
let fromBalanceSlot := keccak256(0x0c, 0x20)
let fromBalance := sload(fromBalanceSlot)
// Revert if insufficient balance.
if gt(amount, fromBalance) {
mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.
revert(0x1c, 0x04)
}
// Subtract and store the updated balance.
sstore(fromBalanceSlot, sub(fromBalance, amount))
// Compute the balance slot of `to`.
mstore(0x00, to)
let toBalanceSlot := keccak256(0x0c, 0x20)
// Add and store the updated balance of `to`.
// Will not overflow because the sum of all user balances
// cannot exceed the maximum uint256 value.
sstore(toBalanceSlot, add(sload(toBalanceSlot), amount))
// Emit the {Transfer} event.
mstore(0x20, amount)
log3(0x20, 0x20, _TRANSFER_EVENT_SIGNATURE, shr(96, from_), shr(96, mload(0x0c)))
}
_afterTokenTransfer(from, to, amount);
}
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
/* INTERNAL ALLOWANCE FUNCTIONS */
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/
/// @dev Updates the allowance of `owner` for `spender` based on spent `amount`.
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
/// @solidity memory-safe-assembly
assembly {
// Compute the allowance slot and load its value.
mstore(0x20, spender)
mstore(0x0c, _ALLOWANCE_SLOT_SEED)
mstore(0x00, owner)
let allowanceSlot := keccak256(0x0c, 0x34)
let allowance_ := sload(allowanceSlot)
// If the allowance is not the maximum uint256 value.
if iszero(eq(allowance_, not(0))) {
// Revert if the amount to be transferred exceeds the allowance.
if gt(amount, allowance_) {
mstore(0x00, 0x13be252b) // `InsufficientAllowance()`.
revert(0x1c, 0x04)
}
// Subtract and store the updated allowance.
sstore(allowanceSlot, sub(allowance_, amount))
}
}
}
/// @dev Sets `amount` as the allowance of `spender` over the tokens of `owner`.
///
/// Emits a {Approval} event.
function _approve(address owner, address spender, uint256 amount) internal virtual {
/// @solidity memory-safe-assembly
assembly {
let owner_ := shl(96, owner)
// Compute the allowance slot and store the amount.
mstore(0x20, spender)
mstore(0x0c, or(owner_, _ALLOWANCE_SLOT_SEED))
sstore(keccak256(0x0c, 0x34), amount)
// Emit the {Approval} event.
mstore(0x00, amount)
log3(0x00, 0x20, _APPROVAL_EVENT_SIGNATURE, shr(96, owner_), shr(96, mload(0x2c)))
}
}
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
/* HOOKS TO OVERRIDE */
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/
/// @dev Hook that is called before any transfer of tokens.
/// This includes minting and burning.
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
/// @dev Hook that is called after any transfer of tokens.
/// This includes minting and burning.
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.21;
interface IFriendtechSharesV1 {
function sharesBalance(address sharesSubject, address holder) external view returns (uint256);
function sharesSupply(address sharesSubject) external view returns (uint256);
function getPrice(uint256 supply, uint256 amount) external pure returns (uint256);
function getBuyPrice(address sharesSubject, uint256 amount) external view returns (uint256);
function getSellPrice(address sharesSubject, uint256 amount) external view returns (uint256);
function getBuyPriceAfterFee(address sharesSubject, uint256 amount) external view returns (uint256);
function getSellPriceAfterFee(address sharesSubject, uint256 amount) external view returns (uint256);
function buyShares(address sharesSubject, uint256 amount) external payable;
function sellShares(address sharesSubject, uint256 amount) external;
}{
"remappings": [
"ds-test/=lib/forge-std/lib/ds-test/src/",
"forge-std/=lib/forge-std/src/",
"solady/=lib/solady/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "none",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "paris",
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllowanceOverflow","type":"error"},{"inputs":[],"name":"AllowanceUnderflow","type":"error"},{"inputs":[],"name":"InsufficientAllowance","type":"error"},{"inputs":[],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"InvalidPermit","type":"error"},{"inputs":[],"name":"PermitExpired","type":"error"},{"inputs":[],"name":"TotalSupplyOverflow","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":"amount","type":"uint256"}],"name":"Approval","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":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"result","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FRIENDTECH","outputs":[{"internalType":"contract IFriendtechSharesV1","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"burn","outputs":[{"internalType":"uint256","name":"proceeds","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"difference","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"difference","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_target","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"refund","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"__name","type":"string"},{"internalType":"string","name":"__symbol","type":"string"}],"name":"setNameAndSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"target","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","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":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
0x60e0604052600d60a09081526c15dc985c1c1959119c9a595b99609a1b60c0526001906200002e908262000114565b50604080518082019091526002808252612ba360f11b60208301529062000056908262000114565b503480156200006457600080fd5b5033608052620001e0565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200009a57607f821691505b602082108103620000bb57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200010f57600081815260208120601f850160051c81016020861015620000ea5750805b601f850160051c820191505b818110156200010b57828155600101620000f6565b5050505b505050565b81516001600160401b038111156200013057620001306200006f565b620001488162000141845462000085565b84620000c1565b602080601f831160018114620001805760008415620001675750858301515b600019600386901b1c1916600185901b1785556200010b565b600085815260208120601f198616915b82811015620001b15788860151825594840194600190910190840162000190565b5085821015620001d05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6080516112286200020a6000396000818161036f0152818161073c0152610b1d01526112286000f3fe6080604052600436106101395760003560e01c806395d89b41116100ab578063c45a01551161006f578063c45a01551461035d578063c4d66de8146103a9578063d4b83992146103c9578063d505accf146103e9578063dd62ed3e14610409578063febf6e761461043f57600080fd5b806395d89b41146102d55780639dc29fac146102ea578063a0712d681461030a578063a457c2d71461031d578063a9059cbb1461033d57600080fd5b8063313ce567116100fd578063313ce567146101fc5780633644e51514610218578063395093511461022d5780635a4462151461024d57806370a082311461026f5780637ecebe00146102a257600080fd5b8063059f8b161461014557806306fdde031461016d578063095ea7b31461018f57806318160ddd146101bf57806323b872dd146101dc57600080fd5b3661014057005b600080fd5b34801561015157600080fd5b5061015a606481565b6040519081526020015b60405180910390f35b34801561017957600080fd5b50610182610467565b6040516101649190610d6a565b34801561019b57600080fd5b506101af6101aa366004610dd4565b6104f9565b6040519015158152602001610164565b3480156101cb57600080fd5b506805345cdf77eb68f44c5461015a565b3480156101e857600080fd5b506101af6101f7366004610dfe565b61053b565b34801561020857600080fd5b5060405160128152602001610164565b34801561022457600080fd5b5061015a6105e7565b34801561023957600080fd5b506101af610248366004610dd4565b61065d565b34801561025957600080fd5b5061026d610268366004610edd565b6106bd565b005b34801561027b57600080fd5b5061015a61028a366004610f41565b6387a211a2600c908152600091909152602090205490565b3480156102ae57600080fd5b5061015a6102bd366004610f41565b6338377508600c908152600091909152602090205490565b3480156102e157600080fd5b5061018261070e565b3480156102f657600080fd5b5061015a610305366004610dd4565b61071d565b61015a610318366004610f63565b610869565b34801561032957600080fd5b506101af610338366004610dd4565b610a48565b34801561034957600080fd5b506101af610358366004610dd4565b610aa9565b34801561036957600080fd5b506103917f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610164565b3480156103b557600080fd5b5061026d6103c4366004610f41565b610b12565b3480156103d557600080fd5b50600054610391906001600160a01b031681565b3480156103f557600080fd5b5061026d610404366004610f7c565b610b7c565b34801561041557600080fd5b5061015a610424366004610fef565b602052637f5e9f20600c908152600091909152603490205490565b34801561044b57600080fd5b5061039173cf205808ed36593aa40a44f10c7f7c2f67d4a4d481565b60606001805461047690611022565b80601f01602080910402602001604051908101604052809291908181526020018280546104a290611022565b80156104ef5780601f106104c4576101008083540402835291602001916104ef565b820191906000526020600020905b8154815290600101906020018083116104d257829003601f168201915b5050505050905090565b600082602052637f5e9f20600c5233600052816034600c205581600052602c5160601c336000805160206111fc83398151915260206000a35060015b92915050565b60008360601b33602052637f5e9f208117600c526034600c208054600019811461057b5780851115610575576313be252b6000526004601cfd5b84810382555b50506387a211a28117600c526020600c208054808511156105a45763f4d678b86000526004601cfd5b84810382555050836000526020600c208381540181555082602052600c5160601c8160601c6000805160206111dc833981519152602080a3505060019392505050565b60405160006105f4610467565b80516020918201207f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f845290830152507fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6604082015246606082015230608082015260a0902090565b600082602052637f5e9f20600c52336000526034600c2080548381018181101561068f5763f90670666000526004601cfd5b80835580600052505050602c5160601c336000805160206111fc83398151915260206000a350600192915050565b6000546001600160a01b031633146106f05760405162461bcd60e51b81526004016106e790611056565b60405180910390fd5b60016106fc83826110c2565b50600261070982826110c2565b505050565b60606002805461047690611022565b60006001600160a01b03831633148061075e5750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b61077a5760405162461bcd60e51b81526004016106e790611056565b6107a083610789606485611198565b61079b90670de0b6b3a7640000611198565b610c98565b600054604051632d47414d60e21b81526001600160a01b0390911660048201526024810183905273cf205808ed36593aa40a44f10c7f7c2f67d4a4d49063b51d053490604401600060405180830381600087803b15801561080057600080fd5b505af1158015610814573d6000803e3d6000fd5b5050604051479350339250479150600081818185875af1925050503d806000811461085b576040519150601f19603f3d011682016040523d82523d6000602084013e610860565b606091505b50505092915050565b60008054604051630f026f6d60e01b81526001600160a01b03909116600482015260248101839052819073cf205808ed36593aa40a44f10c7f7c2f67d4a4d490630f026f6d90604401602060405180830381865afa1580156108cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f391906111af565b9050803410156109455760405162461bcd60e51b815260206004820152601d60248201527f57726170706564467269656e643a206e6f7420656e6f7567682065746800000060448201526064016106e7565b600054604051636945b12360e01b81526001600160a01b0390911660048201526024810184905273cf205808ed36593aa40a44f10c7f7c2f67d4a4d490636945b1239083906044016000604051808303818588803b1580156109a657600080fd5b505af11580156109ba573d6000803e3d6000fd5b50505050506109e7336064856109d09190611198565b6109e290670de0b6b3a7640000611198565b610cfd565b6109f181346111c8565b91508115610a425760405133908390600081818185875af1925050503d8060008114610a39576040519150601f19603f3d011682016040523d82523d6000602084013e610a3e565b606091505b5050505b50919050565b600082602052637f5e9f20600c52336000526034600c20805483811015610a7757638301ab386000526004601cfd5b8381039050808255806000525050602c5160601c336000805160206111fc83398151915260206000a350600192915050565b60006387a211a2600c52336000526020600c20805480841115610ad45763f4d678b86000526004601cfd5b83810382555050826000526020600c208281540181555081602052600c5160601c336000805160206111dc833981519152602080a350600192915050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405162461bcd60e51b81526004016106e790611056565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000610b866105e7565b905060405185421115610ba157631a15a3cc6000526004601cfd5b8860601b60601c98508760601b60601c97506338377508600c52886000526020600c2080546001810182557f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c983528a602084015289604084015288606084015280608084015250508560a08201526119016000528160205260c081206040526042601e206000528460ff1660205283604052826060526020806080600060015afa50883d5114610c595763ddafbaef6000526004601cfd5b6303faf4f960a51b88176040526034602c2087905587896000805160206111fc833981519152602060608501a360405250506000606052505050505050565b6387a211a2600c52816000526020600c20805480831115610cc15763f4d678b86000526004601cfd5b82900390556805345cdf77eb68f44c8054829003905560008181526001600160a01b0383166000805160206111dc833981519152602083a35050565b6805345cdf77eb68f44c5481810181811015610d215763e5cfe9576000526004601cfd5b806805345cdf77eb68f44c5550506387a211a2600c52816000526020600c208181540181555080602052600c5160601c60006000805160206111dc833981519152602080a35050565b600060208083528351808285015260005b81811015610d9757858101830151858201604001528201610d7b565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610dcf57600080fd5b919050565b60008060408385031215610de757600080fd5b610df083610db8565b946020939093013593505050565b600080600060608486031215610e1357600080fd5b610e1c84610db8565b9250610e2a60208501610db8565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610e6157600080fd5b813567ffffffffffffffff80821115610e7c57610e7c610e3a565b604051601f8301601f19908116603f01168101908282118183101715610ea457610ea4610e3a565b81604052838152866020858801011115610ebd57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215610ef057600080fd5b823567ffffffffffffffff80821115610f0857600080fd5b610f1486838701610e50565b93506020850135915080821115610f2a57600080fd5b50610f3785828601610e50565b9150509250929050565b600060208284031215610f5357600080fd5b610f5c82610db8565b9392505050565b600060208284031215610f7557600080fd5b5035919050565b600080600080600080600060e0888a031215610f9757600080fd5b610fa088610db8565b9650610fae60208901610db8565b95506040880135945060608801359350608088013560ff81168114610fd257600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561100257600080fd5b61100b83610db8565b915061101960208401610db8565b90509250929050565b600181811c9082168061103657607f821691505b602082108103610a4257634e487b7160e01b600052602260045260246000fd5b6020808252600490820152630c2eae8d60e31b604082015260600190565b601f82111561070957600081815260208120601f850160051c8101602086101561109b5750805b601f850160051c820191505b818110156110ba578281556001016110a7565b505050505050565b815167ffffffffffffffff8111156110dc576110dc610e3a565b6110f0816110ea8454611022565b84611074565b602080601f831160018114611125576000841561110d5750858301515b600019600386901b1c1916600185901b1785556110ba565b600085815260208120601f198616915b8281101561115457888601518255948401946001909101908401611135565b50858210156111725787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761053557610535611182565b6000602082840312156111c157600080fd5b5051919050565b818103818111156105355761053561118256feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925a164736f6c6343000815000a
Deployed Bytecode
0x6080604052600436106101395760003560e01c806395d89b41116100ab578063c45a01551161006f578063c45a01551461035d578063c4d66de8146103a9578063d4b83992146103c9578063d505accf146103e9578063dd62ed3e14610409578063febf6e761461043f57600080fd5b806395d89b41146102d55780639dc29fac146102ea578063a0712d681461030a578063a457c2d71461031d578063a9059cbb1461033d57600080fd5b8063313ce567116100fd578063313ce567146101fc5780633644e51514610218578063395093511461022d5780635a4462151461024d57806370a082311461026f5780637ecebe00146102a257600080fd5b8063059f8b161461014557806306fdde031461016d578063095ea7b31461018f57806318160ddd146101bf57806323b872dd146101dc57600080fd5b3661014057005b600080fd5b34801561015157600080fd5b5061015a606481565b6040519081526020015b60405180910390f35b34801561017957600080fd5b50610182610467565b6040516101649190610d6a565b34801561019b57600080fd5b506101af6101aa366004610dd4565b6104f9565b6040519015158152602001610164565b3480156101cb57600080fd5b506805345cdf77eb68f44c5461015a565b3480156101e857600080fd5b506101af6101f7366004610dfe565b61053b565b34801561020857600080fd5b5060405160128152602001610164565b34801561022457600080fd5b5061015a6105e7565b34801561023957600080fd5b506101af610248366004610dd4565b61065d565b34801561025957600080fd5b5061026d610268366004610edd565b6106bd565b005b34801561027b57600080fd5b5061015a61028a366004610f41565b6387a211a2600c908152600091909152602090205490565b3480156102ae57600080fd5b5061015a6102bd366004610f41565b6338377508600c908152600091909152602090205490565b3480156102e157600080fd5b5061018261070e565b3480156102f657600080fd5b5061015a610305366004610dd4565b61071d565b61015a610318366004610f63565b610869565b34801561032957600080fd5b506101af610338366004610dd4565b610a48565b34801561034957600080fd5b506101af610358366004610dd4565b610aa9565b34801561036957600080fd5b506103917f00000000000000000000000068250bf6d105fe33f3120c5aff385160d54eb5f281565b6040516001600160a01b039091168152602001610164565b3480156103b557600080fd5b5061026d6103c4366004610f41565b610b12565b3480156103d557600080fd5b50600054610391906001600160a01b031681565b3480156103f557600080fd5b5061026d610404366004610f7c565b610b7c565b34801561041557600080fd5b5061015a610424366004610fef565b602052637f5e9f20600c908152600091909152603490205490565b34801561044b57600080fd5b5061039173cf205808ed36593aa40a44f10c7f7c2f67d4a4d481565b60606001805461047690611022565b80601f01602080910402602001604051908101604052809291908181526020018280546104a290611022565b80156104ef5780601f106104c4576101008083540402835291602001916104ef565b820191906000526020600020905b8154815290600101906020018083116104d257829003601f168201915b5050505050905090565b600082602052637f5e9f20600c5233600052816034600c205581600052602c5160601c336000805160206111fc83398151915260206000a35060015b92915050565b60008360601b33602052637f5e9f208117600c526034600c208054600019811461057b5780851115610575576313be252b6000526004601cfd5b84810382555b50506387a211a28117600c526020600c208054808511156105a45763f4d678b86000526004601cfd5b84810382555050836000526020600c208381540181555082602052600c5160601c8160601c6000805160206111dc833981519152602080a3505060019392505050565b60405160006105f4610467565b80516020918201207f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f845290830152507fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6604082015246606082015230608082015260a0902090565b600082602052637f5e9f20600c52336000526034600c2080548381018181101561068f5763f90670666000526004601cfd5b80835580600052505050602c5160601c336000805160206111fc83398151915260206000a350600192915050565b6000546001600160a01b031633146106f05760405162461bcd60e51b81526004016106e790611056565b60405180910390fd5b60016106fc83826110c2565b50600261070982826110c2565b505050565b60606002805461047690611022565b60006001600160a01b03831633148061075e5750336001600160a01b037f00000000000000000000000068250bf6d105fe33f3120c5aff385160d54eb5f216145b61077a5760405162461bcd60e51b81526004016106e790611056565b6107a083610789606485611198565b61079b90670de0b6b3a7640000611198565b610c98565b600054604051632d47414d60e21b81526001600160a01b0390911660048201526024810183905273cf205808ed36593aa40a44f10c7f7c2f67d4a4d49063b51d053490604401600060405180830381600087803b15801561080057600080fd5b505af1158015610814573d6000803e3d6000fd5b5050604051479350339250479150600081818185875af1925050503d806000811461085b576040519150601f19603f3d011682016040523d82523d6000602084013e610860565b606091505b50505092915050565b60008054604051630f026f6d60e01b81526001600160a01b03909116600482015260248101839052819073cf205808ed36593aa40a44f10c7f7c2f67d4a4d490630f026f6d90604401602060405180830381865afa1580156108cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f391906111af565b9050803410156109455760405162461bcd60e51b815260206004820152601d60248201527f57726170706564467269656e643a206e6f7420656e6f7567682065746800000060448201526064016106e7565b600054604051636945b12360e01b81526001600160a01b0390911660048201526024810184905273cf205808ed36593aa40a44f10c7f7c2f67d4a4d490636945b1239083906044016000604051808303818588803b1580156109a657600080fd5b505af11580156109ba573d6000803e3d6000fd5b50505050506109e7336064856109d09190611198565b6109e290670de0b6b3a7640000611198565b610cfd565b6109f181346111c8565b91508115610a425760405133908390600081818185875af1925050503d8060008114610a39576040519150601f19603f3d011682016040523d82523d6000602084013e610a3e565b606091505b5050505b50919050565b600082602052637f5e9f20600c52336000526034600c20805483811015610a7757638301ab386000526004601cfd5b8381039050808255806000525050602c5160601c336000805160206111fc83398151915260206000a350600192915050565b60006387a211a2600c52336000526020600c20805480841115610ad45763f4d678b86000526004601cfd5b83810382555050826000526020600c208281540181555081602052600c5160601c336000805160206111dc833981519152602080a350600192915050565b336001600160a01b037f00000000000000000000000068250bf6d105fe33f3120c5aff385160d54eb5f21614610b5a5760405162461bcd60e51b81526004016106e790611056565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000610b866105e7565b905060405185421115610ba157631a15a3cc6000526004601cfd5b8860601b60601c98508760601b60601c97506338377508600c52886000526020600c2080546001810182557f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c983528a602084015289604084015288606084015280608084015250508560a08201526119016000528160205260c081206040526042601e206000528460ff1660205283604052826060526020806080600060015afa50883d5114610c595763ddafbaef6000526004601cfd5b6303faf4f960a51b88176040526034602c2087905587896000805160206111fc833981519152602060608501a360405250506000606052505050505050565b6387a211a2600c52816000526020600c20805480831115610cc15763f4d678b86000526004601cfd5b82900390556805345cdf77eb68f44c8054829003905560008181526001600160a01b0383166000805160206111dc833981519152602083a35050565b6805345cdf77eb68f44c5481810181811015610d215763e5cfe9576000526004601cfd5b806805345cdf77eb68f44c5550506387a211a2600c52816000526020600c208181540181555080602052600c5160601c60006000805160206111dc833981519152602080a35050565b600060208083528351808285015260005b81811015610d9757858101830151858201604001528201610d7b565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610dcf57600080fd5b919050565b60008060408385031215610de757600080fd5b610df083610db8565b946020939093013593505050565b600080600060608486031215610e1357600080fd5b610e1c84610db8565b9250610e2a60208501610db8565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610e6157600080fd5b813567ffffffffffffffff80821115610e7c57610e7c610e3a565b604051601f8301601f19908116603f01168101908282118183101715610ea457610ea4610e3a565b81604052838152866020858801011115610ebd57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215610ef057600080fd5b823567ffffffffffffffff80821115610f0857600080fd5b610f1486838701610e50565b93506020850135915080821115610f2a57600080fd5b50610f3785828601610e50565b9150509250929050565b600060208284031215610f5357600080fd5b610f5c82610db8565b9392505050565b600060208284031215610f7557600080fd5b5035919050565b600080600080600080600060e0888a031215610f9757600080fd5b610fa088610db8565b9650610fae60208901610db8565b95506040880135945060608801359350608088013560ff81168114610fd257600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561100257600080fd5b61100b83610db8565b915061101960208401610db8565b90509250929050565b600181811c9082168061103657607f821691505b602082108103610a4257634e487b7160e01b600052602260045260246000fd5b6020808252600490820152630c2eae8d60e31b604082015260600190565b601f82111561070957600081815260208120601f850160051c8101602086101561109b5750805b601f850160051c820191505b818110156110ba578281556001016110a7565b505050505050565b815167ffffffffffffffff8111156110dc576110dc610e3a565b6110f0816110ea8454611022565b84611074565b602080601f831160018114611125576000841561110d5750858301515b600019600386901b1c1916600185901b1785556110ba565b600085815260208120601f198616915b8281101561115457888601518255948401946001909101908401611135565b50858210156111725787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761053557610535611182565b6000602082840312156111c157600080fd5b5051919050565b818103818111156105355761053561118256feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925a164736f6c6343000815000a
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)