ERC-20
Investment
Overview
Max Total Supply
233,501,803.341214812 OSEAN
Holders
348 (0.00%)
Market
Price
$0.00 @ 0.000000 ETH (-1.02%)
Onchain Market Cap
$268,467.75
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
0 OSEANValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x7FAB2Eb1...B2e5E9E95 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Osean
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // OSEAN DAO token contract for ETHEREUM - https://osean.online // Official telegram: https://t.me/oseadao import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./supertoken/Base.sol"; import "./interfaces/Uniswap.sol"; contract Osean is ERC20, Base { struct UpdateLimitParams { bool isMint; uint32 siblingChainSlug; uint256 maxLimit; uint256 ratePerSecond; } bytes32 constant RESCUE_ROLE = keccak256("RESCUE_ROLE"); bytes32 constant LIMIT_UPDATER_ROLE = keccak256("LIMIT_UPDATER_ROLE"); // bridge contract address which provides AMB support IMessageBridge public bridge__; // siblingChainSlug => mintLimitParams mapping(uint32 => LimitParams) _receivingLimitParams; // siblingChainSlug => burnLimitParams mapping(uint32 => LimitParams) _sendingLimitParams; // siblingChainSlug => receiver => identifier => amount mapping(uint32 => mapping(address => mapping(bytes32 => uint256))) public pendingMints; // siblingChainSlug => amount mapping(uint32 => uint256) public siblingPendingMints; //////////////////////////////////////////////////////// ////////////////////// ERRORS ////////////////////////// //////////////////////////////////////////////////////// error SiblingNotSupported(); error MessageIdMisMatched(); error ZeroAmount(); error NotMessageBridge(); error InvalidReceiver(); error InvalidSiblingChainSlug(); //////////////////////////////////////////////////////// ////////////////////// EVENTS ////////////////////////// //////////////////////////////////////////////////////// // emitted when limit params are updated event LimitParamsUpdated(UpdateLimitParams[] updates); // emitted when message bridge is updated event MessageBridgeUpdated(address newBridge); // emitted at source when tokens are bridged to a sibling chain event BridgeTokens( uint32 siblingChainSlug, address withdrawer, address receiver, uint256 bridgedAmount, bytes32 identifier ); // emitted when pending tokens are minted to the receiver event PendingTokensBridged( uint32 siblingChainSlug, address receiver, uint256 mintAmount, uint256 pendingAmount, bytes32 identifier ); // emitted when transfer reaches limit and token mint is added to pending queue event TokensPending( uint32 siblingChainSlug, address receiver, uint256 pendingAmount, uint256 totalPendingAmount, bytes32 identifier ); // emitted when pending tokens are minted as limits are replenished event TokensBridged( uint32 siblingChainSlug, address receiver, uint256 mintAmount, uint256 totalAmount, bytes32 identifier ); // Mapping to exclude some contracts from fees. Transfers are excluded from fees if address in this mapping is recipient or sender. mapping (address => bool) public excludedFromFees; // Yacht funds wallet address that will be used for DAO treasury and buy Yachts. address payable public oseanWalletAddress; // Marketing wallet address used for funding marketing. address payable public marketingWalletAddress; // Developer wallet address used for funding the team. address payable public developerWalletAddress; // Liquidity wallet address used to hold the 75% of OSEAN tokens for the liquidity pool. // After these coins are moved to the DEX, this address will no longer be used. address public liquidityWalletAddress; // Address of the wallet that will keep OSEAN tokens for burn. address payable public tobeburntWalletAddress; // Address of the contract responsible for the air dropping. address public airDropWalletAddress; // The PancakeSwap router address for swapping OSEAN tokens for WBNB. address public uniswapRouterAddress; // The initial block timestamp of the token contract. uint256 public initialTimeStamp; // Yacht transaction fee - deployed at 1%. uint256 public yachtTransactionFeePercent = 1; // Developer team transaction fee - deployed at 1%. uint256 public developerFeePercent = 1; // Marketing transaction fee - deployed at 1%. uint256 public marketingFeePercent = 1; // Marketing transaction fee - deployed at 1%. uint256 public burnFeePercent = 1; // PancakeSwap router interface. IUniswapV2Router02 private uniswapRouter; // Address of the WBNB to OSEAN token pair on PancakeSwap. address public uniswapPair; /** * @notice constructor for creating Osean. * @param owner_ owner of this contract * @param initialSupply initial supply of Osean token * @param bridge_ message bridge address */ constructor( uint256 initialSupply, address owner_, address bridge_, address payable _oseanWalletAddress, address payable _marketingWalletAddress, address payable _developerWalletAddress, address _liquidityWalletAddress, address payable _tobeburntWalletAddress, address _airDropWalletAddress, address _uniswapRouterAddress, address executionHelper_ ) ERC20("Osean", "OSEAN") AccessControl(owner_) { bridge__ = IMessageBridge(bridge_); executionHelper__ = ExecutionHelper(executionHelper_); initialTimeStamp = block.timestamp; oseanWalletAddress = _oseanWalletAddress; marketingWalletAddress = _marketingWalletAddress; developerWalletAddress = _developerWalletAddress; liquidityWalletAddress = _liquidityWalletAddress; tobeburntWalletAddress = _tobeburntWalletAddress; airDropWalletAddress = _airDropWalletAddress; uniswapRouterAddress = _uniswapRouterAddress; excludedFromFees[oseanWalletAddress] = true; excludedFromFees[marketingWalletAddress] = true; excludedFromFees[developerWalletAddress] = true; excludedFromFees[liquidityWalletAddress] = true; excludedFromFees[tobeburntWalletAddress] = true; excludedFromFees[airDropWalletAddress] = true; _mint(marketingWalletAddress, (initialSupply) * 5 / 100); _mint(developerWalletAddress, (initialSupply) * 10 / 100); _mint(liquidityWalletAddress, (initialSupply) * 75 / 100); _mint(airDropWalletAddress, (initialSupply) * 10 / 100); IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(uniswapRouterAddress); uniswapRouter = _uniswapV2Router; _approve(address(this), address(uniswapRouter), initialSupply); uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH()); IERC20(uniswapPair).approve(address(uniswapRouter), type(uint256).max); } /** * @notice this function is used to update message bridge * @dev it can only be updated by owner * @dev should be carefully migrated as it can risk user funds * @param bridge_ new bridge address */ function updateMessageBridge(address bridge_) external onlyOwner { bridge__ = IMessageBridge(bridge_); emit MessageBridgeUpdated(bridge_); } /** * @notice this function is used to set bridge limits * @dev it can only be updated by owner * @param updates_ can be used to set mint and burn limits for all siblings in one call. */ function updateLimitParams( UpdateLimitParams[] calldata updates_ ) external onlyRole(LIMIT_UPDATER_ROLE) { for (uint256 i; i < updates_.length; i++) { if (updates_[i].isMint) { _consumePartLimit( 0, _receivingLimitParams[updates_[i].siblingChainSlug] ); // to keep current limit in sync _receivingLimitParams[updates_[i].siblingChainSlug] .maxLimit = updates_[i].maxLimit; _receivingLimitParams[updates_[i].siblingChainSlug] .ratePerSecond = updates_[i].ratePerSecond; } else { _consumePartLimit( 0, _sendingLimitParams[updates_[i].siblingChainSlug] ); // to keep current limit in sync _sendingLimitParams[updates_[i].siblingChainSlug] .maxLimit = updates_[i].maxLimit; _sendingLimitParams[updates_[i].siblingChainSlug] .ratePerSecond = updates_[i].ratePerSecond; } } emit LimitParamsUpdated(updates_); } /** * @notice this function is called by users to bridge their funds to a sibling chain * @dev it is payable to receive message bridge fees to be paid. * @param receiver_ address receiving bridged tokens * @param siblingChainSlug_ The unique identifier of the sibling chain. * @param sendingAmount_ amount bridged * @param msgGasLimit_ min gas limit needed for execution at destination * @param payload_ payload which is executed at destination with bridged amount at receiver address. * @param options_ additional message bridge options can be provided using this param */ function bridge( address receiver_, uint32 siblingChainSlug_, uint256 sendingAmount_, uint256 msgGasLimit_, bytes calldata payload_, bytes calldata options_ ) external payable { if (_sendingLimitParams[siblingChainSlug_].maxLimit == 0) revert SiblingNotSupported(); if (sendingAmount_ == 0) revert ZeroAmount(); _consumeFullLimit( sendingAmount_, _sendingLimitParams[siblingChainSlug_] ); // reverts on limit hit _burn(msg.sender, sendingAmount_); bytes32 messageId = bridge__.getMessageId(siblingChainSlug_); // important to get message id as it is used as an // identifier for pending amount and payload caching bytes32 returnedMessageId = bridge__.outbound{value: msg.value}( siblingChainSlug_, msgGasLimit_, abi.encode(receiver_, sendingAmount_, messageId, payload_), options_ ); if (returnedMessageId != messageId) revert MessageIdMisMatched(); emit BridgeTokens( siblingChainSlug_, msg.sender, receiver_, sendingAmount_, messageId ); } /** * @notice this function can be used to mint funds which were in pending state due to limits * @param receiver_ address receiving bridged tokens * @param siblingChainSlug_ The unique identifier of the sibling chain. * @param identifier_ message identifier where message was received to mint funds */ function mintPendingFor( address receiver_, uint32 siblingChainSlug_, bytes32 identifier_ ) external nonReentrant { if (_receivingLimitParams[siblingChainSlug_].maxLimit == 0) revert SiblingNotSupported(); uint256 pendingMint = pendingMints[siblingChainSlug_][receiver_][ identifier_ ]; (uint256 consumedAmount, uint256 pendingAmount) = _consumePartLimit( pendingMint, _receivingLimitParams[siblingChainSlug_] ); pendingMints[siblingChainSlug_][receiver_][identifier_] = pendingAmount; siblingPendingMints[siblingChainSlug_] -= consumedAmount; _mint(receiver_, consumedAmount); address receiver = pendingExecutions[identifier_].receiver; if (pendingAmount == 0 && receiver != address(0)) { if (receiver_ != receiver) revert InvalidReceiver(); uint32 siblingChainSlug = pendingExecutions[identifier_] .siblingChainSlug; if (siblingChainSlug != siblingChainSlug_) revert InvalidSiblingChainSlug(); // execute pendingExecutions[identifier_].isAmountPending = false; bool success = executionHelper__.execute( receiver_, pendingExecutions[identifier_].payload ); if (success) _clearPayload(identifier_); } emit PendingTokensBridged( siblingChainSlug_, receiver_, consumedAmount, pendingAmount, identifier_ ); } /** * @notice this function receives the message from message bridge * @dev Only bridge can call this function. * @param siblingChainSlug_ The unique identifier of the sibling chain. * @param payload_ payload which is decoded to get `receiver`, `amount to mint`, `message id` and `payload` to execute after token transfer. */ function inbound( uint32 siblingChainSlug_, bytes memory payload_ ) external payable override nonReentrant { if (msg.sender != address(bridge__)) revert NotMessageBridge(); if (_receivingLimitParams[siblingChainSlug_].maxLimit == 0) revert SiblingNotSupported(); ( address receiver, uint256 mintAmount, bytes32 identifier, bytes memory execPayload ) = abi.decode(payload_, (address, uint256, bytes32, bytes)); (uint256 consumedAmount, uint256 pendingAmount) = _consumePartLimit( mintAmount, _receivingLimitParams[siblingChainSlug_] ); if (receiver == address(this) || receiver == address(bridge__)) revert CannotExecuteOnBridgeContracts(); _mint(receiver, consumedAmount); if (pendingAmount > 0) { pendingMints[siblingChainSlug_][receiver][ identifier ] = pendingAmount; siblingPendingMints[siblingChainSlug_] += pendingAmount; // if pending amount is more than 0, payload is cached if (execPayload.length > 0) _cachePayload( identifier, true, siblingChainSlug_, receiver, execPayload ); emit TokensPending( siblingChainSlug_, receiver, pendingAmount, pendingMints[siblingChainSlug_][receiver][identifier], identifier ); } else if (execPayload.length > 0) { // execute bool success = executionHelper__.execute(receiver, execPayload); if (!success) _cachePayload( identifier, false, siblingChainSlug_, receiver, execPayload ); } emit TokensBridged( siblingChainSlug_, receiver, consumedAmount, mintAmount, identifier ); } function getCurrentReceivingLimit( uint32 siblingChainSlug_ ) external view returns (uint256) { return _getCurrentLimit(_receivingLimitParams[siblingChainSlug_]); } function getCurrentSendingLimit( uint32 siblingChainSlug_ ) external view returns (uint256) { return _getCurrentLimit(_sendingLimitParams[siblingChainSlug_]); } function getReceivingLimitParams( uint32 siblingChainSlug_ ) external view returns (LimitParams memory) { return _receivingLimitParams[siblingChainSlug_]; } function getSendingLimitParams( uint32 siblingChainSlug_ ) external view returns (LimitParams memory) { return _sendingLimitParams[siblingChainSlug_]; } /** * @notice Rescues funds from the contract if they are locked by mistake. * @param token_ The address of the token contract. * @param rescueTo_ The address where rescued tokens need to be sent. * @param amount_ The amount of tokens to be rescued. */ function rescueFunds( address token_, address rescueTo_, uint256 amount_ ) external onlyRole(RESCUE_ROLE) { RescueFundsLib.rescueFunds(token_, rescueTo_, amount_); } /** * Returns the contract address * Return contract address */ function getContractAddress() public view returns (address){ return address(this); } /** * @dev Adds a user to be excluded from fees. * @param user address of the user to be excluded from fees. */ function excludeUserFromFees(address user) public onlyOwner { excludedFromFees[user] = true; } /** * @dev Gets the current timestamp, used for testing + verification * @return the the timestamp of the current block */ function getCurrentTimestamp() public view returns (uint256) { return block.timestamp; } /** * @dev Removes a user from the fee exclusion. * @param user address of the user than will now have to pay transaction fees. */ function includeUsersInFees(address user) public onlyOwner { excludedFromFees[user] = false; } // Internal Transfer function override to collect taxes only on Swap. function _transfer(address sender, address recipient, uint256 amount) internal virtual override { // Check in exchanges between wallets for 1% of total supply if (sender != uniswapPair && recipient != uniswapPair && !excludedFromFees[sender] && !excludedFromFees[recipient]) { require((balanceOf(recipient) + amount) < (totalSupply() / 75), "You can't have more than 1% of the total supply."); } //when to collect taxes if((sender == uniswapPair || recipient == uniswapPair) && !excludedFromFees[sender] && !excludedFromFees[recipient]) { //Investor cannot have more than 1% of total supply if(sender == uniswapPair && !excludedFromFees[sender] && !excludedFromFees[recipient]) { require((balanceOf(recipient) + amount) < (totalSupply() / 75), "You can't have more than 1% of the total supply."); } // Yacht transaction fee. uint256 yachtFee = (amount * yachtTransactionFeePercent) / 100; // Marketing team transaction fee. uint256 marketingFee = (amount * marketingFeePercent) / 100; // Developer team transaction fee. uint256 developerFee = (amount * developerFeePercent) / 100; // Burn fee uint256 burnFee = (amount * burnFeePercent) / 100; // The total fee to send to the contract address. uint256 totalFee = yachtFee + marketingFee + developerFee + burnFee; // Sends the transaction fees to the contract address super._transfer(sender, address(this), totalFee); // Prepares amount afterfees amount -= totalFee; } super._transfer(sender, recipient, amount); } /** * @dev Swaps OSEAN tokens from transaction fees to ETH. * @param amount the amount of OSEAN tokens to swap */ function swapOSEANForETH(uint256 amount) private { address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapRouter.WETH(); _approve(address(this), address(uniswapRouter), amount); uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens( amount, 0, path, address(this), block.timestamp ); } /** * @dev Sends ETH to transaction fee wallets after OSEAN swaps. * @param amount the amount to be transfered */ function sendFeesToWallets(uint256 amount) private { uint256 totalFee = yachtTransactionFeePercent + marketingFeePercent + developerFeePercent + burnFeePercent; oseanWalletAddress.transfer((amount * yachtTransactionFeePercent) / totalFee); marketingWalletAddress.transfer((amount * marketingFeePercent) / totalFee); developerWalletAddress.transfer((amount * developerFeePercent) / totalFee); tobeburntWalletAddress.transfer((amount * burnFeePercent) / totalFee); } /** * @dev Swaps OSEAN to ETH. */ function swapFeesManually() public onlyOwner { uint256 contractOSEANBalance = balanceOf(address(this)); if (contractOSEANBalance > 0) { swapOSEANForETH(contractOSEANBalance); } } /** * @dev Sends ETH to Wallets */ function disperseFeesManually() public onlyOwner { uint256 contractETHBalance = address(this).balance; sendFeesToWallets(contractETHBalance); } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.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}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * 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. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * 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 override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 value {ERC20} uses, unless this function is * 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 override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override 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 `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` 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 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); 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 `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `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. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` 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. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ 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. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ 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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./Ownable.sol"; /** * @title AccessControl * @dev This abstract contract implements access control mechanism based on roles. * Each role can have one or more addresses associated with it, which are granted * permission to execute functions with the onlyRole modifier. */ abstract contract AccessControl is Ownable { /** * @dev A mapping of roles to a mapping of addresses to boolean values indicating whether or not they have the role. */ mapping(bytes32 => mapping(address => bool)) private _permits; /** * @dev Emitted when a role is granted to an address. */ event RoleGranted(bytes32 indexed role, address indexed grantee); /** * @dev Emitted when a role is revoked from an address. */ event RoleRevoked(bytes32 indexed role, address indexed revokee); /** * @dev Error message thrown when an address does not have permission to execute a function with onlyRole modifier. */ error NoPermit(bytes32 role); /** * @dev Constructor that sets the owner of the contract. */ constructor(address owner_) Ownable(owner_) {} /** * @dev Modifier that restricts access to addresses having roles * Throws an error if the caller do not have permit */ modifier onlyRole(bytes32 role) { if (!_permits[role][msg.sender]) revert NoPermit(role); _; } /** * @dev Checks and reverts if an address do not have a specific role. * @param role_ The role to check. * @param address_ The address to check. */ function _checkRole(bytes32 role_, address address_) internal virtual { if (!_hasRole(role_, address_)) revert NoPermit(role_); } /** * @dev Grants a role to a given address. * @param role_ The role to grant. * @param grantee_ The address to grant the role to. * Emits a RoleGranted event. * Can only be called by the owner of the contract. */ function grantRole( bytes32 role_, address grantee_ ) external virtual onlyOwner { _grantRole(role_, grantee_); } /** * @dev Revokes a role from a given address. * @param role_ The role to revoke. * @param revokee_ The address to revoke the role from. * Emits a RoleRevoked event. * Can only be called by the owner of the contract. */ function revokeRole( bytes32 role_, address revokee_ ) external virtual onlyOwner { _revokeRole(role_, revokee_); } /** * @dev Internal function to grant a role to a given address. * @param role_ The role to grant. * @param grantee_ The address to grant the role to. * Emits a RoleGranted event. */ function _grantRole(bytes32 role_, address grantee_) internal { _permits[role_][grantee_] = true; emit RoleGranted(role_, grantee_); } /** * @dev Internal function to revoke a role from a given address. * @param role_ The role to revoke. * @param revokee_ The address to revoke the role from. * Emits a RoleRevoked event. */ function _revokeRole(bytes32 role_, address revokee_) internal { _permits[role_][revokee_] = false; emit RoleRevoked(role_, revokee_); } /** * @dev Checks whether an address has a specific role. * @param role_ The role to check. * @param address_ The address to check. * @return A boolean value indicating whether or not the address has the role. */ function hasRole( bytes32 role_, address address_ ) external view returns (bool) { return _hasRole(role_, address_); } function _hasRole( bytes32 role_, address address_ ) internal view returns (bool) { return _permits[role_][address_]; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; abstract contract Gauge { struct LimitParams { uint256 lastUpdateTimestamp; uint256 ratePerSecond; uint256 maxLimit; uint256 lastUpdateLimit; } error AmountOutsideLimit(); function _getCurrentLimit( LimitParams storage _params ) internal view returns (uint256 _limit) { uint256 timeElapsed = block.timestamp - _params.lastUpdateTimestamp; uint256 limitIncrease = timeElapsed * _params.ratePerSecond; if (limitIncrease + _params.lastUpdateLimit > _params.maxLimit) { _limit = _params.maxLimit; } else { _limit = limitIncrease + _params.lastUpdateLimit; } } function _consumePartLimit( uint256 amount_, LimitParams storage _params ) internal returns (uint256 consumedAmount, uint256 pendingAmount) { uint256 currentLimit = _getCurrentLimit(_params); _params.lastUpdateTimestamp = block.timestamp; if (currentLimit >= amount_) { _params.lastUpdateLimit = currentLimit - amount_; consumedAmount = amount_; pendingAmount = 0; } else { _params.lastUpdateLimit = 0; consumedAmount = currentLimit; pendingAmount = amount_ - currentLimit; } } function _consumeFullLimit( uint256 amount_, LimitParams storage _params ) internal { uint256 currentLimit = _getCurrentLimit(_params); if (currentLimit >= amount_) { _params.lastUpdateTimestamp = block.timestamp; _params.lastUpdateLimit = currentLimit - amount_; } else { revert AmountOutsideLimit(); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Ownable * @dev The Ownable contract provides a simple way to manage ownership of a contract * and allows for ownership to be transferred to a nominated address. */ abstract contract Ownable { address private _owner; address private _nominee; event OwnerNominated(address indexed nominee); event OwnerClaimed(address indexed claimer); error OnlyOwner(); error OnlyNominee(); /** * @dev Sets the contract's owner to the address that is passed to the constructor. */ constructor(address owner_) { _claimOwner(owner_); } /** * @dev Modifier that restricts access to only the contract's owner. * Throws an error if the caller is not the owner. */ modifier onlyOwner() { if (msg.sender != _owner) revert OnlyOwner(); _; } /** * @dev Returns the current owner of the contract. */ function owner() external view returns (address) { return _owner; } /** * @dev Returns the current nominee for ownership of the contract. */ function nominee() external view returns (address) { return _nominee; } /** * @dev Allows the current owner to nominate a new owner for the contract. * Throws an error if the caller is not the owner. * Emits an `OwnerNominated` event with the address of the nominee. */ function nominateOwner(address nominee_) external { if (msg.sender != _owner) revert OnlyOwner(); _nominee = nominee_; emit OwnerNominated(_nominee); } /** * @dev Allows the nominated owner to claim ownership of the contract. * Throws an error if the caller is not the nominee. * Sets the nominated owner as the new owner of the contract. * Emits an `OwnerClaimed` event with the address of the new owner. */ function claimOwner() external { if (msg.sender != _nominee) revert OnlyNominee(); _claimOwner(msg.sender); } /** * @dev Internal function that sets the owner of the contract to the specified address * and sets the nominee to address(0). */ function _claimOwner(address claimer_) internal { _owner = claimer_; _nominee = address(0); emit OwnerClaimed(claimer_); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; interface IUniswapV2Factory { function createPair(address tokenA, address tokenB) external returns (address pair); } interface IUniswapV2Pair { function sync() external; } interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns ( uint256 amountA, uint256 amountB, uint256 liquidity ); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); } interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountETH); function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactETHForTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library ExcessivelySafeCall { uint constant LOW_28_MASK = 0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff; /// @notice Use when you _really_ really _really_ don't trust the called /// contract. This prevents the called contract from causing reversion of /// the caller in as many ways as we can. /// @dev The main difference between this and a solidity low-level call is /// that we limit the number of bytes that the callee can cause to be /// copied to caller memory. This prevents stupid things like malicious /// contracts returning 10,000,000 bytes causing a local OOG when copying /// to memory. /// @param _target The address to call /// @param _gas The amount of gas to forward to the remote contract /// @param _maxCopy The maximum number of bytes of returndata to copy /// to memory. /// @param _calldata The data to send to the remote contract /// @return success and returndata, as `.call()`. Returndata is capped to /// `_maxCopy` bytes. function excessivelySafeCall( address _target, uint _gas, uint16 _maxCopy, bytes memory _calldata ) internal returns (bool, bytes memory) { // set up for assembly call uint _toCopy; bool _success; bytes memory _returnData = new bytes(_maxCopy); // dispatch message to recipient // by assembly calling "handle" function // we call via assembly to avoid memcopying a very large returndata // returned by a malicious contract assembly { _success := call( _gas, // gas _target, // recipient 0, // ether value add(_calldata, 0x20), // inloc mload(_calldata), // inlen 0, // outloc 0 // outlen ) // limit our copy to 256 bytes _toCopy := returndatasize() if gt(_toCopy, _maxCopy) { _toCopy := _maxCopy } // Store the length of the copied bytes mstore(_returnData, _toCopy) // copy the bytes from returndata[0:_toCopy] returndatacopy(add(_returnData, 0x20), 0, _toCopy) } return (_success, _returnData); } /// @notice Use when you _really_ really _really_ don't trust the called /// contract. This prevents the called contract from causing reversion of /// the caller in as many ways as we can. /// @dev The main difference between this and a solidity low-level call is /// that we limit the number of bytes that the callee can cause to be /// copied to caller memory. This prevents stupid things like malicious /// contracts returning 10,000,000 bytes causing a local OOG when copying /// to memory. /// @param _target The address to call /// @param _gas The amount of gas to forward to the remote contract /// @param _maxCopy The maximum number of bytes of returndata to copy /// to memory. /// @param _calldata The data to send to the remote contract /// @return success and returndata, as `.call()`. Returndata is capped to /// `_maxCopy` bytes. function excessivelySafeStaticCall( address _target, uint _gas, uint16 _maxCopy, bytes memory _calldata ) internal view returns (bool, bytes memory) { // set up for assembly call uint _toCopy; bool _success; bytes memory _returnData = new bytes(_maxCopy); // dispatch message to recipient // by assembly calling "handle" function // we call via assembly to avoid memcopying a very large returndata // returned by a malicious contract assembly { _success := staticcall( _gas, // gas _target, // recipient add(_calldata, 0x20), // inloc mload(_calldata), // inlen 0, // outloc 0 // outlen ) // limit our copy to 256 bytes _toCopy := returndatasize() if gt(_toCopy, _maxCopy) { _toCopy := _maxCopy } // Store the length of the copied bytes mstore(_returnData, _toCopy) // copy the bytes from returndata[0:_toCopy] returndatacopy(add(_returnData, 0x20), 0, _toCopy) } return (_success, _returnData); } /** * @notice Swaps function selectors in encoded contract calls * @dev Allows reuse of encoded calldata for functions with identical * argument types but different names. It simply swaps out the first 4 bytes * for the new selector. This function modifies memory in place, and should * only be used with caution. * @param _newSelector The new 4-byte selector * @param _buf The encoded contract args */ function swapSelector( bytes4 _newSelector, bytes memory _buf ) internal pure { require(_buf.length >= 4); uint _mask = LOW_28_MASK; assembly { // load the first word of let _word := mload(add(_buf, 0x20)) // mask out the top 4 bytes // /x _word := and(_word, _mask) _word := or(_newSelector, _word) mstore(add(_buf, 0x20), _word) } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "solmate/src/utils/SafeTransferLib.sol"; error ZeroAddress(); /** * @title RescueFundsLib * @dev A library that provides a function to rescue funds from a contract. */ library RescueFundsLib { /** * @dev The address used to identify ETH. */ address public constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE); /** * @dev thrown when the given token address don't have any code */ error InvalidTokenAddress(); /** * @dev Rescues funds from a contract. * @param token_ The address of the token contract. * @param rescueTo_ The address of the user. * @param amount_ The amount of tokens to be rescued. */ function rescueFunds( address token_, address rescueTo_, uint256 amount_ ) internal { if (rescueTo_ == address(0)) revert ZeroAddress(); if (token_ == ETH_ADDRESS) { SafeTransferLib.safeTransferETH(rescueTo_, amount_); } else { if (token_.code.length == 0) revert InvalidTokenAddress(); SafeTransferLib.safeTransfer(ERC20(token_), rescueTo_, amount_); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "solmate/src/utils/ReentrancyGuard.sol"; import {RescueFundsLib} from "../libraries/RescueFundsLib.sol"; import {Gauge} from "../common/Gauge.sol"; import {AccessControl} from "../common/AccessControl.sol"; import "./ISuperTokenOrVault.sol"; import "./IMessageBridge.sol"; import "./ExecutionHelper.sol"; /** * @title Base contract for super token and vault * @notice It contains relevant execution payload storages. * @dev This contract implements Socket's IPlug to enable message bridging and IMessageBridge * to support any type of message bridge. */ abstract contract Base is ReentrancyGuard, Gauge, ISuperTokenOrVault, AccessControl { /** * @notice this struct stores relevant details for a pending payload execution * @param receiver address of receiver where payload executes. * @param payload payload to be executed * @param isAmountPending if amount to be bridged is pending */ struct PendingExecutionDetails { bool isAmountPending; uint32 siblingChainSlug; address receiver; bytes payload; } ExecutionHelper public executionHelper__; // messageId => PendingExecutionDetails mapping(bytes32 => PendingExecutionDetails) public pendingExecutions; //////////////////////////////////////////////////////// ////////////////////// ERRORS ////////////////////////// //////////////////////////////////////////////////////// error InvalidExecutionRetry(); error PendingAmount(); error CannotExecuteOnBridgeContracts(); // emitted when a execution helper is updated event ExecutionHelperUpdated(address executionHelper); /** * @notice this function is used to update execution helper contract * @dev it can only be updated by owner * @param executionHelper_ new execution helper address */ function updateExecutionHelper( address executionHelper_ ) external onlyOwner { executionHelper__ = ExecutionHelper(executionHelper_); emit ExecutionHelperUpdated(executionHelper_); } /** * @notice this function can be used to retry a payload execution if it was not successful. * @param msgId_ The unique identifier of the bridging message. */ function retryPayloadExecution(bytes32 msgId_) external nonReentrant { PendingExecutionDetails storage details = pendingExecutions[msgId_]; if (details.isAmountPending) revert PendingAmount(); if (details.receiver == address(0)) revert InvalidExecutionRetry(); bool success = executionHelper__.execute( details.receiver, details.payload ); if (success) _clearPayload(msgId_); } /** * @notice this function caches the execution payload details if the amount to be bridged * is not pending or execution is reverting */ function _cachePayload( bytes32 msgId_, bool isAmountPending_, uint32 siblingChainSlug_, address receiver_, bytes memory payload_ ) internal { pendingExecutions[msgId_].receiver = receiver_; pendingExecutions[msgId_].payload = payload_; pendingExecutions[msgId_].siblingChainSlug = siblingChainSlug_; pendingExecutions[msgId_].isAmountPending = isAmountPending_; } /** * @notice this function clears the payload details once execution succeeds */ function _clearPayload(bytes32 msgId_) internal { pendingExecutions[msgId_].receiver = address(0); pendingExecutions[msgId_].payload = bytes(""); pendingExecutions[msgId_].siblingChainSlug = 0; pendingExecutions[msgId_].isAmountPending = false; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../libraries/ExcessivelySafeCall.sol"; /** * @title ExecutionHelper * @notice It is an untrusted contract used for payload execution by Super token and Vault. */ contract ExecutionHelper { using ExcessivelySafeCall for address; uint16 private constant MAX_COPY_BYTES = 0; /** * @notice this function is used to execute a payload at target_ * @dev receiver address cannot be this contract address. * @param target_ address of target. * @param payload_ payload to be executed at target. */ function execute( address target_, bytes memory payload_ ) external returns (bool success) { if (target_ == address(this)) return false; (success, ) = target_.excessivelySafeCall( gasleft(), MAX_COPY_BYTES, payload_ ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title IMessageBridge * @notice It should be implemented by message bridge integrated to Super token and Vault. */ interface IMessageBridge { /** * @notice calls socket's outbound function which transmits msg to `siblingChainSlug_`. * @dev Only super token or vault can call this contract * @param siblingChainSlug_ The unique identifier of the sibling chain. * @param msgGasLimit_ min gas limit needed to execute the message on sibling * @param payload_ payload which should be executed at the sibling chain. * @param options_ extra bytes memory can be used by other protocol plugs for additional options */ function outbound( uint32 siblingChainSlug_, uint256 msgGasLimit_, bytes memory payload_, bytes memory options_ ) external payable returns (bytes32 messageId_); /** * @notice this function is used to calculate message id before sending outbound(). * @param siblingChainSlug_ The unique identifier of the sibling chain. * @return message id */ function getMessageId( uint32 siblingChainSlug_ ) external view returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ISuperTokenOrVault * @notice It should be implemented Super token and Vault for plugs to communicate. */ interface ISuperTokenOrVault { /** * @dev this should be only executable by socket. * @notice executes the message received from source chain. * @notice It is expected to have original sender checks in the destination plugs using payload. * @param siblingChainSlug_ chain slug of source. * @param payload_ the data which is needed to decode receiver, amount, msgId and payload. */ function inbound( uint32 siblingChainSlug_, bytes memory payload_ ) external payable; }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol) /// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it. abstract contract ERC20 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); /*////////////////////////////////////////////////////////////// METADATA STORAGE //////////////////////////////////////////////////////////////*/ string public name; string public symbol; uint8 public immutable decimals; /*////////////////////////////////////////////////////////////// ERC20 STORAGE //////////////////////////////////////////////////////////////*/ uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; /*////////////////////////////////////////////////////////////// EIP-2612 STORAGE //////////////////////////////////////////////////////////////*/ uint256 internal immutable INITIAL_CHAIN_ID; bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR; mapping(address => uint256) public nonces; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( string memory _name, string memory _symbol, uint8 _decimals ) { name = _name; symbol = _symbol; decimals = _decimals; INITIAL_CHAIN_ID = block.chainid; INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator(); } /*////////////////////////////////////////////////////////////// ERC20 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 amount) public virtual returns (bool) { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transfer(address to, uint256 amount) public virtual returns (bool) { balanceOf[msg.sender] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(msg.sender, to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public virtual returns (bool) { uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals. if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount; balanceOf[from] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(from, to, amount); return true; } /*////////////////////////////////////////////////////////////// EIP-2612 LOGIC //////////////////////////////////////////////////////////////*/ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED"); // Unchecked because the only math done is incrementing // the owner's nonce which cannot realistically overflow. unchecked { address recoveredAddress = ecrecover( keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256( abi.encode( keccak256( "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)" ), owner, spender, value, nonces[owner]++, deadline ) ) ) ), v, r, s ); require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER"); allowance[recoveredAddress][spender] = value; } emit Approval(owner, spender, value); } function DOMAIN_SEPARATOR() public view virtual returns (bytes32) { return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator(); } function computeDomainSeparator() internal view virtual returns (bytes32) { return keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name)), keccak256("1"), block.chainid, address(this) ) ); } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 amount) internal virtual { totalSupply += amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal virtual { balanceOf[from] -= amount; // Cannot underflow because a user's balance // will never be larger than the total supply. unchecked { totalSupply -= amount; } emit Transfer(from, address(0), amount); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Gas optimized reentrancy protection for smart contracts. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/ReentrancyGuard.sol) /// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/security/ReentrancyGuard.sol) abstract contract ReentrancyGuard { uint256 private locked = 1; modifier nonReentrant() virtual { require(locked == 1, "REENTRANCY"); locked = 2; _; locked = 1; } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; import {ERC20} from "../tokens/ERC20.sol"; /// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol) /// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer. /// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller. library SafeTransferLib { /*////////////////////////////////////////////////////////////// ETH OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferETH(address to, uint256 amount) internal { bool success; /// @solidity memory-safe-assembly assembly { // Transfer the ETH and store if it succeeded or not. success := call(gas(), to, amount, 0, 0, 0, 0) } require(success, "ETH_TRANSFER_FAILED"); } /*////////////////////////////////////////////////////////////// ERC20 OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferFrom( ERC20 token, address from, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), and(from, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "from" argument. mstore(add(freeMemoryPointer, 36), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "to" argument. mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument. Masking not required as it's a full 32 byte type. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 100, 0, 32) ) } require(success, "TRANSFER_FROM_FAILED"); } function safeTransfer( ERC20 token, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. Masking not required as it's a full 32 byte type. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "TRANSFER_FAILED"); } function safeApprove( ERC20 token, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. Masking not required as it's a full 32 byte type. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "APPROVE_FAILED"); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"},{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"bridge_","type":"address"},{"internalType":"address payable","name":"_oseanWalletAddress","type":"address"},{"internalType":"address payable","name":"_marketingWalletAddress","type":"address"},{"internalType":"address payable","name":"_developerWalletAddress","type":"address"},{"internalType":"address","name":"_liquidityWalletAddress","type":"address"},{"internalType":"address payable","name":"_tobeburntWalletAddress","type":"address"},{"internalType":"address","name":"_airDropWalletAddress","type":"address"},{"internalType":"address","name":"_uniswapRouterAddress","type":"address"},{"internalType":"address","name":"executionHelper_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AmountOutsideLimit","type":"error"},{"inputs":[],"name":"CannotExecuteOnBridgeContracts","type":"error"},{"inputs":[],"name":"InvalidExecutionRetry","type":"error"},{"inputs":[],"name":"InvalidReceiver","type":"error"},{"inputs":[],"name":"InvalidSiblingChainSlug","type":"error"},{"inputs":[],"name":"InvalidTokenAddress","type":"error"},{"inputs":[],"name":"MessageIdMisMatched","type":"error"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"NoPermit","type":"error"},{"inputs":[],"name":"NotMessageBridge","type":"error"},{"inputs":[],"name":"OnlyNominee","type":"error"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[],"name":"PendingAmount","type":"error"},{"inputs":[],"name":"SiblingNotSupported","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"inputs":[],"name":"ZeroAmount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"siblingChainSlug","type":"uint32"},{"indexed":false,"internalType":"address","name":"withdrawer","type":"address"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"bridgedAmount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"identifier","type":"bytes32"}],"name":"BridgeTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"executionHelper","type":"address"}],"name":"ExecutionHelperUpdated","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"bool","name":"isMint","type":"bool"},{"internalType":"uint32","name":"siblingChainSlug","type":"uint32"},{"internalType":"uint256","name":"maxLimit","type":"uint256"},{"internalType":"uint256","name":"ratePerSecond","type":"uint256"}],"indexed":false,"internalType":"struct Osean.UpdateLimitParams[]","name":"updates","type":"tuple[]"}],"name":"LimitParamsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newBridge","type":"address"}],"name":"MessageBridgeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimer","type":"address"}],"name":"OwnerClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nominee","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"siblingChainSlug","type":"uint32"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"mintAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"pendingAmount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"identifier","type":"bytes32"}],"name":"PendingTokensBridged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"grantee","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"revokee","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"siblingChainSlug","type":"uint32"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"mintAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAmount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"identifier","type":"bytes32"}],"name":"TokensBridged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"siblingChainSlug","type":"uint32"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"pendingAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalPendingAmount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"identifier","type":"bytes32"}],"name":"TokensPending","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":[],"name":"airDropWalletAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver_","type":"address"},{"internalType":"uint32","name":"siblingChainSlug_","type":"uint32"},{"internalType":"uint256","name":"sendingAmount_","type":"uint256"},{"internalType":"uint256","name":"msgGasLimit_","type":"uint256"},{"internalType":"bytes","name":"payload_","type":"bytes"},{"internalType":"bytes","name":"options_","type":"bytes"}],"name":"bridge","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"bridge__","outputs":[{"internalType":"contract IMessageBridge","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimOwner","outputs":[],"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":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"developerFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"developerWalletAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disperseFeesManually","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"excludeUserFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"executionHelper__","outputs":[{"internalType":"contract ExecutionHelper","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"siblingChainSlug_","type":"uint32"}],"name":"getCurrentReceivingLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"siblingChainSlug_","type":"uint32"}],"name":"getCurrentSendingLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"siblingChainSlug_","type":"uint32"}],"name":"getReceivingLimitParams","outputs":[{"components":[{"internalType":"uint256","name":"lastUpdateTimestamp","type":"uint256"},{"internalType":"uint256","name":"ratePerSecond","type":"uint256"},{"internalType":"uint256","name":"maxLimit","type":"uint256"},{"internalType":"uint256","name":"lastUpdateLimit","type":"uint256"}],"internalType":"struct Gauge.LimitParams","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"siblingChainSlug_","type":"uint32"}],"name":"getSendingLimitParams","outputs":[{"components":[{"internalType":"uint256","name":"lastUpdateTimestamp","type":"uint256"},{"internalType":"uint256","name":"ratePerSecond","type":"uint256"},{"internalType":"uint256","name":"maxLimit","type":"uint256"},{"internalType":"uint256","name":"lastUpdateLimit","type":"uint256"}],"internalType":"struct Gauge.LimitParams","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role_","type":"bytes32"},{"internalType":"address","name":"grantee_","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role_","type":"bytes32"},{"internalType":"address","name":"address_","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"siblingChainSlug_","type":"uint32"},{"internalType":"bytes","name":"payload_","type":"bytes"}],"name":"inbound","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"includeUsersInFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialTimeStamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityWalletAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingWalletAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver_","type":"address"},{"internalType":"uint32","name":"siblingChainSlug_","type":"uint32"},{"internalType":"bytes32","name":"identifier_","type":"bytes32"}],"name":"mintPendingFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nominee_","type":"address"}],"name":"nominateOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oseanWalletAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"pendingExecutions","outputs":[{"internalType":"bool","name":"isAmountPending","type":"bool"},{"internalType":"uint32","name":"siblingChainSlug","type":"uint32"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"bytes","name":"payload","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"","type":"uint32"},{"internalType":"address","name":"","type":"address"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"pendingMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token_","type":"address"},{"internalType":"address","name":"rescueTo_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"rescueFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"msgId_","type":"bytes32"}],"name":"retryPayloadExecution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role_","type":"bytes32"},{"internalType":"address","name":"revokee_","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"","type":"uint32"}],"name":"siblingPendingMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapFeesManually","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tobeburntWalletAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"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":"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"},{"inputs":[],"name":"uniswapPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapRouterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"executionHelper_","type":"address"}],"name":"updateExecutionHelper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"isMint","type":"bool"},{"internalType":"uint32","name":"siblingChainSlug","type":"uint32"},{"internalType":"uint256","name":"maxLimit","type":"uint256"},{"internalType":"uint256","name":"ratePerSecond","type":"uint256"}],"internalType":"struct Osean.UpdateLimitParams[]","name":"updates_","type":"tuple[]"}],"name":"updateLimitParams","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"bridge_","type":"address"}],"name":"updateMessageBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yachtTransactionFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600160055560016019556001601a556001601b556001601c553480156200002a57600080fd5b5060405162004278380380620042788339810160408190526200004d91620006fc565b89806040518060400160405280600581526020016427b9b2b0b760d91b8152506040518060400160405280600581526020016427a9a2a0a760d91b81525081600390816200009c919062000894565b506004620000ab828262000894565b505050620000bf816200046760201b60201c565b5050600b80546001600160a01b03199081166001600160a01b038c811691909117909255600980548216848416179055426018556011805482168b84169081179091556012805483168b85161781556013805484168b86161781556014805485168b87161781556015805486168b88161781556016805487168b8916178155601780549097168a891617909655600094855260106020526040808620805460ff19908116600190811790925586548a1688528288208054821683179055945489168752818720805486168217905592548816865280862080548516841790559054871685528085208054841683179055945486168452939092208054909216909217905554620001eb91166064620001d98e600562000976565b620001e5919062000996565b620004bb565b6013546200020b906001600160a01b03166064620001d98e600a62000976565b6014546200022b906001600160a01b03166064620001d98e604b62000976565b6016546200024b906001600160a01b03166064620001d98e600a62000976565b601754601d80546001600160a01b0319166001600160a01b0390921691821790556200027930828e620005a4565b806001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015620002b8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002de9190620009b9565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200032c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003529190620009b9565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015620003a0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003c69190620009b9565b601e80546001600160a01b0319166001600160a01b03928316908117909155601d5460405163095ea7b360e01b81529216600483015260001960248301529063095ea7b3906044016020604051808303816000875af11580156200042e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004549190620009e0565b5050505050505050505050505062000a1a565b600680546001600160a01b0383166001600160a01b031991821681179092556007805490911690556040517ffbe19c9b601f5ee90b44c7390f3fa2319eba01762d34ee372aeafd59b25c7f8790600090a250565b6001600160a01b038216620005175760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b80600260008282546200052b919062000a04565b90915550506001600160a01b038216600090815260208190526040812080548392906200055a90849062000a04565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038316620006085760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016200050e565b6001600160a01b0382166200066b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016200050e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b505050565b6001600160a01b0381168114620006e757600080fd5b50565b8051620006f781620006d1565b919050565b60008060008060008060008060008060006101608c8e0312156200071f57600080fd5b8b519a5060208c01516200073381620006d1565b60408d0151909a506200074681620006d1565b60608d01519099506200075981620006d1565b60808d01519098506200076c81620006d1565b60a08d01519097506200077f81620006d1565b60c08d01519096506200079281620006d1565b60e08d0151909550620007a581620006d1565b6101008d0151909450620007b981620006d1565b6101208d0151909350620007cd81620006d1565b9150620007de6101408d01620006ea565b90509295989b509295989b9093969950565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200081b57607f821691505b6020821081036200083c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620006cc57600081815260208120601f850160051c810160208610156200086b5750805b601f850160051c820191505b818110156200088c5782815560010162000877565b505050505050565b81516001600160401b03811115620008b057620008b0620007f0565b620008c881620008c1845462000806565b8462000842565b602080601f831160018114620009005760008415620008e75750858301515b600019600386901b1c1916600185901b1785556200088c565b600085815260208120601f198616915b82811015620009315788860151825594840194600190910190840162000910565b5085821015620009505787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141762000990576200099062000960565b92915050565b600082620009b457634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215620009cc57600080fd5b8151620009d981620006d1565b9392505050565b600060208284031215620009f357600080fd5b81518015158114620009d957600080fd5b8082018082111562000990576200099062000960565b61384e8062000a2a6000396000f3fe6080604052600436106103545760003560e01c806378c1d245116101c6578063aa128e8f116100f7578063da6fa55c11610095578063e9293a721161006f578063e9293a72146109ee578063f0d526ca14610a0e578063f75ede1c14610a2e578063f99d2a7114610a4e57600080fd5b8063da6fa55c14610988578063dbe66ca01461099e578063dd62ed3e146109ce57600080fd5b8063c41f1f6c116100d1578063c41f1f6c14610915578063c816841b14610928578063d158272d14610948578063d547741f1461096857600080fd5b8063aa128e8f146108b5578063afe03518146108d5578063bbeaa1f8146108f557600080fd5b806393bba22f116101645780639f0adf5c1161013e5780639f0adf5c14610840578063a1284a4714610855578063a457c2d714610875578063a9059cbb1461089557600080fd5b806393bba22f146107f857806393cdb78c1461081857806395d89b411461082b57600080fd5b80638da5cb5b116101a05780638da5cb5b1461077a5780638eb83f251461079857806391c588b6146107b857806391d14854146107d857600080fd5b806378c1d245146107255780637c13efd4146107455780638aaff1211461075a57600080fd5b806335ffe710116102a057806361eb048a1161023e5780636c9230db116102185780636c9230db1461069c5780636ccae054146106af5780636f9499ca146106cf57806370a08231146106ef57600080fd5b806361eb048a1461063c57806362cc3cc81461065c57806369b272641461067c57600080fd5b80634e0856a71161027a5780634e0856a71461059d5780634fcd1285146105b35780635a27763d146105c95780635b94db271461061c57600080fd5b806335ffe7101461055257806339509351146105685780633bd1adec1461058857600080fd5b806323b872dd1161030d5780632fb47be4116102e75780632fb47be4146104dd578063313ce567146104f3578063322925641461050f57806332a2c5d01461053f57600080fd5b806323b872dd1461046e5780632f2ff15d1461048e5780632f57db74146104b057600080fd5b806306fdde0314610360578063095ea7b31461038b57806318160ddd146103bb57806320ca3c7f146103da57806320f99c0a14610412578063237f835b1461043057600080fd5b3661035b57005b600080fd5b34801561036c57600080fd5b50610375610a6e565b6040516103829190612dbf565b60405180910390f35b34801561039757600080fd5b506103ab6103a6366004612de7565b610b00565b6040519015158152602001610382565b3480156103c757600080fd5b506002545b604051908152602001610382565b3480156103e657600080fd5b506017546103fa906001600160a01b031681565b6040516001600160a01b039091168152602001610382565b34801561041e57600080fd5b506007546001600160a01b03166103fa565b34801561043c57600080fd5b506103cc61044b366004612e2c565b600e60209081526000938452604080852082529284528284209052825290205481565b34801561047a57600080fd5b506103ab610489366004612e6b565b610b1a565b34801561049a57600080fd5b506104ae6104a9366004612e8b565b610b3e565b005b3480156104bc57600080fd5b506103cc6104cb366004612ebb565b600f6020526000908152604090205481565b3480156104e957600080fd5b506103cc60185481565b3480156104ff57600080fd5b5060405160128152602001610382565b34801561051b57600080fd5b5061052f61052a366004612ed6565b610b77565b6040516103829493929190612eef565b34801561054b57600080fd5b50306103fa565b34801561055e57600080fd5b506103cc60195481565b34801561057457600080fd5b506103ab610583366004612de7565b610c3d565b34801561059457600080fd5b506104ae610c5f565b3480156105a957600080fd5b506103cc601c5481565b3480156105bf57600080fd5b506103cc601a5481565b3480156105d557600080fd5b506105e96105e4366004612ebb565b610c95565b60405161038291908151815260208083015190820152604080830151908201526060918201519181019190915260800190565b34801561062857600080fd5b506104ae610637366004612f31565b610d0b565b34801561064857600080fd5b506013546103fa906001600160a01b031681565b34801561066857600080fd5b506011546103fa906001600160a01b031681565b34801561068857600080fd5b506009546103fa906001600160a01b031681565b3480156106a857600080fd5b50426103cc565b3480156106bb57600080fd5b506104ae6106ca366004612e6b565b610d80565b3480156106db57600080fd5b506104ae6106ea366004612ed6565b610e0a565b3480156106fb57600080fd5b506103cc61070a366004612f31565b6001600160a01b031660009081526020819052604090205490565b34801561073157600080fd5b506104ae610740366004612f31565b610f33565b34801561075157600080fd5b506104ae610f82565b34801561076657600080fd5b506103cc610775366004612ebb565b610fba565b34801561078657600080fd5b506006546001600160a01b03166103fa565b3480156107a457600080fd5b506014546103fa906001600160a01b031681565b3480156107c457600080fd5b506104ae6107d3366004612f31565b610fd8565b3480156107e457600080fd5b506103ab6107f3366004612e8b565b611058565b34801561080457600080fd5b506104ae610813366004612f31565b611086565b6104ae610826366004612f97565b6110ff565b34801561083757600080fd5b50610375611335565b34801561084c57600080fd5b506104ae611344565b34801561086157600080fd5b506104ae61087036600461303d565b61138e565b34801561088157600080fd5b506103ab610890366004612de7565b611692565b3480156108a157600080fd5b506103ab6108b0366004612de7565b61170d565b3480156108c157600080fd5b50600b546103fa906001600160a01b031681565b3480156108e157600080fd5b506015546103fa906001600160a01b031681565b34801561090157600080fd5b506104ae610910366004612f31565b61171b565b6104ae610923366004613121565b611767565b34801561093457600080fd5b50601e546103fa906001600160a01b031681565b34801561095457600080fd5b506012546103fa906001600160a01b031681565b34801561097457600080fd5b506104ae610983366004612e8b565b611a55565b34801561099457600080fd5b506103cc601b5481565b3480156109aa57600080fd5b506103ab6109b9366004612f31565b60106020526000908152604090205460ff1681565b3480156109da57600080fd5b506103cc6109e93660046131b2565b611a8a565b3480156109fa57600080fd5b506105e9610a09366004612ebb565b611ab5565b348015610a1a57600080fd5b506016546103fa906001600160a01b031681565b348015610a3a57600080fd5b506103cc610a49366004612ebb565b611b2b565b348015610a5a57600080fd5b506104ae610a693660046131e0565b611b49565b606060038054610a7d9061321e565b80601f0160208091040260200160405190810160405280929190818152602001828054610aa99061321e565b8015610af65780601f10610acb57610100808354040283529160200191610af6565b820191906000526020600020905b815481529060010190602001808311610ad957829003601f168201915b5050505050905090565b600033610b0e818585611ded565b60019150505b92915050565b600033610b28858285611f11565b610b33858585611f85565b506001949350505050565b6006546001600160a01b03163314610b6957604051635fc483c560e01b815260040160405180910390fd5b610b738282612259565b5050565b600a602052600090815260409020805460018201805460ff831693610100840463ffffffff1693600160281b90046001600160a01b0316929091610bba9061321e565b80601f0160208091040260200160405190810160405280929190818152602001828054610be69061321e565b8015610c335780601f10610c0857610100808354040283529160200191610c33565b820191906000526020600020905b815481529060010190602001808311610c1657829003601f168201915b5050505050905084565b600033610b0e818585610c508383611a8a565b610c5a919061326e565b611ded565b6007546001600160a01b03163314610c8a57604051637c91ccdd60e01b815260040160405180910390fd5b610c93336122b4565b565b610cc06040518060800160405280600081526020016000815260200160008152602001600081525090565b5063ffffffff166000908152600d6020908152604091829020825160808101845281548152600182015492810192909252600281015492820192909252600390910154606082015290565b6006546001600160a01b03163314610d3657604051635fc483c560e01b815260040160405180910390fd5b600780546001600160a01b0319166001600160a01b0383169081179091556040517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2290600090a250565b3360009081527f9feb9cbe7a45464a9f352055cd50b7410b8f8df450af3d1acf4272d5554fe2e360205260409020547fc4c453d647953c0fd35db5a34ee76e60fb4abc3a8fb891a25936b70b38f292539060ff16610df95760405163962f633360e01b8152600481018290526024015b60405180910390fd5b610e04848484612308565b50505050565b600554600114610e2c5760405162461bcd60e51b8152600401610df090613281565b60026005556000818152600a60205260409020805460ff1615610e62576040516337b873b960e01b815260040160405180910390fd5b8054600160281b90046001600160a01b0316610e9157604051633d61ca4d60e21b815260040160405180910390fd5b6009548154604051631cff79cd60e01b81526000926001600160a01b0390811692631cff79cd92610ed592600160281b9092049091169060018701906004016132a5565b6020604051808303816000875af1158015610ef4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f18919061334e565b90508015610f2957610f2983612394565b5050600160055550565b6006546001600160a01b03163314610f5e57604051635fc483c560e01b815260040160405180910390fd5b6001600160a01b03166000908152601060205260409020805460ff19166001179055565b6006546001600160a01b03163314610fad57604051635fc483c560e01b815260040160405180910390fd5b47610fb7816123f7565b50565b63ffffffff81166000908152600d60205260408120610b1490612577565b6006546001600160a01b0316331461100357604051635fc483c560e01b815260040160405180910390fd5b600980546001600160a01b0319166001600160a01b0383169081179091556040519081527f1aac17f104a8e1c4012342e87b4a69ef83304f262bfe39beb52b672c8f9c1873906020015b60405180910390a150565b60008281526008602090815260408083206001600160a01b038516845290915281205460ff165b9392505050565b6006546001600160a01b031633146110b157604051635fc483c560e01b815260040160405180910390fd5b600b80546001600160a01b0319166001600160a01b0383169081179091556040519081527f72f0936e868281e63b739e6aa295ba0995a1ed152fca9a0068f1d9c6449726f59060200161104d565b63ffffffff87166000908152600d6020526040812060020154900361113657604051623b245360ea1b815260040160405180910390fd5b8560000361115757604051631f2a200560e01b815260040160405180910390fd5b63ffffffff87166000908152600d602052604090206111779087906125de565b6111813387612622565b600b54604051639dc1128960e01b815263ffffffff891660048201526000916001600160a01b031690639dc1128990602401602060405180830381865afa1580156111d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f4919061336b565b90506000600b60009054906101000a90046001600160a01b03166001600160a01b0316636064b504348b8a8e8d888d8d6040516020016112389594939291906133ad565b60405160208183030381529060405289896040518763ffffffff1660e01b81526004016112699594939291906133e6565b60206040518083038185885af1158015611287573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906112ac919061336b565b90508181146112ce576040516303dbdddf60e51b815260040160405180910390fd5b6040805163ffffffff8b1681523360208201526001600160a01b038c1681830152606081018a90526080810184905290517f6844871d2b3f02397af87ac411a58d4915ed46e1be835bf9f266b1937c48ec8c9181900360a00190a150505050505050505050565b606060048054610a7d9061321e565b6006546001600160a01b0316331461136f57604051635fc483c560e01b815260040160405180910390fd5b306000908152602081905260409020548015610fb757610fb781612770565b3360009081527ff6091e73e819ea3cd1b46b1d8d5efd4b46f96d438142eece9165cf18a7ec806c60205260409020547f129109734c476f17817fbe7bcf461de566dcce58e4c0cb61b62d1b9af26fe47f9060ff166114025760405163962f633360e01b815260048101829052602401610df0565b60005b828110156116535783838281811061141f5761141f61342a565b6114359260206080909202019081019150613440565b1561155b5761148c6000600c60008787868181106114555761145561342a565b905060800201602001602081019061146d9190612ebb565b63ffffffff1663ffffffff1681526020019081526020016000206128ca565b50508383828181106114a0576114a061342a565b90506080020160400135600c60008686858181106114c0576114c061342a565b90506080020160200160208101906114d89190612ebb565b63ffffffff1681526020810191909152604001600020600201558383828181106115045761150461342a565b90506080020160600135600c60008686858181106115245761152461342a565b905060800201602001602081019061153c9190612ebb565b63ffffffff168152602081019190915260400160002060010155611641565b6115766000600d60008787868181106114555761145561342a565b505083838281811061158a5761158a61342a565b90506080020160400135600d60008686858181106115aa576115aa61342a565b90506080020160200160208101906115c29190612ebb565b63ffffffff1681526020810191909152604001600020600201558383828181106115ee576115ee61342a565b90506080020160600135600d600086868581811061160e5761160e61342a565b90506080020160200160208101906116269190612ebb565b63ffffffff1681526020810191909152604001600020600101555b8061164b8161345d565b915050611405565b507f443adfdab30667bb36a851e5758d544ef4e1d7ac911e59dab256cbe38545468b8383604051611685929190613476565b60405180910390a1505050565b600033816116a08286611a8a565b9050838110156117005760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610df0565b610b338286868403611ded565b600033610b0e818585611f85565b6006546001600160a01b0316331461174657604051635fc483c560e01b815260040160405180910390fd5b6001600160a01b03166000908152601060205260409020805460ff19169055565b6005546001146117895760405162461bcd60e51b8152600401610df090613281565b6002600555600b546001600160a01b031633146117b957604051632f83ddfb60e11b815260040160405180910390fd5b63ffffffff82166000908152600c602052604081206002015490036117f057604051623b245360ea1b815260040160405180910390fd5b6000806000808480602001905181019061180a91906134e9565b935093509350935060008061183d85600c60008b63ffffffff1663ffffffff1681526020019081526020016000206128ca565b90925090506001600160a01b0386163014806118665750600b546001600160a01b038781169116145b15611884576040516357911ddd60e11b815260040160405180910390fd5b61188e868361291e565b80156119735763ffffffff88166000818152600e602090815260408083206001600160a01b038b16845282528083208884528252808320859055928252600f905290812080548392906118e290849061326e565b90915550508251156118fc576118fc8460018a89876129fd565b63ffffffff88166000908152600e602090815260408083206001600160a01b038a1684528252808320878452909152908190205490517f7ad82b04361f30f48f6c6e4bc9f6e0fb8591ec42544706801e7f56d55069c2cd91611966918b918a918691908a90613588565b60405180910390a1611a07565b825115611a0757600954604051631cff79cd60e01b81526000916001600160a01b031690631cff79cd906119ad908a9088906004016135bc565b6020604051808303816000875af11580156119cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f0919061334e565b905080611a0557611a058560008b8a886129fd565b505b7f559a88e0977defc67eb67c0a45051eb6305ff87f69228412caba10fee1cc7ea48887848888604051611a3e959493929190613588565b60405180910390a150506001600555505050505050565b6006546001600160a01b03163314611a8057604051635fc483c560e01b815260040160405180910390fd5b610b738282612a77565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611ae06040518060800160405280600081526020016000815260200160008152602001600081525090565b5063ffffffff166000908152600c6020908152604091829020825160808101845281548152600182015492810192909252600281015492820192909252600390910154606082015290565b63ffffffff81166000908152600c60205260408120610b1490612577565b600554600114611b6b5760405162461bcd60e51b8152600401610df090613281565b6002600581905563ffffffff83166000908152600c60205260408120909101549003611ba957604051623b245360ea1b815260040160405180910390fd5b63ffffffff82166000818152600e602090815260408083206001600160a01b03881684528252808320858452825280832054938352600c90915281208190611bf29084906128ca565b63ffffffff87166000818152600e602090815260408083206001600160a01b038d16845282528083208a84528252808320859055928252600f905290812080549395509193508492611c459084906135e8565b90915550611c559050868361291e565b6000848152600a6020526040902054600160281b90046001600160a01b031681158015611c8a57506001600160a01b03811615155b15611da057806001600160a01b0316876001600160a01b031614611cc157604051631e4ec46b60e01b815260040160405180910390fd5b6000858152600a602052604090205463ffffffff61010090910481169087168114611cff57604051631d4b10af60e31b815260040160405180910390fd5b6000868152600a6020526040808220805460ff191681556009549151631cff79cd60e01b81526001600160a01b0390921691631cff79cd91611d49918d91600101906004016132a5565b6020604051808303816000875af1158015611d68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d8c919061334e565b90508015611d9d57611d9d87612394565b50505b7ffac32bed6a62a1ce41dd6b7d265ce8efac0a42da086112311ef186939c5aa1458688858589604051611dd7959493929190613588565b60405180910390a1505060016005555050505050565b6001600160a01b038316611e4f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610df0565b6001600160a01b038216611eb05760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610df0565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000611f1d8484611a8a565b90506000198114610e045781811015611f785760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610df0565b610e048484848403611ded565b601e546001600160a01b03848116911614801590611fb15750601e546001600160a01b03838116911614155b8015611fd657506001600160a01b03831660009081526010602052604090205460ff16155b8015611ffb57506001600160a01b03821660009081526010602052604090205460ff16155b1561205c57604b61200b60025490565b61201591906135fb565b81612035846001600160a01b031660009081526020819052604090205490565b61203f919061326e565b1061205c5760405162461bcd60e51b8152600401610df09061361d565b601e546001600160a01b03848116911614806120855750601e546001600160a01b038381169116145b80156120aa57506001600160a01b03831660009081526010602052604090205460ff16155b80156120cf57506001600160a01b03821660009081526010602052604090205460ff16155b1561224957601e546001600160a01b03848116911614801561210a57506001600160a01b03831660009081526010602052604090205460ff16155b801561212f57506001600160a01b03821660009081526010602052604090205460ff16155b1561219057604b61213f60025490565b61214991906135fb565b81612169846001600160a01b031660009081526020819052604090205490565b612173919061326e565b106121905760405162461bcd60e51b8152600401610df09061361d565b60006064601954836121a2919061366d565b6121ac91906135fb565b905060006064601b54846121c0919061366d565b6121ca91906135fb565b905060006064601a54856121de919061366d565b6121e891906135fb565b905060006064601c54866121fc919061366d565b61220691906135fb565b905060008183612216868861326e565b612220919061326e565b61222a919061326e565b9050612237883083612acf565b61224181876135e8565b955050505050505b612254838383612acf565b505050565b60008281526008602090815260408083206001600160a01b0385168085529252808320805460ff1916600117905551909184917f2ae6a113c0ed5b78a53413ffbb7679881f11145ccfba4fb92e863dfcd5a1d2f39190a35050565b600680546001600160a01b0383166001600160a01b031991821681179092556007805490911690556040517ffbe19c9b601f5ee90b44c7390f3fa2319eba01762d34ee372aeafd59b25c7f8790600090a250565b6001600160a01b03821661232f5760405163d92e233d60e01b815260040160405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b0384160161235e576122548282612c9d565b826001600160a01b03163b60000361238957604051630f58058360e11b815260040160405180910390fd5b612254838383612cee565b6000818152600a60208181526040808420805465010000000000600160c81b03191681558151808401909252848252938590529190526001909101906123da90826136ca565b506000908152600a60205260409020805464ffffffffff19169055565b6000601c54601a54601b5460195461240f919061326e565b612419919061326e565b612423919061326e565b6011546019549192506001600160a01b0316906108fc908390612446908661366d565b61245091906135fb565b6040518115909202916000818181858888f19350505050158015612478573d6000803e3d6000fd5b50601254601b546001600160a01b03909116906108fc90839061249b908661366d565b6124a591906135fb565b6040518115909202916000818181858888f193505050501580156124cd573d6000803e3d6000fd5b50601354601a546001600160a01b03909116906108fc9083906124f0908661366d565b6124fa91906135fb565b6040518115909202916000818181858888f19350505050158015612522573d6000803e3d6000fd5b50601554601c546001600160a01b03909116906108fc908390612545908661366d565b61254f91906135fb565b6040518115909202916000818181858888f19350505050158015612254573d6000803e3d6000fd5b8054600090819061258890426135e8565b9050600083600101548261259c919061366d565b905083600201548460030154826125b3919061326e565b11156125c557836002015492506125d7565b60038401546125d4908261326e565b92505b5050919050565b60006125e982612577565b9050828110612609574282556125ff83826135e8565b6003830155505050565b60405163023f5d6960e51b815260040160405180910390fd5b6001600160a01b0382166126825760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610df0565b6001600160a01b038216600090815260208190526040902054818110156126f65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610df0565b6001600160a01b03831660009081526020819052604081208383039055600280548492906127259084906135e8565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106127a5576127a561342a565b6001600160a01b03928316602091820292909201810191909152601d54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa1580156127fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612822919061378a565b816001815181106128355761283561342a565b6001600160a01b039283166020918202929092010152601d5461285b9130911684611ded565b601d5460405163791ac94760e01b81526001600160a01b039091169063791ac947906128949085906000908690309042906004016137a7565b600060405180830381600087803b1580156128ae57600080fd5b505af11580156128c2573d6000803e3d6000fd5b505050505050565b60008060006128d884612577565b42855590508481106128ff576128ee85826135e8565b600385015584925060009150612916565b6000600385015591508161291381866135e8565b91505b509250929050565b6001600160a01b0382166129745760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610df0565b8060026000828254612986919061326e565b90915550506001600160a01b038216600090815260208190526040812080548392906129b390849061326e565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000858152600a60205260409020805465010000000000600160c81b031916600160281b6001600160a01b03851602178155600101612a3c82826136ca565b5050506000928352600a6020526040909220805464ffffffffff191661010063ffffffff9094169390930260ff191692909217901515179055565b60008281526008602090815260408083206001600160a01b0385168085529252808320805460ff1916905551909184917f155aaafb6329a2098580462df33ec4b7441b19729b9601c5fc17ae1cf99a8a529190a35050565b6001600160a01b038316612b335760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610df0565b6001600160a01b038216612b955760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610df0565b6001600160a01b03831660009081526020819052604090205481811015612c0d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610df0565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290612c4490849061326e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612c9091815260200190565b60405180910390a3610e04565b600080600080600085875af19050806122545760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b6044820152606401610df0565b600060405163a9059cbb60e01b81526001600160a01b0384166004820152826024820152602060006044836000895af13d15601f3d1160016000511416171691505080610e045760405162461bcd60e51b815260206004820152600f60248201526e1514905394d1915497d19052531151608a1b6044820152606401610df0565b60005b83811015612d8a578181015183820152602001612d72565b50506000910152565b60008151808452612dab816020860160208601612d6f565b601f01601f19169290920160200192915050565b60208152600061107f6020830184612d93565b6001600160a01b0381168114610fb757600080fd5b60008060408385031215612dfa57600080fd5b8235612e0581612dd2565b946020939093013593505050565b803563ffffffff81168114612e2757600080fd5b919050565b600080600060608486031215612e4157600080fd5b612e4a84612e13565b92506020840135612e5a81612dd2565b929592945050506040919091013590565b600080600060608486031215612e8057600080fd5b8335612e4a81612dd2565b60008060408385031215612e9e57600080fd5b823591506020830135612eb081612dd2565b809150509250929050565b600060208284031215612ecd57600080fd5b61107f82612e13565b600060208284031215612ee857600080fd5b5035919050565b841515815263ffffffff841660208201526001600160a01b0383166040820152608060608201819052600090612f2790830184612d93565b9695505050505050565b600060208284031215612f4357600080fd5b813561107f81612dd2565b60008083601f840112612f6057600080fd5b50813567ffffffffffffffff811115612f7857600080fd5b602083019150836020828501011115612f9057600080fd5b9250929050565b60008060008060008060008060c0898b031215612fb357600080fd5b8835612fbe81612dd2565b9750612fcc60208a01612e13565b96506040890135955060608901359450608089013567ffffffffffffffff80821115612ff757600080fd5b6130038c838d01612f4e565b909650945060a08b013591508082111561301c57600080fd5b506130298b828c01612f4e565b999c989b5096995094979396929594505050565b6000806020838503121561305057600080fd5b823567ffffffffffffffff8082111561306857600080fd5b818501915085601f83011261307c57600080fd5b81358181111561308b57600080fd5b8660208260071b85010111156130a057600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156130f1576130f16130b2565b604052919050565b600067ffffffffffffffff821115613113576131136130b2565b50601f01601f191660200190565b6000806040838503121561313457600080fd5b61313d83612e13565b9150602083013567ffffffffffffffff81111561315957600080fd5b8301601f8101851361316a57600080fd5b803561317d613178826130f9565b6130c8565b81815286602083850101111561319257600080fd5b816020840160208301376000602083830101528093505050509250929050565b600080604083850312156131c557600080fd5b82356131d081612dd2565b91506020830135612eb081612dd2565b6000806000606084860312156131f557600080fd5b833561320081612dd2565b925061320e60208501612e13565b9150604084013590509250925092565b600181811c9082168061323257607f821691505b60208210810361325257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610b1457610b14613258565b6020808252600a90820152695245454e5452414e435960b01b604082015260600190565b60018060a01b038316815260006020604081840152600084546132c78161321e565b80604087015260606001808416600081146132e9576001811461330357613331565b60ff1985168984015283151560051b890183019550613331565b896000528660002060005b858110156133295781548b820186015290830190880161330e565b8a0184019650505b50939998505050505050505050565b8015158114610fb757600080fd5b60006020828403121561336057600080fd5b815161107f81613340565b60006020828403121561337d57600080fd5b5051919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60018060a01b03861681528460208201528360408201526080606082015260006133db608083018486613384565b979650505050505050565b63ffffffff8616815284602082015260806040820152600061340b6080830186612d93565b828103606084015261341e818587613384565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561345257600080fd5b813561107f81613340565b60006001820161346f5761346f613258565b5060010190565b6020808252818101839052600090604080840186845b878110156134dc57813561349f81613340565b1515835263ffffffff6134b3838701612e13565b16838601528184013584840152606080830135908401526080928301929091019060010161348c565b5090979650505050505050565b600080600080608085870312156134ff57600080fd5b845161350a81612dd2565b809450506020850151925060408501519150606085015167ffffffffffffffff81111561353657600080fd5b8501601f8101871361354757600080fd5b8051613555613178826130f9565b81815288602083850101111561356a57600080fd5b61357b826020830160208601612d6f565b9598949750929550505050565b63ffffffff9590951685526001600160a01b0393909316602085015260408401919091526060830152608082015260a00190565b6001600160a01b03831681526040602082018190526000906135e090830184612d93565b949350505050565b81810381811115610b1457610b14613258565b60008261361857634e487b7160e01b600052601260045260246000fd5b500490565b60208082526030908201527f596f752063616e27742068617665206d6f7265207468616e203125206f66207460408201526f3432903a37ba30b61039bab838363c9760811b606082015260800190565b8082028115828204841417610b1457610b14613258565b601f82111561225457600081815260208120601f850160051c810160208610156136ab5750805b601f850160051c820191505b818110156128c2578281556001016136b7565b815167ffffffffffffffff8111156136e4576136e46130b2565b6136f8816136f2845461321e565b84613684565b602080601f83116001811461372d57600084156137155750858301515b600019600386901b1c1916600185901b1785556128c2565b600085815260208120601f198616915b8281101561375c5788860151825594840194600190910190840161373d565b508582101561377a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121561379c57600080fd5b815161107f81612dd2565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156137f75784516001600160a01b0316835293830193918301916001016137d2565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220d7278e26ca7835f3a813b9bc3caad4cd13bc41b7907b3199e67b9ae9349e9b6764736f6c634300081100330000000000000000000000000000000000000000007c13bc4b2c133c560000000000000000000000000000004cac359ab2a020cf212d82c1b66fc8abf81b1dd000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004cac359ab2a020cf212d82c1b66fc8abf81b1dd00000000000000000000000000c610203a017711977947ac91be02a1023c482f00000000000000000000000005fda1dec47b50afff74b1387f7f0e9ef18ed98b20000000000000000000000002a0b1827488acbb79a363a7dcf35424b18208fc4000000000000000000000000cc59e2e4cf86df813dad356021562a59785923ae000000000000000000000000e5840701202488be8284ea3e5e2bf7ad1965dc7e0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000004cac359ab2a020cf212d82c1b66fc8abf81b1dd0
Deployed Bytecode
0x6080604052600436106103545760003560e01c806378c1d245116101c6578063aa128e8f116100f7578063da6fa55c11610095578063e9293a721161006f578063e9293a72146109ee578063f0d526ca14610a0e578063f75ede1c14610a2e578063f99d2a7114610a4e57600080fd5b8063da6fa55c14610988578063dbe66ca01461099e578063dd62ed3e146109ce57600080fd5b8063c41f1f6c116100d1578063c41f1f6c14610915578063c816841b14610928578063d158272d14610948578063d547741f1461096857600080fd5b8063aa128e8f146108b5578063afe03518146108d5578063bbeaa1f8146108f557600080fd5b806393bba22f116101645780639f0adf5c1161013e5780639f0adf5c14610840578063a1284a4714610855578063a457c2d714610875578063a9059cbb1461089557600080fd5b806393bba22f146107f857806393cdb78c1461081857806395d89b411461082b57600080fd5b80638da5cb5b116101a05780638da5cb5b1461077a5780638eb83f251461079857806391c588b6146107b857806391d14854146107d857600080fd5b806378c1d245146107255780637c13efd4146107455780638aaff1211461075a57600080fd5b806335ffe710116102a057806361eb048a1161023e5780636c9230db116102185780636c9230db1461069c5780636ccae054146106af5780636f9499ca146106cf57806370a08231146106ef57600080fd5b806361eb048a1461063c57806362cc3cc81461065c57806369b272641461067c57600080fd5b80634e0856a71161027a5780634e0856a71461059d5780634fcd1285146105b35780635a27763d146105c95780635b94db271461061c57600080fd5b806335ffe7101461055257806339509351146105685780633bd1adec1461058857600080fd5b806323b872dd1161030d5780632fb47be4116102e75780632fb47be4146104dd578063313ce567146104f3578063322925641461050f57806332a2c5d01461053f57600080fd5b806323b872dd1461046e5780632f2ff15d1461048e5780632f57db74146104b057600080fd5b806306fdde0314610360578063095ea7b31461038b57806318160ddd146103bb57806320ca3c7f146103da57806320f99c0a14610412578063237f835b1461043057600080fd5b3661035b57005b600080fd5b34801561036c57600080fd5b50610375610a6e565b6040516103829190612dbf565b60405180910390f35b34801561039757600080fd5b506103ab6103a6366004612de7565b610b00565b6040519015158152602001610382565b3480156103c757600080fd5b506002545b604051908152602001610382565b3480156103e657600080fd5b506017546103fa906001600160a01b031681565b6040516001600160a01b039091168152602001610382565b34801561041e57600080fd5b506007546001600160a01b03166103fa565b34801561043c57600080fd5b506103cc61044b366004612e2c565b600e60209081526000938452604080852082529284528284209052825290205481565b34801561047a57600080fd5b506103ab610489366004612e6b565b610b1a565b34801561049a57600080fd5b506104ae6104a9366004612e8b565b610b3e565b005b3480156104bc57600080fd5b506103cc6104cb366004612ebb565b600f6020526000908152604090205481565b3480156104e957600080fd5b506103cc60185481565b3480156104ff57600080fd5b5060405160128152602001610382565b34801561051b57600080fd5b5061052f61052a366004612ed6565b610b77565b6040516103829493929190612eef565b34801561054b57600080fd5b50306103fa565b34801561055e57600080fd5b506103cc60195481565b34801561057457600080fd5b506103ab610583366004612de7565b610c3d565b34801561059457600080fd5b506104ae610c5f565b3480156105a957600080fd5b506103cc601c5481565b3480156105bf57600080fd5b506103cc601a5481565b3480156105d557600080fd5b506105e96105e4366004612ebb565b610c95565b60405161038291908151815260208083015190820152604080830151908201526060918201519181019190915260800190565b34801561062857600080fd5b506104ae610637366004612f31565b610d0b565b34801561064857600080fd5b506013546103fa906001600160a01b031681565b34801561066857600080fd5b506011546103fa906001600160a01b031681565b34801561068857600080fd5b506009546103fa906001600160a01b031681565b3480156106a857600080fd5b50426103cc565b3480156106bb57600080fd5b506104ae6106ca366004612e6b565b610d80565b3480156106db57600080fd5b506104ae6106ea366004612ed6565b610e0a565b3480156106fb57600080fd5b506103cc61070a366004612f31565b6001600160a01b031660009081526020819052604090205490565b34801561073157600080fd5b506104ae610740366004612f31565b610f33565b34801561075157600080fd5b506104ae610f82565b34801561076657600080fd5b506103cc610775366004612ebb565b610fba565b34801561078657600080fd5b506006546001600160a01b03166103fa565b3480156107a457600080fd5b506014546103fa906001600160a01b031681565b3480156107c457600080fd5b506104ae6107d3366004612f31565b610fd8565b3480156107e457600080fd5b506103ab6107f3366004612e8b565b611058565b34801561080457600080fd5b506104ae610813366004612f31565b611086565b6104ae610826366004612f97565b6110ff565b34801561083757600080fd5b50610375611335565b34801561084c57600080fd5b506104ae611344565b34801561086157600080fd5b506104ae61087036600461303d565b61138e565b34801561088157600080fd5b506103ab610890366004612de7565b611692565b3480156108a157600080fd5b506103ab6108b0366004612de7565b61170d565b3480156108c157600080fd5b50600b546103fa906001600160a01b031681565b3480156108e157600080fd5b506015546103fa906001600160a01b031681565b34801561090157600080fd5b506104ae610910366004612f31565b61171b565b6104ae610923366004613121565b611767565b34801561093457600080fd5b50601e546103fa906001600160a01b031681565b34801561095457600080fd5b506012546103fa906001600160a01b031681565b34801561097457600080fd5b506104ae610983366004612e8b565b611a55565b34801561099457600080fd5b506103cc601b5481565b3480156109aa57600080fd5b506103ab6109b9366004612f31565b60106020526000908152604090205460ff1681565b3480156109da57600080fd5b506103cc6109e93660046131b2565b611a8a565b3480156109fa57600080fd5b506105e9610a09366004612ebb565b611ab5565b348015610a1a57600080fd5b506016546103fa906001600160a01b031681565b348015610a3a57600080fd5b506103cc610a49366004612ebb565b611b2b565b348015610a5a57600080fd5b506104ae610a693660046131e0565b611b49565b606060038054610a7d9061321e565b80601f0160208091040260200160405190810160405280929190818152602001828054610aa99061321e565b8015610af65780601f10610acb57610100808354040283529160200191610af6565b820191906000526020600020905b815481529060010190602001808311610ad957829003601f168201915b5050505050905090565b600033610b0e818585611ded565b60019150505b92915050565b600033610b28858285611f11565b610b33858585611f85565b506001949350505050565b6006546001600160a01b03163314610b6957604051635fc483c560e01b815260040160405180910390fd5b610b738282612259565b5050565b600a602052600090815260409020805460018201805460ff831693610100840463ffffffff1693600160281b90046001600160a01b0316929091610bba9061321e565b80601f0160208091040260200160405190810160405280929190818152602001828054610be69061321e565b8015610c335780601f10610c0857610100808354040283529160200191610c33565b820191906000526020600020905b815481529060010190602001808311610c1657829003601f168201915b5050505050905084565b600033610b0e818585610c508383611a8a565b610c5a919061326e565b611ded565b6007546001600160a01b03163314610c8a57604051637c91ccdd60e01b815260040160405180910390fd5b610c93336122b4565b565b610cc06040518060800160405280600081526020016000815260200160008152602001600081525090565b5063ffffffff166000908152600d6020908152604091829020825160808101845281548152600182015492810192909252600281015492820192909252600390910154606082015290565b6006546001600160a01b03163314610d3657604051635fc483c560e01b815260040160405180910390fd5b600780546001600160a01b0319166001600160a01b0383169081179091556040517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2290600090a250565b3360009081527f9feb9cbe7a45464a9f352055cd50b7410b8f8df450af3d1acf4272d5554fe2e360205260409020547fc4c453d647953c0fd35db5a34ee76e60fb4abc3a8fb891a25936b70b38f292539060ff16610df95760405163962f633360e01b8152600481018290526024015b60405180910390fd5b610e04848484612308565b50505050565b600554600114610e2c5760405162461bcd60e51b8152600401610df090613281565b60026005556000818152600a60205260409020805460ff1615610e62576040516337b873b960e01b815260040160405180910390fd5b8054600160281b90046001600160a01b0316610e9157604051633d61ca4d60e21b815260040160405180910390fd5b6009548154604051631cff79cd60e01b81526000926001600160a01b0390811692631cff79cd92610ed592600160281b9092049091169060018701906004016132a5565b6020604051808303816000875af1158015610ef4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f18919061334e565b90508015610f2957610f2983612394565b5050600160055550565b6006546001600160a01b03163314610f5e57604051635fc483c560e01b815260040160405180910390fd5b6001600160a01b03166000908152601060205260409020805460ff19166001179055565b6006546001600160a01b03163314610fad57604051635fc483c560e01b815260040160405180910390fd5b47610fb7816123f7565b50565b63ffffffff81166000908152600d60205260408120610b1490612577565b6006546001600160a01b0316331461100357604051635fc483c560e01b815260040160405180910390fd5b600980546001600160a01b0319166001600160a01b0383169081179091556040519081527f1aac17f104a8e1c4012342e87b4a69ef83304f262bfe39beb52b672c8f9c1873906020015b60405180910390a150565b60008281526008602090815260408083206001600160a01b038516845290915281205460ff165b9392505050565b6006546001600160a01b031633146110b157604051635fc483c560e01b815260040160405180910390fd5b600b80546001600160a01b0319166001600160a01b0383169081179091556040519081527f72f0936e868281e63b739e6aa295ba0995a1ed152fca9a0068f1d9c6449726f59060200161104d565b63ffffffff87166000908152600d6020526040812060020154900361113657604051623b245360ea1b815260040160405180910390fd5b8560000361115757604051631f2a200560e01b815260040160405180910390fd5b63ffffffff87166000908152600d602052604090206111779087906125de565b6111813387612622565b600b54604051639dc1128960e01b815263ffffffff891660048201526000916001600160a01b031690639dc1128990602401602060405180830381865afa1580156111d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f4919061336b565b90506000600b60009054906101000a90046001600160a01b03166001600160a01b0316636064b504348b8a8e8d888d8d6040516020016112389594939291906133ad565b60405160208183030381529060405289896040518763ffffffff1660e01b81526004016112699594939291906133e6565b60206040518083038185885af1158015611287573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906112ac919061336b565b90508181146112ce576040516303dbdddf60e51b815260040160405180910390fd5b6040805163ffffffff8b1681523360208201526001600160a01b038c1681830152606081018a90526080810184905290517f6844871d2b3f02397af87ac411a58d4915ed46e1be835bf9f266b1937c48ec8c9181900360a00190a150505050505050505050565b606060048054610a7d9061321e565b6006546001600160a01b0316331461136f57604051635fc483c560e01b815260040160405180910390fd5b306000908152602081905260409020548015610fb757610fb781612770565b3360009081527ff6091e73e819ea3cd1b46b1d8d5efd4b46f96d438142eece9165cf18a7ec806c60205260409020547f129109734c476f17817fbe7bcf461de566dcce58e4c0cb61b62d1b9af26fe47f9060ff166114025760405163962f633360e01b815260048101829052602401610df0565b60005b828110156116535783838281811061141f5761141f61342a565b6114359260206080909202019081019150613440565b1561155b5761148c6000600c60008787868181106114555761145561342a565b905060800201602001602081019061146d9190612ebb565b63ffffffff1663ffffffff1681526020019081526020016000206128ca565b50508383828181106114a0576114a061342a565b90506080020160400135600c60008686858181106114c0576114c061342a565b90506080020160200160208101906114d89190612ebb565b63ffffffff1681526020810191909152604001600020600201558383828181106115045761150461342a565b90506080020160600135600c60008686858181106115245761152461342a565b905060800201602001602081019061153c9190612ebb565b63ffffffff168152602081019190915260400160002060010155611641565b6115766000600d60008787868181106114555761145561342a565b505083838281811061158a5761158a61342a565b90506080020160400135600d60008686858181106115aa576115aa61342a565b90506080020160200160208101906115c29190612ebb565b63ffffffff1681526020810191909152604001600020600201558383828181106115ee576115ee61342a565b90506080020160600135600d600086868581811061160e5761160e61342a565b90506080020160200160208101906116269190612ebb565b63ffffffff1681526020810191909152604001600020600101555b8061164b8161345d565b915050611405565b507f443adfdab30667bb36a851e5758d544ef4e1d7ac911e59dab256cbe38545468b8383604051611685929190613476565b60405180910390a1505050565b600033816116a08286611a8a565b9050838110156117005760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610df0565b610b338286868403611ded565b600033610b0e818585611f85565b6006546001600160a01b0316331461174657604051635fc483c560e01b815260040160405180910390fd5b6001600160a01b03166000908152601060205260409020805460ff19169055565b6005546001146117895760405162461bcd60e51b8152600401610df090613281565b6002600555600b546001600160a01b031633146117b957604051632f83ddfb60e11b815260040160405180910390fd5b63ffffffff82166000908152600c602052604081206002015490036117f057604051623b245360ea1b815260040160405180910390fd5b6000806000808480602001905181019061180a91906134e9565b935093509350935060008061183d85600c60008b63ffffffff1663ffffffff1681526020019081526020016000206128ca565b90925090506001600160a01b0386163014806118665750600b546001600160a01b038781169116145b15611884576040516357911ddd60e11b815260040160405180910390fd5b61188e868361291e565b80156119735763ffffffff88166000818152600e602090815260408083206001600160a01b038b16845282528083208884528252808320859055928252600f905290812080548392906118e290849061326e565b90915550508251156118fc576118fc8460018a89876129fd565b63ffffffff88166000908152600e602090815260408083206001600160a01b038a1684528252808320878452909152908190205490517f7ad82b04361f30f48f6c6e4bc9f6e0fb8591ec42544706801e7f56d55069c2cd91611966918b918a918691908a90613588565b60405180910390a1611a07565b825115611a0757600954604051631cff79cd60e01b81526000916001600160a01b031690631cff79cd906119ad908a9088906004016135bc565b6020604051808303816000875af11580156119cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f0919061334e565b905080611a0557611a058560008b8a886129fd565b505b7f559a88e0977defc67eb67c0a45051eb6305ff87f69228412caba10fee1cc7ea48887848888604051611a3e959493929190613588565b60405180910390a150506001600555505050505050565b6006546001600160a01b03163314611a8057604051635fc483c560e01b815260040160405180910390fd5b610b738282612a77565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611ae06040518060800160405280600081526020016000815260200160008152602001600081525090565b5063ffffffff166000908152600c6020908152604091829020825160808101845281548152600182015492810192909252600281015492820192909252600390910154606082015290565b63ffffffff81166000908152600c60205260408120610b1490612577565b600554600114611b6b5760405162461bcd60e51b8152600401610df090613281565b6002600581905563ffffffff83166000908152600c60205260408120909101549003611ba957604051623b245360ea1b815260040160405180910390fd5b63ffffffff82166000818152600e602090815260408083206001600160a01b03881684528252808320858452825280832054938352600c90915281208190611bf29084906128ca565b63ffffffff87166000818152600e602090815260408083206001600160a01b038d16845282528083208a84528252808320859055928252600f905290812080549395509193508492611c459084906135e8565b90915550611c559050868361291e565b6000848152600a6020526040902054600160281b90046001600160a01b031681158015611c8a57506001600160a01b03811615155b15611da057806001600160a01b0316876001600160a01b031614611cc157604051631e4ec46b60e01b815260040160405180910390fd5b6000858152600a602052604090205463ffffffff61010090910481169087168114611cff57604051631d4b10af60e31b815260040160405180910390fd5b6000868152600a6020526040808220805460ff191681556009549151631cff79cd60e01b81526001600160a01b0390921691631cff79cd91611d49918d91600101906004016132a5565b6020604051808303816000875af1158015611d68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d8c919061334e565b90508015611d9d57611d9d87612394565b50505b7ffac32bed6a62a1ce41dd6b7d265ce8efac0a42da086112311ef186939c5aa1458688858589604051611dd7959493929190613588565b60405180910390a1505060016005555050505050565b6001600160a01b038316611e4f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610df0565b6001600160a01b038216611eb05760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610df0565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000611f1d8484611a8a565b90506000198114610e045781811015611f785760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610df0565b610e048484848403611ded565b601e546001600160a01b03848116911614801590611fb15750601e546001600160a01b03838116911614155b8015611fd657506001600160a01b03831660009081526010602052604090205460ff16155b8015611ffb57506001600160a01b03821660009081526010602052604090205460ff16155b1561205c57604b61200b60025490565b61201591906135fb565b81612035846001600160a01b031660009081526020819052604090205490565b61203f919061326e565b1061205c5760405162461bcd60e51b8152600401610df09061361d565b601e546001600160a01b03848116911614806120855750601e546001600160a01b038381169116145b80156120aa57506001600160a01b03831660009081526010602052604090205460ff16155b80156120cf57506001600160a01b03821660009081526010602052604090205460ff16155b1561224957601e546001600160a01b03848116911614801561210a57506001600160a01b03831660009081526010602052604090205460ff16155b801561212f57506001600160a01b03821660009081526010602052604090205460ff16155b1561219057604b61213f60025490565b61214991906135fb565b81612169846001600160a01b031660009081526020819052604090205490565b612173919061326e565b106121905760405162461bcd60e51b8152600401610df09061361d565b60006064601954836121a2919061366d565b6121ac91906135fb565b905060006064601b54846121c0919061366d565b6121ca91906135fb565b905060006064601a54856121de919061366d565b6121e891906135fb565b905060006064601c54866121fc919061366d565b61220691906135fb565b905060008183612216868861326e565b612220919061326e565b61222a919061326e565b9050612237883083612acf565b61224181876135e8565b955050505050505b612254838383612acf565b505050565b60008281526008602090815260408083206001600160a01b0385168085529252808320805460ff1916600117905551909184917f2ae6a113c0ed5b78a53413ffbb7679881f11145ccfba4fb92e863dfcd5a1d2f39190a35050565b600680546001600160a01b0383166001600160a01b031991821681179092556007805490911690556040517ffbe19c9b601f5ee90b44c7390f3fa2319eba01762d34ee372aeafd59b25c7f8790600090a250565b6001600160a01b03821661232f5760405163d92e233d60e01b815260040160405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b0384160161235e576122548282612c9d565b826001600160a01b03163b60000361238957604051630f58058360e11b815260040160405180910390fd5b612254838383612cee565b6000818152600a60208181526040808420805465010000000000600160c81b03191681558151808401909252848252938590529190526001909101906123da90826136ca565b506000908152600a60205260409020805464ffffffffff19169055565b6000601c54601a54601b5460195461240f919061326e565b612419919061326e565b612423919061326e565b6011546019549192506001600160a01b0316906108fc908390612446908661366d565b61245091906135fb565b6040518115909202916000818181858888f19350505050158015612478573d6000803e3d6000fd5b50601254601b546001600160a01b03909116906108fc90839061249b908661366d565b6124a591906135fb565b6040518115909202916000818181858888f193505050501580156124cd573d6000803e3d6000fd5b50601354601a546001600160a01b03909116906108fc9083906124f0908661366d565b6124fa91906135fb565b6040518115909202916000818181858888f19350505050158015612522573d6000803e3d6000fd5b50601554601c546001600160a01b03909116906108fc908390612545908661366d565b61254f91906135fb565b6040518115909202916000818181858888f19350505050158015612254573d6000803e3d6000fd5b8054600090819061258890426135e8565b9050600083600101548261259c919061366d565b905083600201548460030154826125b3919061326e565b11156125c557836002015492506125d7565b60038401546125d4908261326e565b92505b5050919050565b60006125e982612577565b9050828110612609574282556125ff83826135e8565b6003830155505050565b60405163023f5d6960e51b815260040160405180910390fd5b6001600160a01b0382166126825760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610df0565b6001600160a01b038216600090815260208190526040902054818110156126f65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610df0565b6001600160a01b03831660009081526020819052604081208383039055600280548492906127259084906135e8565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106127a5576127a561342a565b6001600160a01b03928316602091820292909201810191909152601d54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa1580156127fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612822919061378a565b816001815181106128355761283561342a565b6001600160a01b039283166020918202929092010152601d5461285b9130911684611ded565b601d5460405163791ac94760e01b81526001600160a01b039091169063791ac947906128949085906000908690309042906004016137a7565b600060405180830381600087803b1580156128ae57600080fd5b505af11580156128c2573d6000803e3d6000fd5b505050505050565b60008060006128d884612577565b42855590508481106128ff576128ee85826135e8565b600385015584925060009150612916565b6000600385015591508161291381866135e8565b91505b509250929050565b6001600160a01b0382166129745760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610df0565b8060026000828254612986919061326e565b90915550506001600160a01b038216600090815260208190526040812080548392906129b390849061326e565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000858152600a60205260409020805465010000000000600160c81b031916600160281b6001600160a01b03851602178155600101612a3c82826136ca565b5050506000928352600a6020526040909220805464ffffffffff191661010063ffffffff9094169390930260ff191692909217901515179055565b60008281526008602090815260408083206001600160a01b0385168085529252808320805460ff1916905551909184917f155aaafb6329a2098580462df33ec4b7441b19729b9601c5fc17ae1cf99a8a529190a35050565b6001600160a01b038316612b335760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610df0565b6001600160a01b038216612b955760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610df0565b6001600160a01b03831660009081526020819052604090205481811015612c0d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610df0565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290612c4490849061326e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612c9091815260200190565b60405180910390a3610e04565b600080600080600085875af19050806122545760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b6044820152606401610df0565b600060405163a9059cbb60e01b81526001600160a01b0384166004820152826024820152602060006044836000895af13d15601f3d1160016000511416171691505080610e045760405162461bcd60e51b815260206004820152600f60248201526e1514905394d1915497d19052531151608a1b6044820152606401610df0565b60005b83811015612d8a578181015183820152602001612d72565b50506000910152565b60008151808452612dab816020860160208601612d6f565b601f01601f19169290920160200192915050565b60208152600061107f6020830184612d93565b6001600160a01b0381168114610fb757600080fd5b60008060408385031215612dfa57600080fd5b8235612e0581612dd2565b946020939093013593505050565b803563ffffffff81168114612e2757600080fd5b919050565b600080600060608486031215612e4157600080fd5b612e4a84612e13565b92506020840135612e5a81612dd2565b929592945050506040919091013590565b600080600060608486031215612e8057600080fd5b8335612e4a81612dd2565b60008060408385031215612e9e57600080fd5b823591506020830135612eb081612dd2565b809150509250929050565b600060208284031215612ecd57600080fd5b61107f82612e13565b600060208284031215612ee857600080fd5b5035919050565b841515815263ffffffff841660208201526001600160a01b0383166040820152608060608201819052600090612f2790830184612d93565b9695505050505050565b600060208284031215612f4357600080fd5b813561107f81612dd2565b60008083601f840112612f6057600080fd5b50813567ffffffffffffffff811115612f7857600080fd5b602083019150836020828501011115612f9057600080fd5b9250929050565b60008060008060008060008060c0898b031215612fb357600080fd5b8835612fbe81612dd2565b9750612fcc60208a01612e13565b96506040890135955060608901359450608089013567ffffffffffffffff80821115612ff757600080fd5b6130038c838d01612f4e565b909650945060a08b013591508082111561301c57600080fd5b506130298b828c01612f4e565b999c989b5096995094979396929594505050565b6000806020838503121561305057600080fd5b823567ffffffffffffffff8082111561306857600080fd5b818501915085601f83011261307c57600080fd5b81358181111561308b57600080fd5b8660208260071b85010111156130a057600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156130f1576130f16130b2565b604052919050565b600067ffffffffffffffff821115613113576131136130b2565b50601f01601f191660200190565b6000806040838503121561313457600080fd5b61313d83612e13565b9150602083013567ffffffffffffffff81111561315957600080fd5b8301601f8101851361316a57600080fd5b803561317d613178826130f9565b6130c8565b81815286602083850101111561319257600080fd5b816020840160208301376000602083830101528093505050509250929050565b600080604083850312156131c557600080fd5b82356131d081612dd2565b91506020830135612eb081612dd2565b6000806000606084860312156131f557600080fd5b833561320081612dd2565b925061320e60208501612e13565b9150604084013590509250925092565b600181811c9082168061323257607f821691505b60208210810361325257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610b1457610b14613258565b6020808252600a90820152695245454e5452414e435960b01b604082015260600190565b60018060a01b038316815260006020604081840152600084546132c78161321e565b80604087015260606001808416600081146132e9576001811461330357613331565b60ff1985168984015283151560051b890183019550613331565b896000528660002060005b858110156133295781548b820186015290830190880161330e565b8a0184019650505b50939998505050505050505050565b8015158114610fb757600080fd5b60006020828403121561336057600080fd5b815161107f81613340565b60006020828403121561337d57600080fd5b5051919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60018060a01b03861681528460208201528360408201526080606082015260006133db608083018486613384565b979650505050505050565b63ffffffff8616815284602082015260806040820152600061340b6080830186612d93565b828103606084015261341e818587613384565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561345257600080fd5b813561107f81613340565b60006001820161346f5761346f613258565b5060010190565b6020808252818101839052600090604080840186845b878110156134dc57813561349f81613340565b1515835263ffffffff6134b3838701612e13565b16838601528184013584840152606080830135908401526080928301929091019060010161348c565b5090979650505050505050565b600080600080608085870312156134ff57600080fd5b845161350a81612dd2565b809450506020850151925060408501519150606085015167ffffffffffffffff81111561353657600080fd5b8501601f8101871361354757600080fd5b8051613555613178826130f9565b81815288602083850101111561356a57600080fd5b61357b826020830160208601612d6f565b9598949750929550505050565b63ffffffff9590951685526001600160a01b0393909316602085015260408401919091526060830152608082015260a00190565b6001600160a01b03831681526040602082018190526000906135e090830184612d93565b949350505050565b81810381811115610b1457610b14613258565b60008261361857634e487b7160e01b600052601260045260246000fd5b500490565b60208082526030908201527f596f752063616e27742068617665206d6f7265207468616e203125206f66207460408201526f3432903a37ba30b61039bab838363c9760811b606082015260800190565b8082028115828204841417610b1457610b14613258565b601f82111561225457600081815260208120601f850160051c810160208610156136ab5750805b601f850160051c820191505b818110156128c2578281556001016136b7565b815167ffffffffffffffff8111156136e4576136e46130b2565b6136f8816136f2845461321e565b84613684565b602080601f83116001811461372d57600084156137155750858301515b600019600386901b1c1916600185901b1785556128c2565b600085815260208120601f198616915b8281101561375c5788860151825594840194600190910190840161373d565b508582101561377a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121561379c57600080fd5b815161107f81612dd2565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156137f75784516001600160a01b0316835293830193918301916001016137d2565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220d7278e26ca7835f3a813b9bc3caad4cd13bc41b7907b3199e67b9ae9349e9b6764736f6c63430008110033
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.