Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 34,375 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Approve | 401809950 | 65 days ago | IN | 0 ETH | 0.00000028 | ||||
| Approve | 401491968 | 66 days ago | IN | 0 ETH | 0.00000046 | ||||
| Approve | 392595892 | 92 days ago | IN | 0 ETH | 0.00000064 | ||||
| Approve | 381824453 | 123 days ago | IN | 0 ETH | 0.00000027 | ||||
| Approve | 379706139 | 129 days ago | IN | 0 ETH | 0.00000028 | ||||
| Approve | 375704954 | 141 days ago | IN | 0 ETH | 0.0000005 | ||||
| Transfer | 374512310 | 144 days ago | IN | 0 ETH | 0.00000031 | ||||
| Approve | 371146102 | 154 days ago | IN | 0 ETH | 0.00000314 | ||||
| Approve | 370866396 | 155 days ago | IN | 0 ETH | 0.00000027 | ||||
| Approve | 369810070 | 158 days ago | IN | 0 ETH | 0.00000026 | ||||
| Transfer | 369530742 | 159 days ago | IN | 0 ETH | 0.00000048 | ||||
| Transfer | 369448865 | 159 days ago | IN | 0 ETH | 0.00000048 | ||||
| Approve | 368962800 | 160 days ago | IN | 0 ETH | 0.00000048 | ||||
| Transfer | 366734865 | 167 days ago | IN | 0 ETH | 0.00000059 | ||||
| Transfer | 366342988 | 168 days ago | IN | 0 ETH | 0.00000091 | ||||
| Approve | 347058538 | 224 days ago | IN | 0 ETH | 0.00000055 | ||||
| Transfer | 345113936 | 229 days ago | IN | 0 ETH | 0.00000049 | ||||
| Transfer | 344383787 | 231 days ago | IN | 0 ETH | 0.00000057 | ||||
| Transfer | 343693161 | 233 days ago | IN | 0 ETH | 0.00000057 | ||||
| Transfer | 343595121 | 234 days ago | IN | 0 ETH | 0.00000073 | ||||
| Transfer | 341612617 | 239 days ago | IN | 0 ETH | 0.00001571 | ||||
| Transfer | 340278330 | 243 days ago | IN | 0 ETH | 0.00000029 | ||||
| Transfer | 339296150 | 246 days ago | IN | 0 ETH | 0.00000171 | ||||
| Transfer | 339294488 | 246 days ago | IN | 0 ETH | 0.00000106 | ||||
| Transfer | 339211968 | 246 days ago | IN | 0 ETH | 0.00000054 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
BamaToken
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Capped.sol";
// Error
error BamaToken__NotOwner();
error BamaToken__HasAllocation();
error BamaToken__NoMoreCommunityToken();
error BamaToken__MaxMintAmountExceeded();
contract BamaToken is ERC20Capped {
// State Variables
address private immutable i_owner;
string internal constant TOKEN_NAME = "Bama";
string internal constant TOKEN_TICKER = "BAMA";
uint256 internal constant CAP = 500_000_000;
uint256 internal constant TOKEN_SIZE = 10 ** 18;
uint256 internal constant COMMUNITY_TOKEN = ((CAP * TOKEN_SIZE) * 45) / 100; // 45%
uint256 internal constant IDO_TOKEN = ((CAP * TOKEN_SIZE) * 4) / 100; // 4%
uint256 internal constant LIQUIDITY_TOKEN = ((CAP * TOKEN_SIZE) * 10) / 100; // 10%
uint256 internal constant STAKING_TOKEN = ((CAP * TOKEN_SIZE) * 12) / 100; // 12%
uint256 internal constant TREASURY_TOKEN = ((CAP * TOKEN_SIZE) * 7) / 100; // 7%
uint256 internal constant FOUNDATION_TOKEN = ((CAP * TOKEN_SIZE) * 12) / 100; // 12%
uint256 internal constant TEAM_TOKEN = ((CAP * TOKEN_SIZE) * 5) / 100; // 5%
uint256 internal constant SEED_INVESTORS_TOKEN =
((CAP * TOKEN_SIZE) * 5) / 100; // 5%
uint256 internal constant MAX_MINT_AMOUNT = 10_000 * TOKEN_SIZE;
uint256 internal constant OWNER_GAS_FEES = 10_000 * TOKEN_SIZE;
uint256 private _amountMintedBycommunity = 0;
mapping(string => uint256) allocationTokens;
mapping(string => address) allocationAccounts;
// Modifiers
modifier onlyOwner() {
if (msg.sender != i_owner) revert BamaToken__NotOwner();
_;
}
// Events
event Allocated(
address indexed to,
uint256 indexed amount,
string indexed allocationType
);
event Minted(
address indexed to,
uint256 indexed amount,
string indexed mintId
);
constructor() ERC20(TOKEN_NAME, TOKEN_TICKER) ERC20Capped(CAP * TOKEN_SIZE) {
i_owner = msg.sender;
_amountMintedBycommunity += OWNER_GAS_FEES;
ERC20._mint(msg.sender, OWNER_GAS_FEES);
allocationTokens["IDO_TOKEN"] = IDO_TOKEN;
allocationTokens["LIQUIDITY_TOKEN"] = LIQUIDITY_TOKEN;
allocationTokens["STAKING_TOKEN"] = STAKING_TOKEN;
allocationTokens["TREASURY_TOKEN"] = TREASURY_TOKEN;
allocationTokens["FOUNDATION_TOKEN"] = FOUNDATION_TOKEN;
allocationTokens["TEAM_TOKEN"] = TEAM_TOKEN;
allocationTokens["SEED_INVESTORS_TOKEN"] = SEED_INVESTORS_TOKEN;
}
function allocateToken(
address account,
string calldata allocationType
) external onlyOwner {
if (allocationAccounts[allocationType] == account)
revert BamaToken__HasAllocation();
uint256 amount = allocationTokens[allocationType];
allocationAccounts[allocationType] = account;
ERC20._mint(account, amount);
emit Allocated(account, amount, allocationType);
}
function mintToken(
address account,
uint256 amount,
string calldata mintId
) external onlyOwner {
if ((_amountMintedBycommunity + amount) > COMMUNITY_TOKEN)
revert BamaToken__NoMoreCommunityToken();
if (amount > MAX_MINT_AMOUNT) revert BamaToken__MaxMintAmountExceeded();
_amountMintedBycommunity += amount;
ERC20._mint(account, amount);
emit Minted(account, amount, mintId);
}
function getOwner() public view returns (address) {
return i_owner;
}
function getMintedBamaAmount() public view returns (uint256) {
return _amountMintedBycommunity;
}
function getAllocation(
string calldata allocationType
) public view returns (uint256) {
return allocationTokens[allocationType];
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 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 ERC721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-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 ERC1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 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.0.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 ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*/
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}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* 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:
* ```
* 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.0.0) (token/ERC20/extensions/ERC20Capped.sol)
pragma solidity ^0.8.20;
import {ERC20} from "../ERC20.sol";
/**
* @dev Extension of {ERC20} that adds a cap to the supply of tokens.
*/
abstract contract ERC20Capped is ERC20 {
uint256 private immutable _cap;
/**
* @dev Total supply cap has been exceeded.
*/
error ERC20ExceededCap(uint256 increasedSupply, uint256 cap);
/**
* @dev The supplied cap is not a valid cap.
*/
error ERC20InvalidCap(uint256 cap);
/**
* @dev Sets the value of the `cap`. This value is immutable, it can only be
* set once during construction.
*/
constructor(uint256 cap_) {
if (cap_ == 0) {
revert ERC20InvalidCap(0);
}
_cap = cap_;
}
/**
* @dev Returns the cap on the token's total supply.
*/
function cap() public view virtual returns (uint256) {
return _cap;
}
/**
* @dev See {ERC20-_update}.
*/
function _update(address from, address to, uint256 value) internal virtual override {
super._update(from, to, value);
if (from == address(0)) {
uint256 maxSupply = cap();
uint256 supply = totalSupply();
if (supply > maxSupply) {
revert ERC20ExceededCap(supply, maxSupply);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.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 ERC20 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.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the 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.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;
}
}{
"evmVersion": "paris",
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BamaToken__HasAllocation","type":"error"},{"inputs":[],"name":"BamaToken__MaxMintAmountExceeded","type":"error"},{"inputs":[],"name":"BamaToken__NoMoreCommunityToken","type":"error"},{"inputs":[],"name":"BamaToken__NotOwner","type":"error"},{"inputs":[{"internalType":"uint256","name":"increasedSupply","type":"uint256"},{"internalType":"uint256","name":"cap","type":"uint256"}],"name":"ERC20ExceededCap","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":"uint256","name":"cap","type":"uint256"}],"name":"ERC20InvalidCap","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"string","name":"allocationType","type":"string"}],"name":"Allocated","type":"event"},{"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":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"string","name":"mintId","type":"string"}],"name":"Minted","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"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"string","name":"allocationType","type":"string"}],"name":"allocateToken","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":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"allocationType","type":"string"}],"name":"getAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintedBamaAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"mintId","type":"string"}],"name":"mintToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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"}]Contract Creation Code
60c060405260006005553480156200001657600080fd5b50670de0b6b3a7640000631dcd6500620000319190620007de565b6040518060400160405280600481526020017f42616d61000000000000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f42414d41000000000000000000000000000000000000000000000000000000008152508160039081620000ae919062000a99565b508060049081620000c0919062000a99565b505050600081036200010c5760006040517f392e1e2700000000000000000000000000000000000000000000000000000000815260040162000103919062000bc3565b60405180910390fd5b8060808181525050503373ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1681525050670de0b6b3a7640000612710620001619190620007de565b6005600082825462000174919062000be0565b92505081905550620001a433670de0b6b3a7640000612710620001989190620007de565b6200041260201b60201c565b60646004670de0b6b3a7640000631dcd6500620001c29190620007de565b620001ce9190620007de565b620001da919062000c4a565b6006604051620001ea9062000cdd565b9081526020016040518091039020819055506064600a670de0b6b3a7640000631dcd65006200021a9190620007de565b620002269190620007de565b62000232919062000c4a565b6006604051620002429062000d44565b9081526020016040518091039020819055506064600c670de0b6b3a7640000631dcd6500620002729190620007de565b6200027e9190620007de565b6200028a919062000c4a565b60066040516200029a9062000dab565b90815260200160405180910390208190555060646007670de0b6b3a7640000631dcd6500620002ca9190620007de565b620002d69190620007de565b620002e2919062000c4a565b6006604051620002f29062000e12565b9081526020016040518091039020819055506064600c670de0b6b3a7640000631dcd6500620003229190620007de565b6200032e9190620007de565b6200033a919062000c4a565b60066040516200034a9062000e79565b90815260200160405180910390208190555060646005670de0b6b3a7640000631dcd65006200037a9190620007de565b620003869190620007de565b62000392919062000c4a565b6006604051620003a29062000ee0565b90815260200160405180910390208190555060646005670de0b6b3a7640000631dcd6500620003d29190620007de565b620003de9190620007de565b620003ea919062000c4a565b6006604051620003fa9062000f47565b90815260200160405180910390208190555062001058565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620004875760006040517fec442f050000000000000000000000000000000000000000000000000000000081526004016200047e919062000fa3565b60405180910390fd5b6200049b600083836200049f60201b60201c565b5050565b620004b28383836200056160201b60201c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036200055c576000620004f96200079160201b60201c565b905060006200050d6200079b60201b60201c565b905081811115620005595780826040517f9e79f8540000000000000000000000000000000000000000000000000000000081526004016200055092919062000fd1565b60405180910390fd5b50505b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603620005b7578060026000828254620005aa919062000be0565b925050819055506200068d565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101562000646578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016200063d9392919062000ffe565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620006d8578060026000828254039250508190555062000725565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200078491906200103b565b60405180910390a3505050565b6000608051905090565b6000600254905090565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000620007eb82620007a5565b9150620007f883620007a5565b92508282026200080881620007a5565b91508282048414831517620008225762000821620007af565b5b5092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620008ab57607f821691505b602082108103620008c157620008c062000863565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200092b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620008ec565b620009378683620008ec565b95508019841693508086168417925050509392505050565b6000819050919050565b60006200097a620009746200096e84620007a5565b6200094f565b620007a5565b9050919050565b6000819050919050565b620009968362000959565b620009ae620009a58262000981565b848454620008f9565b825550505050565b600090565b620009c5620009b6565b620009d28184846200098b565b505050565b5b81811015620009fa57620009ee600082620009bb565b600181019050620009d8565b5050565b601f82111562000a495762000a1381620008c7565b62000a1e84620008dc565b8101602085101562000a2e578190505b62000a4662000a3d85620008dc565b830182620009d7565b50505b505050565b600082821c905092915050565b600062000a6e6000198460080262000a4e565b1980831691505092915050565b600062000a89838362000a5b565b9150826002028217905092915050565b62000aa48262000829565b67ffffffffffffffff81111562000ac05762000abf62000834565b5b62000acc825462000892565b62000ad9828285620009fe565b600060209050601f83116001811462000b11576000841562000afc578287015190505b62000b08858262000a7b565b86555062000b78565b601f19841662000b2186620008c7565b60005b8281101562000b4b5784890151825560018201915060208501945060208101905062000b24565b8683101562000b6b578489015162000b67601f89168262000a5b565b8355505b6001600288020188555050505b505050505050565b6000819050919050565b600062000bab62000ba562000b9f8462000b80565b6200094f565b620007a5565b9050919050565b62000bbd8162000b8a565b82525050565b600060208201905062000bda600083018462000bb2565b92915050565b600062000bed82620007a5565b915062000bfa83620007a5565b925082820190508082111562000c155762000c14620007af565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600062000c5782620007a5565b915062000c6483620007a5565b92508262000c775762000c7662000c1b565b5b828204905092915050565b600081905092915050565b7f49444f5f544f4b454e0000000000000000000000000000000000000000000000600082015250565b600062000cc560098362000c82565b915062000cd28262000c8d565b600982019050919050565b600062000cea8262000cb6565b9150819050919050565b7f4c49515549444954595f544f4b454e0000000000000000000000000000000000600082015250565b600062000d2c600f8362000c82565b915062000d398262000cf4565b600f82019050919050565b600062000d518262000d1d565b9150819050919050565b7f5354414b494e475f544f4b454e00000000000000000000000000000000000000600082015250565b600062000d93600d8362000c82565b915062000da08262000d5b565b600d82019050919050565b600062000db88262000d84565b9150819050919050565b7f54524541535552595f544f4b454e000000000000000000000000000000000000600082015250565b600062000dfa600e8362000c82565b915062000e078262000dc2565b600e82019050919050565b600062000e1f8262000deb565b9150819050919050565b7f464f554e444154494f4e5f544f4b454e00000000000000000000000000000000600082015250565b600062000e6160108362000c82565b915062000e6e8262000e29565b601082019050919050565b600062000e868262000e52565b9150819050919050565b7f5445414d5f544f4b454e00000000000000000000000000000000000000000000600082015250565b600062000ec8600a8362000c82565b915062000ed58262000e90565b600a82019050919050565b600062000eed8262000eb9565b9150819050919050565b7f534545445f494e564553544f52535f544f4b454e000000000000000000000000600082015250565b600062000f2f60148362000c82565b915062000f3c8262000ef7565b601482019050919050565b600062000f548262000f20565b9150819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000f8b8262000f5e565b9050919050565b62000f9d8162000f7e565b82525050565b600060208201905062000fba600083018462000f92565b92915050565b62000fcb81620007a5565b82525050565b600060408201905062000fe8600083018562000fc0565b62000ff7602083018462000fc0565b9392505050565b600060608201905062001015600083018662000f92565b62001024602083018562000fc0565b62001033604083018462000fc0565b949350505050565b600060208201905062001052600083018462000fc0565b92915050565b60805160a0516117bd6200108c600039600081816104ba0152818161061c01526108400152600061044a01526117bd6000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063dd62ed3e11610066578063dd62ed3e1461029e578063e2b47f08146102ce578063e34902ef146102ea578063f76e8ba914610308576100f5565b806370a0823114610202578063893d20e81461023257806395d89b4114610250578063a9059cbb1461026e576100f5565b806318160ddd116100d357806318160ddd1461017857806323b872dd14610196578063313ce567146101c6578063355274ea146101e4576100f5565b806302c35e8e146100fa57806306fdde031461012a578063095ea7b314610148575b600080fd5b610114600480360381019061010f9190611142565b610324565b60405161012191906111a8565b60405180910390f35b61013261034f565b60405161013f9190611253565b60405180910390f35b610162600480360381019061015d91906112ff565b6103e1565b60405161016f919061135a565b60405180910390f35b610180610404565b60405161018d91906111a8565b60405180910390f35b6101b060048036038101906101ab9190611375565b61040e565b6040516101bd919061135a565b60405180910390f35b6101ce61043d565b6040516101db91906113e4565b60405180910390f35b6101ec610446565b6040516101f991906111a8565b60405180910390f35b61021c600480360381019061021791906113ff565b61046e565b60405161022991906111a8565b60405180910390f35b61023a6104b6565b604051610247919061143b565b60405180910390f35b6102586104de565b6040516102659190611253565b60405180910390f35b610288600480360381019061028391906112ff565b610570565b604051610295919061135a565b60405180910390f35b6102b860048036038101906102b39190611456565b610593565b6040516102c591906111a8565b60405180910390f35b6102e860048036038101906102e39190611496565b61061a565b005b6102f2610834565b6040516102ff91906111a8565b60405180910390f35b610322600480360381019061031d91906114f6565b61083e565b005b6000600683836040516103389291906115a9565b908152602001604051809103902054905092915050565b60606003805461035e906115f1565b80601f016020809104026020016040519081016040528092919081815260200182805461038a906115f1565b80156103d75780601f106103ac576101008083540402835291602001916103d7565b820191906000526020600020905b8154815290600101906020018083116103ba57829003601f168201915b5050505050905090565b6000806103ec610a0d565b90506103f9818585610a15565b600191505092915050565b6000600254905090565b600080610419610a0d565b9050610426858285610a27565b610431858585610abb565b60019150509392505050565b60006012905090565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b6060600480546104ed906115f1565b80601f0160208091040260200160405190810160405280929190818152602001828054610519906115f1565b80156105665780601f1061053b57610100808354040283529160200191610566565b820191906000526020600020905b81548152906001019060200180831161054957829003601f168201915b5050505050905090565b60008061057b610a0d565b9050610588818585610abb565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461069f576040517f6d06367b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff16600783836040516106c89291906115a9565b908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610744576040517fee530bc300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600683836040516107589291906115a9565b9081526020016040518091039020549050836007848460405161077c9291906115a9565b908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506107d28482610baf565b82826040516107e29291906115a9565b6040518091039020818573ffffffffffffffffffffffffffffffffffffffff167fea63cffb8711e32b6c7a55622c75ae9ccb1a8a2a95a21b38eff45ef01842f1aa60405160405180910390a450505050565b6000600554905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146108c3576040517f6d06367b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6064602d670de0b6b3a7640000631dcd65006108df9190611651565b6108e99190611651565b6108f391906116c2565b8360055461090191906116f3565b1115610939576040517fc491481000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b670de0b6b3a764000061271061094f9190611651565b831115610988576040517fe38743ce00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826005600082825461099a91906116f3565b925050819055506109ab8484610baf565b81816040516109bb9291906115a9565b6040518091039020838573ffffffffffffffffffffffffffffffffffffffff167fe7cd4ce7f2a465edc730269a1305e8a48bad821e8fb7e152ec413829c01a53c460405160405180910390a450505050565b600033905090565b610a228383836001610c31565b505050565b6000610a338484610593565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610ab55781811015610aa5578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610a9c93929190611727565b60405180910390fd5b610ab484848484036000610c31565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610b2d5760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610b24919061143b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b9f5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610b96919061143b565b60405180910390fd5b610baa838383610e08565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c215760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610c18919061143b565b60405180910390fd5b610c2d60008383610e08565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610ca35760006040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610c9a919061143b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d155760006040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610d0c919061143b565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508015610e02578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610df991906111a8565b60405180910390a35b50505050565b610e13838383610eae565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ea9576000610e51610446565b90506000610e5d610404565b905081811115610ea65780826040517f9e79f854000000000000000000000000000000000000000000000000000000008152600401610e9d92919061175e565b60405180910390fd5b50505b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610f00578060026000828254610ef491906116f3565b92505081905550610fd3565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610f8c578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401610f8393929190611727565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361101c5780600260008282540392505081905550611069565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516110c691906111a8565b60405180910390a3505050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112611102576111016110dd565b5b8235905067ffffffffffffffff81111561111f5761111e6110e2565b5b60208301915083600182028301111561113b5761113a6110e7565b5b9250929050565b60008060208385031215611159576111586110d3565b5b600083013567ffffffffffffffff811115611177576111766110d8565b5b611183858286016110ec565b92509250509250929050565b6000819050919050565b6111a28161118f565b82525050565b60006020820190506111bd6000830184611199565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156111fd5780820151818401526020810190506111e2565b60008484015250505050565b6000601f19601f8301169050919050565b6000611225826111c3565b61122f81856111ce565b935061123f8185602086016111df565b61124881611209565b840191505092915050565b6000602082019050818103600083015261126d818461121a565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006112a082611275565b9050919050565b6112b081611295565b81146112bb57600080fd5b50565b6000813590506112cd816112a7565b92915050565b6112dc8161118f565b81146112e757600080fd5b50565b6000813590506112f9816112d3565b92915050565b60008060408385031215611316576113156110d3565b5b6000611324858286016112be565b9250506020611335858286016112ea565b9150509250929050565b60008115159050919050565b6113548161133f565b82525050565b600060208201905061136f600083018461134b565b92915050565b60008060006060848603121561138e5761138d6110d3565b5b600061139c868287016112be565b93505060206113ad868287016112be565b92505060406113be868287016112ea565b9150509250925092565b600060ff82169050919050565b6113de816113c8565b82525050565b60006020820190506113f960008301846113d5565b92915050565b600060208284031215611415576114146110d3565b5b6000611423848285016112be565b91505092915050565b61143581611295565b82525050565b6000602082019050611450600083018461142c565b92915050565b6000806040838503121561146d5761146c6110d3565b5b600061147b858286016112be565b925050602061148c858286016112be565b9150509250929050565b6000806000604084860312156114af576114ae6110d3565b5b60006114bd868287016112be565b935050602084013567ffffffffffffffff8111156114de576114dd6110d8565b5b6114ea868287016110ec565b92509250509250925092565b600080600080606085870312156115105761150f6110d3565b5b600061151e878288016112be565b945050602061152f878288016112ea565b935050604085013567ffffffffffffffff8111156115505761154f6110d8565b5b61155c878288016110ec565b925092505092959194509250565b600081905092915050565b82818337600083830152505050565b6000611590838561156a565b935061159d838584611575565b82840190509392505050565b60006115b6828486611584565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061160957607f821691505b60208210810361161c5761161b6115c2565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061165c8261118f565b91506116678361118f565b92508282026116758161118f565b9150828204841483151761168c5761168b611622565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006116cd8261118f565b91506116d88361118f565b9250826116e8576116e7611693565b5b828204905092915050565b60006116fe8261118f565b91506117098361118f565b925082820190508082111561172157611720611622565b5b92915050565b600060608201905061173c600083018661142c565b6117496020830185611199565b6117566040830184611199565b949350505050565b60006040820190506117736000830185611199565b6117806020830184611199565b939250505056fea2646970667358221220a8eb730d38c629a5b1ace6b44b9ee2d7d4411d0e38dfd96fdc80e0a0501f605864736f6c63430008140033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063dd62ed3e11610066578063dd62ed3e1461029e578063e2b47f08146102ce578063e34902ef146102ea578063f76e8ba914610308576100f5565b806370a0823114610202578063893d20e81461023257806395d89b4114610250578063a9059cbb1461026e576100f5565b806318160ddd116100d357806318160ddd1461017857806323b872dd14610196578063313ce567146101c6578063355274ea146101e4576100f5565b806302c35e8e146100fa57806306fdde031461012a578063095ea7b314610148575b600080fd5b610114600480360381019061010f9190611142565b610324565b60405161012191906111a8565b60405180910390f35b61013261034f565b60405161013f9190611253565b60405180910390f35b610162600480360381019061015d91906112ff565b6103e1565b60405161016f919061135a565b60405180910390f35b610180610404565b60405161018d91906111a8565b60405180910390f35b6101b060048036038101906101ab9190611375565b61040e565b6040516101bd919061135a565b60405180910390f35b6101ce61043d565b6040516101db91906113e4565b60405180910390f35b6101ec610446565b6040516101f991906111a8565b60405180910390f35b61021c600480360381019061021791906113ff565b61046e565b60405161022991906111a8565b60405180910390f35b61023a6104b6565b604051610247919061143b565b60405180910390f35b6102586104de565b6040516102659190611253565b60405180910390f35b610288600480360381019061028391906112ff565b610570565b604051610295919061135a565b60405180910390f35b6102b860048036038101906102b39190611456565b610593565b6040516102c591906111a8565b60405180910390f35b6102e860048036038101906102e39190611496565b61061a565b005b6102f2610834565b6040516102ff91906111a8565b60405180910390f35b610322600480360381019061031d91906114f6565b61083e565b005b6000600683836040516103389291906115a9565b908152602001604051809103902054905092915050565b60606003805461035e906115f1565b80601f016020809104026020016040519081016040528092919081815260200182805461038a906115f1565b80156103d75780601f106103ac576101008083540402835291602001916103d7565b820191906000526020600020905b8154815290600101906020018083116103ba57829003601f168201915b5050505050905090565b6000806103ec610a0d565b90506103f9818585610a15565b600191505092915050565b6000600254905090565b600080610419610a0d565b9050610426858285610a27565b610431858585610abb565b60019150509392505050565b60006012905090565b60007f0000000000000000000000000000000000000000019d971e4fe8401e74000000905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60007f00000000000000000000000002cb75f592fc5bdc52106e28b9fedd42bc99b0b2905090565b6060600480546104ed906115f1565b80601f0160208091040260200160405190810160405280929190818152602001828054610519906115f1565b80156105665780601f1061053b57610100808354040283529160200191610566565b820191906000526020600020905b81548152906001019060200180831161054957829003601f168201915b5050505050905090565b60008061057b610a0d565b9050610588818585610abb565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b7f00000000000000000000000002cb75f592fc5bdc52106e28b9fedd42bc99b0b273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461069f576040517f6d06367b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff16600783836040516106c89291906115a9565b908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610744576040517fee530bc300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600683836040516107589291906115a9565b9081526020016040518091039020549050836007848460405161077c9291906115a9565b908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506107d28482610baf565b82826040516107e29291906115a9565b6040518091039020818573ffffffffffffffffffffffffffffffffffffffff167fea63cffb8711e32b6c7a55622c75ae9ccb1a8a2a95a21b38eff45ef01842f1aa60405160405180910390a450505050565b6000600554905090565b7f00000000000000000000000002cb75f592fc5bdc52106e28b9fedd42bc99b0b273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146108c3576040517f6d06367b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6064602d670de0b6b3a7640000631dcd65006108df9190611651565b6108e99190611651565b6108f391906116c2565b8360055461090191906116f3565b1115610939576040517fc491481000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b670de0b6b3a764000061271061094f9190611651565b831115610988576040517fe38743ce00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826005600082825461099a91906116f3565b925050819055506109ab8484610baf565b81816040516109bb9291906115a9565b6040518091039020838573ffffffffffffffffffffffffffffffffffffffff167fe7cd4ce7f2a465edc730269a1305e8a48bad821e8fb7e152ec413829c01a53c460405160405180910390a450505050565b600033905090565b610a228383836001610c31565b505050565b6000610a338484610593565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610ab55781811015610aa5578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610a9c93929190611727565b60405180910390fd5b610ab484848484036000610c31565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610b2d5760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610b24919061143b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b9f5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610b96919061143b565b60405180910390fd5b610baa838383610e08565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c215760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610c18919061143b565b60405180910390fd5b610c2d60008383610e08565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610ca35760006040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610c9a919061143b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d155760006040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610d0c919061143b565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508015610e02578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610df991906111a8565b60405180910390a35b50505050565b610e13838383610eae565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ea9576000610e51610446565b90506000610e5d610404565b905081811115610ea65780826040517f9e79f854000000000000000000000000000000000000000000000000000000008152600401610e9d92919061175e565b60405180910390fd5b50505b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610f00578060026000828254610ef491906116f3565b92505081905550610fd3565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610f8c578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401610f8393929190611727565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361101c5780600260008282540392505081905550611069565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516110c691906111a8565b60405180910390a3505050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112611102576111016110dd565b5b8235905067ffffffffffffffff81111561111f5761111e6110e2565b5b60208301915083600182028301111561113b5761113a6110e7565b5b9250929050565b60008060208385031215611159576111586110d3565b5b600083013567ffffffffffffffff811115611177576111766110d8565b5b611183858286016110ec565b92509250509250929050565b6000819050919050565b6111a28161118f565b82525050565b60006020820190506111bd6000830184611199565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156111fd5780820151818401526020810190506111e2565b60008484015250505050565b6000601f19601f8301169050919050565b6000611225826111c3565b61122f81856111ce565b935061123f8185602086016111df565b61124881611209565b840191505092915050565b6000602082019050818103600083015261126d818461121a565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006112a082611275565b9050919050565b6112b081611295565b81146112bb57600080fd5b50565b6000813590506112cd816112a7565b92915050565b6112dc8161118f565b81146112e757600080fd5b50565b6000813590506112f9816112d3565b92915050565b60008060408385031215611316576113156110d3565b5b6000611324858286016112be565b9250506020611335858286016112ea565b9150509250929050565b60008115159050919050565b6113548161133f565b82525050565b600060208201905061136f600083018461134b565b92915050565b60008060006060848603121561138e5761138d6110d3565b5b600061139c868287016112be565b93505060206113ad868287016112be565b92505060406113be868287016112ea565b9150509250925092565b600060ff82169050919050565b6113de816113c8565b82525050565b60006020820190506113f960008301846113d5565b92915050565b600060208284031215611415576114146110d3565b5b6000611423848285016112be565b91505092915050565b61143581611295565b82525050565b6000602082019050611450600083018461142c565b92915050565b6000806040838503121561146d5761146c6110d3565b5b600061147b858286016112be565b925050602061148c858286016112be565b9150509250929050565b6000806000604084860312156114af576114ae6110d3565b5b60006114bd868287016112be565b935050602084013567ffffffffffffffff8111156114de576114dd6110d8565b5b6114ea868287016110ec565b92509250509250925092565b600080600080606085870312156115105761150f6110d3565b5b600061151e878288016112be565b945050602061152f878288016112ea565b935050604085013567ffffffffffffffff8111156115505761154f6110d8565b5b61155c878288016110ec565b925092505092959194509250565b600081905092915050565b82818337600083830152505050565b6000611590838561156a565b935061159d838584611575565b82840190509392505050565b60006115b6828486611584565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061160957607f821691505b60208210810361161c5761161b6115c2565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061165c8261118f565b91506116678361118f565b92508282026116758161118f565b9150828204841483151761168c5761168b611622565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006116cd8261118f565b91506116d88361118f565b9250826116e8576116e7611693565b5b828204905092915050565b60006116fe8261118f565b91506117098361118f565b925082820190508082111561172157611720611622565b5b92915050565b600060608201905061173c600083018661142c565b6117496020830185611199565b6117566040830184611199565b949350505050565b60006040820190506117736000830185611199565b6117806020830184611199565b939250505056fea2646970667358221220a8eb730d38c629a5b1ace6b44b9ee2d7d4411d0e38dfd96fdc80e0a0501f605864736f6c63430008140033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$49.38
Net Worth in ETH
0.016711
Token Allocations
ETH
70.62%
USDC.E
27.69%
BNB
0.90%
Others
0.79%
Multichain Portfolio | 35 Chains
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.