Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Latest 25 from a total of 144 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Deposit For Burn | 24490585 | 3 days ago | IN | 0 ETH | 0.00000574 | ||||
| Deposit For Burn | 24486456 | 4 days ago | IN | 0 ETH | 0.00033461 | ||||
| Deposit For Burn | 24485970 | 4 days ago | IN | 0 ETH | 0.0001896 | ||||
| Deposit For Burn | 24485630 | 4 days ago | IN | 0 ETH | 0.00006202 | ||||
| Deposit For Burn | 24477485 | 5 days ago | IN | 0 ETH | 0.00003013 | ||||
| Deposit For Burn | 24470611 | 6 days ago | IN | 0 ETH | 0.00033443 | ||||
| Deposit For Burn | 24467124 | 6 days ago | IN | 0 ETH | 0.00033179 | ||||
| Deposit For Burn | 24463718 | 7 days ago | IN | 0 ETH | 0.00032217 | ||||
| Deposit For Burn | 24448313 | 9 days ago | IN | 0 ETH | 0.00001509 | ||||
| Deposit For Burn | 24433437 | 11 days ago | IN | 0 ETH | 0.00033429 | ||||
| Deposit For Burn | 24428087 | 12 days ago | IN | 0 ETH | 0.00001971 | ||||
| Deposit For Burn | 24427078 | 12 days ago | IN | 0 ETH | 0.0000357 | ||||
| Deposit For Burn | 24415033 | 14 days ago | IN | 0 ETH | 0.0000145 | ||||
| Deposit For Burn | 24414925 | 14 days ago | IN | 0 ETH | 0.00000246 | ||||
| Deposit For Burn | 24406215 | 15 days ago | IN | 0 ETH | 0.00033433 | ||||
| Deposit For Burn | 24405256 | 15 days ago | IN | 0 ETH | 0.00032967 | ||||
| Deposit For Burn | 24405054 | 15 days ago | IN | 0 ETH | 0.00033464 | ||||
| Deposit For Burn | 24405022 | 15 days ago | IN | 0 ETH | 0.00033825 | ||||
| Deposit For Burn | 24404984 | 15 days ago | IN | 0 ETH | 0.00034295 | ||||
| Deposit For Burn | 24404965 | 15 days ago | IN | 0 ETH | 0.00036321 | ||||
| Deposit For Burn | 24396670 | 16 days ago | IN | 0 ETH | 0.00003046 | ||||
| Deposit For Burn | 24396321 | 16 days ago | IN | 0 ETH | 0.00006917 | ||||
| Deposit For Burn | 24392862 | 17 days ago | IN | 0 ETH | 0.00019916 | ||||
| Deposit For Burn | 24384252 | 18 days ago | IN | 0 ETH | 0.00028849 | ||||
| Deposit For Burn | 24378553 | 19 days ago | IN | 0 ETH | 0.00010108 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
CircleBridgeProxyV2
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.17;
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./FeeOperator.sol";
import "../interfaces/ICircleBridge.sol";
import "../safeguard/Governor.sol";
import "../safeguard/Pauser.sol";
contract CircleBridgeProxyV2 is FeeOperator, Governor, Pauser, ReentrancyGuard {
using SafeERC20 for IERC20;
address public immutable circleBridge;
uint32 public feePercGlobal; //in 1e6
// chainId => feePercOverride, support override fee perc by dst chain
mapping(uint64 => uint32) public feePercOverride;
/// per dest chain id executor fee in this chain's USDC token
mapping(uint64 => uint256) public dstTxFee;
// 0 is regarded as not registered. Set to a negative value if target domain is actually 0.
mapping(uint64 => int32) public chidToDomain;
event FeePercUpdated(uint64[] chainIds, uint32[] feePercs);
event TxFeeUpdated(uint64[] chainIds, uint256[] fees);
event ChidToDomainUpdated(uint64[] chainIds, int32[] domains);
event Deposited(
address sender,
bytes32 recipient,
uint64 dstChid,
uint256 amount,
uint256 txFee,
uint256 percFee,
uint32 minFinalityThreshold
);
constructor(address _circleBridge, address _feeCollector) FeeOperator(_feeCollector) {
circleBridge = _circleBridge;
}
function depositForBurn(
uint256 _amount,
uint64 _dstChid,
bytes32 _mintRecipient,
address _burnToken,
uint256 _maxFee,
uint32 _minFinalityThreshold
) external nonReentrant whenNotPaused {
int32 dstDomain = chidToDomain[_dstChid];
require(dstDomain != 0, "dst domain not registered");
if (dstDomain < 0) {
dstDomain = 0; // a negative value indicates the target domain is 0 actually.
}
(uint256 fee, uint256 txFee, uint256 percFee) = totalFee(_amount, _dstChid);
require(_amount > fee, "fee not covered");
IERC20(_burnToken).safeTransferFrom(msg.sender, address(this), _amount);
uint256 bridgeAmt = _amount - fee;
IERC20(_burnToken).safeIncreaseAllowance(circleBridge, bridgeAmt);
ICircleBridge(circleBridge).depositForBurn(bridgeAmt, uint32(dstDomain), _mintRecipient, _burnToken, bytes32(0), _maxFee, _minFinalityThreshold);
IERC20(_burnToken).safeApprove(circleBridge, 0);
emit Deposited(msg.sender, _mintRecipient, _dstChid, _amount, txFee, percFee, _minFinalityThreshold);
}
function totalFee(uint256 _amount, uint64 _dstChid)
public
view
returns (
uint256 _fee,
uint256 _txFee,
uint256 _percFee
)
{
uint32 feePerc = feePercOverride[_dstChid];
if (feePerc == 0) {
feePerc = feePercGlobal;
}
_txFee = dstTxFee[_dstChid];
_percFee = (_amount * feePerc) / 1e6;
_fee = _txFee + _percFee;
}
function setFeePerc(uint64[] calldata _chainIds, uint32[] calldata _feePercs) external onlyGovernor {
require(_chainIds.length == _feePercs.length, "length mismatch");
for (uint256 i = 0; i < _chainIds.length; i++) {
require(_feePercs[i] < 1e6, "fee percentage too large");
if (_chainIds[i] == 0) {
feePercGlobal = _feePercs[i];
} else {
feePercOverride[_chainIds[i]] = _feePercs[i];
}
}
emit FeePercUpdated(_chainIds, _feePercs);
}
function setTxFee(uint64[] calldata _chainIds, uint256[] calldata _fees) external onlyGovernor {
require(_chainIds.length == _fees.length, "length mismatch");
for (uint256 i = 0; i < _chainIds.length; i++) {
dstTxFee[_chainIds[i]] = _fees[i];
}
emit TxFeeUpdated(_chainIds, _fees);
}
function setChidToDomain(uint64[] calldata _chainIds, int32[] calldata _domains) external onlyGovernor {
require(_chainIds.length == _domains.length, "length mismatch");
for (uint256 i = 0; i < _chainIds.length; i++) {
chidToDomain[_chainIds[i]] = _domains[i];
}
emit ChidToDomainUpdated(_chainIds, _domains);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
require(!paused(), "Pausable: paused");
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
require(paused(), "Pausable: not paused");
_;
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @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);
/**
* @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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// 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: GPL-3.0-only
pragma solidity ^0.8.17;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../safeguard/Ownable.sol";
abstract contract FeeOperator is Ownable {
using SafeERC20 for IERC20;
address public feeCollector;
event FeeCollectorUpdated(address from, address to);
modifier onlyFeeCollector() {
require(msg.sender == feeCollector, "not fee collector");
_;
}
constructor(address _feeCollector) {
feeCollector = _feeCollector;
}
function collectFee(address[] calldata _tokens, address _to) external onlyFeeCollector {
for (uint256 i = 0; i < _tokens.length; i++) {
// use zero address to denote native token
if (_tokens[i] == address(0)) {
uint256 bal = address(this).balance;
(bool sent, ) = _to.call{value: bal, gas: 50000}("");
require(sent, "send native failed");
} else {
uint256 balance = IERC20(_tokens[i]).balanceOf(address(this));
IERC20(_tokens[i]).safeTransfer(_to, balance);
}
}
}
function setFeeCollector(address _feeCollector) external onlyOwner {
address oldFeeCollector = feeCollector;
feeCollector = _feeCollector;
emit FeeCollectorUpdated(oldFeeCollector, _feeCollector);
}
}// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.0;
interface ICircleBridge {
/**
* @notice Deposits and burns tokens from sender to be minted on destination domain.
* Emits a `DepositForBurn` event.
* @dev reverts if:
* - given burnToken is not supported
* - given destinationDomain has no CircleBridge registered
* - transferFrom() reverts. For example, if sender's burnToken balance or approved allowance
* to this contract is less than `amount`.
* - burn() reverts. For example, if `amount` is 0.
* - MessageTransmitter returns false or reverts.
* @param _amount amount of tokens to burn
* @param _destinationDomain destination domain (ETH = 0, AVAX = 1)
* @param _mintRecipient address of mint recipient on destination domain
* @param _burnToken address of contract to burn deposited tokens, on local domain
* @return _nonce unique nonce reserved by message
*/
function depositForBurn(
uint256 _amount,
uint32 _destinationDomain,
bytes32 _mintRecipient,
address _burnToken
) external returns (uint64 _nonce);
/**
* @notice Deposits and burns tokens from sender to be minted on destination domain.
* Emits a `DepositForBurn` event.
* @dev reverts if:
* - given burnToken is not supported
* - given destinationDomain has no TokenMessenger registered
* - transferFrom() reverts. For example, if sender's burnToken balance or approved allowance
* to this contract is less than `amount`.
* - burn() reverts. For example, if `amount` is 0.
* - maxFee is greater than or equal to `amount`.
* - MessageTransmitterV2#sendMessage reverts.
* @param amount amount of tokens to burn
* @param destinationDomain destination domain to receive message on
* @param mintRecipient address of mint recipient on destination domain
* @param burnToken token to burn `amount` of, on local domain
* @param destinationCaller authorized caller on the destination domain, as bytes32. If equal to bytes32(0),
* any address can broadcast the message.
* @param maxFee maximum fee to pay on the destination domain, specified in units of burnToken
* @param minFinalityThreshold the minimum finality at which a burn message will be attested to.
*/
function depositForBurn(
uint256 amount,
uint32 destinationDomain,
bytes32 mintRecipient,
address burnToken,
bytes32 destinationCaller,
uint256 maxFee,
uint32 minFinalityThreshold
) external;
}// SPDX-License-Identifier: GPL-3.0-only
pragma solidity 0.8.17;
import "./Ownable.sol";
abstract contract Governor is Ownable {
mapping(address => bool) public governors;
event GovernorAdded(address account);
event GovernorRemoved(address account);
modifier onlyGovernor() {
require(isGovernor(msg.sender), "Caller is not governor");
_;
}
constructor() {
_addGovernor(msg.sender);
}
function isGovernor(address _account) public view returns (bool) {
return governors[_account];
}
function addGovernor(address _account) public onlyOwner {
_addGovernor(_account);
}
function removeGovernor(address _account) public onlyOwner {
_removeGovernor(_account);
}
function renounceGovernor() public {
_removeGovernor(msg.sender);
}
function _addGovernor(address _account) private {
require(!isGovernor(_account), "Account is already governor");
governors[_account] = true;
emit GovernorAdded(_account);
}
function _removeGovernor(address _account) private {
require(isGovernor(_account), "Account is not governor");
governors[_account] = false;
emit GovernorRemoved(_account);
}
}// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*
* This adds a normal func that setOwner if _owner is address(0). So we can't allow
* renounceOwnership. So we can support Proxy based upgradable contract
*/
abstract contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(msg.sender);
}
/**
* @dev Only to be called by inherit contracts, in their init func called by Proxy
* we require _owner == address(0), which is only possible when it's a delegateCall
* because constructor sets _owner in contract state.
*/
function initOwner() internal {
require(_owner == address(0), "owner already set");
_setOwner(msg.sender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == msg.sender, "Ownable: caller is not the owner");
_;
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: GPL-3.0-only
pragma solidity 0.8.17;
import "@openzeppelin/contracts/security/Pausable.sol";
import "./Ownable.sol";
abstract contract Pauser is Ownable, Pausable {
mapping(address => bool) public pausers;
event PauserAdded(address account);
event PauserRemoved(address account);
constructor() {
_addPauser(msg.sender);
}
modifier onlyPauser() {
require(isPauser(msg.sender), "Caller is not pauser");
_;
}
function pause() public onlyPauser {
_pause();
}
function unpause() public onlyPauser {
_unpause();
}
function isPauser(address account) public view returns (bool) {
return pausers[account];
}
function addPauser(address account) public onlyOwner {
_addPauser(account);
}
function removePauser(address account) public onlyOwner {
_removePauser(account);
}
function renouncePauser() public {
_removePauser(msg.sender);
}
function _addPauser(address account) private {
require(!isPauser(account), "Account is already pauser");
pausers[account] = true;
emit PauserAdded(account);
}
function _removePauser(address account) private {
require(isPauser(account), "Account is not pauser");
pausers[account] = false;
emit PauserRemoved(account);
}
}{
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs",
"useLiteralContent": true
},
"optimizer": {
"enabled": true,
"runs": 800
},
"remappings": [],
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_circleBridge","type":"address"},{"internalType":"address","name":"_feeCollector","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64[]","name":"chainIds","type":"uint64[]"},{"indexed":false,"internalType":"int32[]","name":"domains","type":"int32[]"}],"name":"ChidToDomainUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"bytes32","name":"recipient","type":"bytes32"},{"indexed":false,"internalType":"uint64","name":"dstChid","type":"uint64"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"txFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"percFee","type":"uint256"},{"indexed":false,"internalType":"uint32","name":"minFinalityThreshold","type":"uint32"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"FeeCollectorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64[]","name":"chainIds","type":"uint64[]"},{"indexed":false,"internalType":"uint32[]","name":"feePercs","type":"uint32[]"}],"name":"FeePercUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"GovernorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"GovernorRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"PauserAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"PauserRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64[]","name":"chainIds","type":"uint64[]"},{"indexed":false,"internalType":"uint256[]","name":"fees","type":"uint256[]"}],"name":"TxFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"addGovernor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addPauser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"","type":"uint64"}],"name":"chidToDomain","outputs":[{"internalType":"int32","name":"","type":"int32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"circleBridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"address","name":"_to","type":"address"}],"name":"collectFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint64","name":"_dstChid","type":"uint64"},{"internalType":"bytes32","name":"_mintRecipient","type":"bytes32"},{"internalType":"address","name":"_burnToken","type":"address"},{"internalType":"uint256","name":"_maxFee","type":"uint256"},{"internalType":"uint32","name":"_minFinalityThreshold","type":"uint32"}],"name":"depositForBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"","type":"uint64"}],"name":"dstTxFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feePercGlobal","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"","type":"uint64"}],"name":"feePercOverride","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"governors","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isPauser","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pausers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"removeGovernor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removePauser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceGovernor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renouncePauser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"_chainIds","type":"uint64[]"},{"internalType":"int32[]","name":"_domains","type":"int32[]"}],"name":"setChidToDomain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeCollector","type":"address"}],"name":"setFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"_chainIds","type":"uint64[]"},{"internalType":"uint32[]","name":"_feePercs","type":"uint32[]"}],"name":"setFeePerc","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"_chainIds","type":"uint64[]"},{"internalType":"uint256[]","name":"_fees","type":"uint256[]"}],"name":"setTxFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint64","name":"_dstChid","type":"uint64"}],"name":"totalFee","outputs":[{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"uint256","name":"_txFee","type":"uint256"},{"internalType":"uint256","name":"_percFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a06040523480156200001157600080fd5b506040516200262c3803806200262c83398101604081905262000034916200028f565b80620000403362000098565b600180546001600160a01b0319166001600160a01b03929092169190911790556200006b33620000e8565b6003805460ff191690556200008033620001b2565b5060016005556001600160a01b0316608052620002c7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811660009081526002602052604090205460ff1615620001575760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c726561647920676f7665726e6f72000000000060448201526064015b60405180910390fd5b6001600160a01b038116600081815260026020908152604091829020805460ff1916600117905590519182527fdc5a48d79e2e147530ff63ecdbed5a5a66adb9d5cf339384d5d076da197c40b591015b60405180910390a150565b6001600160a01b03811660009081526004602052604090205460ff16156200021d5760405162461bcd60e51b815260206004820152601960248201527f4163636f756e7420697320616c7265616479207061757365720000000000000060448201526064016200014e565b6001600160a01b038116600081815260046020908152604091829020805460ff1916600117905590519182527f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f89101620001a7565b80516001600160a01b03811681146200028a57600080fd5b919050565b60008060408385031215620002a357600080fd5b620002ae8362000272565b9150620002be6020840162000272565b90509250929050565b608051612334620002f8600039600081816101ce01528181610a9f01528181610b140152610b8001526123346000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806380f51c12116100f9578063e026049c11610097578063ee90fc4011610071578063ee90fc4014610453578063eecdac8814610481578063efcfd8f514610494578063f2fde38b146104a757600080fd5b8063e026049c146103fc578063e3eece2614610404578063e43581b81461042757600080fd5b80638da5cb5b116100d35780638da5cb5b146103b2578063a42dce80146103c3578063ab9341fd146103d6578063c415b95c146103e957600080fd5b806380f51c121461037457806382dc1ec4146103975780638456cb59146103aa57600080fd5b806343530a81116101665780635c975abb116101405780635c975abb1461033b5780636b2c0f55146103465780636ef8d66d146103595780637f975b141461036157600080fd5b806343530a81146102d957806346fbf68e146102ec5780634c9825971461032857600080fd5b80631b286896116101a25780631b286896146102685780633c4a25d0146102965780633e07d172146102ab5780633f4ba83a146102d157600080fd5b806301a67b6b146101c9578063027bcb871461020d5780630bd930b414610243575b600080fd5b6101f07f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b61023061021b366004611e09565b60096020526000908152604090205460030b81565b60405160039190910b8152602001610204565b6006546102539063ffffffff1681565b60405163ffffffff9091168152602001610204565b610288610276366004611e09565b60086020526000908152604090205481565b604051908152602001610204565b6102a96102a4366004611e3b565b6104ba565b005b6102536102b9366004611e09565b60076020526000908152604090205463ffffffff1681565b6102a9610534565b6102a96102e7366004611ea2565b61059d565b6103186102fa366004611e3b565b6001600160a01b031660009081526004602052604090205460ff1690565b6040519015158152602001610204565b6102a9610336366004611ea2565b6106fd565b60035460ff16610318565b6102a9610354366004611e3b565b610874565b6102a96108e6565b6102a961036f366004611f22565b6108ef565b610318610382366004611e3b565b60046020526000908152604090205460ff1681565b6102a96103a5366004611e3b565b610c22565b6102a9610c94565b6000546001600160a01b03166101f0565b6102a96103d1366004611e3b565b610cfb565b6102a96103e4366004611ea2565b610dd2565b6001546101f0906001600160a01b031681565b6102a9611046565b610318610412366004611e3b565b60026020526000908152604090205460ff1681565b610318610435366004611e3b565b6001600160a01b031660009081526002602052604090205460ff1690565b610466610461366004611f81565b61104f565b60408051938452602084019290925290820152606001610204565b6102a961048f366004611e3b565b6110d5565b6102a96104a2366004611fad565b611147565b6102a96104b5366004611e3b565b61137d565b336104cd6000546001600160a01b031690565b6001600160a01b0316146105285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6105318161146b565b50565b3360009081526004602052604090205460ff166105935760405162461bcd60e51b815260206004820152601460248201527f43616c6c6572206973206e6f7420706175736572000000000000000000000000604482015260640161051f565b61059b61152f565b565b3360009081526002602052604090205460ff166105fc5760405162461bcd60e51b815260206004820152601660248201527f43616c6c6572206973206e6f7420676f7665726e6f7200000000000000000000604482015260640161051f565b82811461063d5760405162461bcd60e51b815260206004820152600f60248201526e0d8cadccee8d040dad2e6dac2e8c6d608b1b604482015260640161051f565b60005b838110156106b95782828281811061065a5761065a612001565b905060200201356008600087878581811061067757610677612001565b905060200201602081019061068c9190611e09565b67ffffffffffffffff168152602081019190915260400160002055806106b18161202d565b915050610640565b507f3a331334e3690640b58b9d6889de0e68c9fec44c8e586b0f69eaa013f530e40c848484846040516106ef949392919061208e565b60405180910390a150505050565b3360009081526002602052604090205460ff1661075c5760405162461bcd60e51b815260206004820152601660248201527f43616c6c6572206973206e6f7420676f7665726e6f7200000000000000000000604482015260640161051f565b82811461079d5760405162461bcd60e51b815260206004820152600f60248201526e0d8cadccee8d040dad2e6dac2e8c6d608b1b604482015260640161051f565b60005b8381101561083e578282828181106107ba576107ba612001565b90506020020160208101906107cf9190612105565b600960008787858181106107e5576107e5612001565b90506020020160208101906107fa9190611e09565b67ffffffffffffffff1681526020810191909152604001600020805463ffffffff191663ffffffff92909216919091179055806108368161202d565b9150506107a0565b507f99a427604fce28915eae6edfacfd125c0ed4393b0d54e90002f2ef13f120e4f8848484846040516106ef9493929190612120565b336108876000546001600160a01b031690565b6001600160a01b0316146108dd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161051f565b610531816115cb565b61059b336115cb565b6002600554036109415760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161051f565b600260055560035460ff161561098c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161051f565b67ffffffffffffffff851660009081526009602052604081205460030b908190036109f95760405162461bcd60e51b815260206004820152601960248201527f64737420646f6d61696e206e6f74207265676973746572656400000000000000604482015260640161051f565b60008160030b1215610a09575060005b6000806000610a188a8a61104f565b925092509250828a11610a6d5760405162461bcd60e51b815260206004820152600f60248201527f666565206e6f7420636f76657265640000000000000000000000000000000000604482015260640161051f565b610a826001600160a01b03881633308d611684565b6000610a8e848c61217d565b9050610ac46001600160a01b0389167f00000000000000000000000000000000000000000000000000000000000000008361171c565b604051634701287760e11b81526004810182905263ffffffff8087166024830152604482018b90526001600160a01b038a811660648401526000608484015260a483018a905290881660c48301527f00000000000000000000000000000000000000000000000000000000000000001690638e0250ee9060e401600060405180830381600087803b158015610b5857600080fd5b505af1158015610b6c573d6000803e3d6000fd5b50610ba6925050506001600160a01b0389167f000000000000000000000000000000000000000000000000000000000000000060006117ce565b60408051338152602081018b905267ffffffffffffffff8c1681830152606081018d90526080810185905260a0810184905263ffffffff881660c082015290517fc06c6ba014c9a1c360ea913df27641cff38ce7a180c57e2817bc5693a53b1f0c9181900360e00190a150506001600555505050505050505050565b33610c356000546001600160a01b031690565b6001600160a01b031614610c8b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161051f565b610531816118ef565b3360009081526004602052604090205460ff16610cf35760405162461bcd60e51b815260206004820152601460248201527f43616c6c6572206973206e6f7420706175736572000000000000000000000000604482015260640161051f565b61059b6119ac565b33610d0e6000546001600160a01b031690565b6001600160a01b031614610d645760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161051f565b600180546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff1983168117909355604080519190921680825260208201939093527f5d16ad41baeb009cd23eb8f6c7cde5c2e0cd5acf4a33926ab488875c37c37f38910160405180910390a15050565b3360009081526002602052604090205460ff16610e315760405162461bcd60e51b815260206004820152601660248201527f43616c6c6572206973206e6f7420676f7665726e6f7200000000000000000000604482015260640161051f565b828114610e725760405162461bcd60e51b815260206004820152600f60248201526e0d8cadccee8d040dad2e6dac2e8c6d608b1b604482015260640161051f565b60005b8381101561101057620f4240838383818110610e9357610e93612001565b9050602002016020810190610ea89190612196565b63ffffffff1610610efb5760405162461bcd60e51b815260206004820152601860248201527f6665652070657263656e7461676520746f6f206c617267650000000000000000604482015260640161051f565b848482818110610f0d57610f0d612001565b9050602002016020810190610f229190611e09565b67ffffffffffffffff16600003610f7957828282818110610f4557610f45612001565b9050602002016020810190610f5a9190612196565b6006805463ffffffff191663ffffffff92909216919091179055610ffe565b828282818110610f8b57610f8b612001565b9050602002016020810190610fa09190612196565b60076000878785818110610fb657610fb6612001565b9050602002016020810190610fcb9190611e09565b67ffffffffffffffff1681526020810191909152604001600020805463ffffffff191663ffffffff929092169190911790555b806110088161202d565b915050610e75565b507f541df5e570cf10ffe04899eebd9eebebd1c54e2bd4af9f24b23fb4a40c6ea00b848484846040516106ef94939291906121b1565b61059b33611a27565b67ffffffffffffffff81166000908152600760205260408120548190819063ffffffff16808203611085575060065463ffffffff165b67ffffffffffffffff85166000908152600860205260409020549250620f42406110b563ffffffff831688612204565b6110bf919061221b565b91506110cb828461223d565b9350509250925092565b336110e86000546001600160a01b031690565b6001600160a01b03161461113e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161051f565b61053181611a27565b6001546001600160a01b031633146111a15760405162461bcd60e51b815260206004820152601160248201527f6e6f742066656520636f6c6c6563746f72000000000000000000000000000000604482015260640161051f565b60005b828110156113775760008484838181106111c0576111c0612001565b90506020020160208101906111d59190611e3b565b6001600160a01b0316036112925760405147906000906001600160a01b0385169061c35090849084818181858888f193505050503d8060008114611235576040519150601f19603f3d011682016040523d82523d6000602084013e61123a565b606091505b505090508061128b5760405162461bcd60e51b815260206004820152601260248201527f73656e64206e6174697665206661696c65640000000000000000000000000000604482015260640161051f565b5050611365565b60008484838181106112a6576112a6612001565b90506020020160208101906112bb9190611e3b565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015611301573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113259190612250565b9050611363838287878681811061133e5761133e612001565b90506020020160208101906113539190611e3b565b6001600160a01b03169190611ae0565b505b8061136f8161202d565b9150506111a4565b50505050565b336113906000546001600160a01b031690565b6001600160a01b0316146113e65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161051f565b6001600160a01b0381166114625760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161051f565b61053181611b10565b6001600160a01b03811660009081526002602052604090205460ff16156114d45760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c726561647920676f7665726e6f720000000000604482015260640161051f565b6001600160a01b038116600081815260026020908152604091829020805460ff1916600117905590519182527fdc5a48d79e2e147530ff63ecdbed5a5a66adb9d5cf339384d5d076da197c40b591015b60405180910390a150565b60035460ff166115815760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161051f565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b03811660009081526004602052604090205460ff166116335760405162461bcd60e51b815260206004820152601560248201527f4163636f756e74206973206e6f74207061757365720000000000000000000000604482015260640161051f565b6001600160a01b038116600081815260046020908152604091829020805460ff1916905590519182527fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e9101611524565b6040516001600160a01b03808516602483015283166044820152606481018290526113779085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611b6d565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e90604401602060405180830381865afa15801561176d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117919190612250565b61179b919061223d565b6040516001600160a01b03851660248201526044810182905290915061137790859063095ea7b360e01b906064016116b8565b8015806118485750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611822573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118469190612250565b155b6118ba5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606482015260840161051f565b6040516001600160a01b0383166024820152604481018290526118ea90849063095ea7b360e01b906064016116b8565b505050565b6001600160a01b03811660009081526004602052604090205460ff16156119585760405162461bcd60e51b815260206004820152601960248201527f4163636f756e7420697320616c72656164792070617573657200000000000000604482015260640161051f565b6001600160a01b038116600081815260046020908152604091829020805460ff1916600117905590519182527f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f89101611524565b60035460ff16156119f25760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161051f565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586115ae3390565b6001600160a01b03811660009081526002602052604090205460ff16611a8f5760405162461bcd60e51b815260206004820152601760248201527f4163636f756e74206973206e6f7420676f7665726e6f72000000000000000000604482015260640161051f565b6001600160a01b038116600081815260026020908152604091829020805460ff1916905590519182527f1ebe834e73d60a5fec822c1e1727d34bc79f2ad977ed504581cc1822fe20fb5b9101611524565b6040516001600160a01b0383166024820152604481018290526118ea90849063a9059cbb60e01b906064016116b8565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611bc2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c529092919063ffffffff16565b8051909150156118ea5780806020019051810190611be09190612269565b6118ea5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161051f565b6060611c618484600085611c6b565b90505b9392505050565b606082471015611ce35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161051f565b6001600160a01b0385163b611d3a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161051f565b600080866001600160a01b03168587604051611d5691906122af565b60006040518083038185875af1925050503d8060008114611d93576040519150601f19603f3d011682016040523d82523d6000602084013e611d98565b606091505b5091509150611da8828286611db3565b979650505050505050565b60608315611dc2575081611c64565b825115611dd25782518084602001fd5b8160405162461bcd60e51b815260040161051f91906122cb565b803567ffffffffffffffff81168114611e0457600080fd5b919050565b600060208284031215611e1b57600080fd5b611c6482611dec565b80356001600160a01b0381168114611e0457600080fd5b600060208284031215611e4d57600080fd5b611c6482611e24565b60008083601f840112611e6857600080fd5b50813567ffffffffffffffff811115611e8057600080fd5b6020830191508360208260051b8501011115611e9b57600080fd5b9250929050565b60008060008060408587031215611eb857600080fd5b843567ffffffffffffffff80821115611ed057600080fd5b611edc88838901611e56565b90965094506020870135915080821115611ef557600080fd5b50611f0287828801611e56565b95989497509550505050565b803563ffffffff81168114611e0457600080fd5b60008060008060008060c08789031215611f3b57600080fd5b86359550611f4b60208801611dec565b945060408701359350611f6060608801611e24565b925060808701359150611f7560a08801611f0e565b90509295509295509295565b60008060408385031215611f9457600080fd5b82359150611fa460208401611dec565b90509250929050565b600080600060408486031215611fc257600080fd5b833567ffffffffffffffff811115611fd957600080fd5b611fe586828701611e56565b9094509250611ff8905060208501611e24565b90509250925092565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161203f5761203f612017565b5060010190565b8183526000602080850194508260005b858110156120835767ffffffffffffffff61207083611dec565b1687529582019590820190600101612056565b509495945050505050565b6040815260006120a2604083018688612046565b82810360208401528381527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8411156120da57600080fd5b8360051b80866020840137016020019695505050505050565b8035600381900b8114611e0457600080fd5b60006020828403121561211757600080fd5b611c64826120f3565b604081526000612134604083018688612046565b8281036020848101919091528482528591810160005b868110156121705761215b846120f3565b60030b8252928201929082019060010161214a565b5098975050505050505050565b8181038181111561219057612190612017565b92915050565b6000602082840312156121a857600080fd5b611c6482611f0e565b6040815260006121c5604083018688612046565b8281036020848101919091528482528591810160005b868110156121705763ffffffff6121f185611f0e565b16825292820192908201906001016121db565b808202811582820484141761219057612190612017565b60008261223857634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561219057612190612017565b60006020828403121561226257600080fd5b5051919050565b60006020828403121561227b57600080fd5b81518015158114611c6457600080fd5b60005b838110156122a657818101518382015260200161228e565b50506000910152565b600082516122c181846020870161228b565b9190910192915050565b60208152600082518060208401526122ea81604085016020870161228b565b601f01601f1916919091016040019291505056fea26469706673582212203cbbe91b10ea2397a5c9becf83ca1d093bc4507f3fe1fd27e577f110fa6b3c4b64736f6c6343000811003300000000000000000000000028b5a0e9c621a5badaa536219b3a228c8168cf5d0000000000000000000000004c1806e28cf5a1b364c28344828cb0610d167189
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c806380f51c12116100f9578063e026049c11610097578063ee90fc4011610071578063ee90fc4014610453578063eecdac8814610481578063efcfd8f514610494578063f2fde38b146104a757600080fd5b8063e026049c146103fc578063e3eece2614610404578063e43581b81461042757600080fd5b80638da5cb5b116100d35780638da5cb5b146103b2578063a42dce80146103c3578063ab9341fd146103d6578063c415b95c146103e957600080fd5b806380f51c121461037457806382dc1ec4146103975780638456cb59146103aa57600080fd5b806343530a81116101665780635c975abb116101405780635c975abb1461033b5780636b2c0f55146103465780636ef8d66d146103595780637f975b141461036157600080fd5b806343530a81146102d957806346fbf68e146102ec5780634c9825971461032857600080fd5b80631b286896116101a25780631b286896146102685780633c4a25d0146102965780633e07d172146102ab5780633f4ba83a146102d157600080fd5b806301a67b6b146101c9578063027bcb871461020d5780630bd930b414610243575b600080fd5b6101f07f00000000000000000000000028b5a0e9c621a5badaa536219b3a228c8168cf5d81565b6040516001600160a01b0390911681526020015b60405180910390f35b61023061021b366004611e09565b60096020526000908152604090205460030b81565b60405160039190910b8152602001610204565b6006546102539063ffffffff1681565b60405163ffffffff9091168152602001610204565b610288610276366004611e09565b60086020526000908152604090205481565b604051908152602001610204565b6102a96102a4366004611e3b565b6104ba565b005b6102536102b9366004611e09565b60076020526000908152604090205463ffffffff1681565b6102a9610534565b6102a96102e7366004611ea2565b61059d565b6103186102fa366004611e3b565b6001600160a01b031660009081526004602052604090205460ff1690565b6040519015158152602001610204565b6102a9610336366004611ea2565b6106fd565b60035460ff16610318565b6102a9610354366004611e3b565b610874565b6102a96108e6565b6102a961036f366004611f22565b6108ef565b610318610382366004611e3b565b60046020526000908152604090205460ff1681565b6102a96103a5366004611e3b565b610c22565b6102a9610c94565b6000546001600160a01b03166101f0565b6102a96103d1366004611e3b565b610cfb565b6102a96103e4366004611ea2565b610dd2565b6001546101f0906001600160a01b031681565b6102a9611046565b610318610412366004611e3b565b60026020526000908152604090205460ff1681565b610318610435366004611e3b565b6001600160a01b031660009081526002602052604090205460ff1690565b610466610461366004611f81565b61104f565b60408051938452602084019290925290820152606001610204565b6102a961048f366004611e3b565b6110d5565b6102a96104a2366004611fad565b611147565b6102a96104b5366004611e3b565b61137d565b336104cd6000546001600160a01b031690565b6001600160a01b0316146105285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6105318161146b565b50565b3360009081526004602052604090205460ff166105935760405162461bcd60e51b815260206004820152601460248201527f43616c6c6572206973206e6f7420706175736572000000000000000000000000604482015260640161051f565b61059b61152f565b565b3360009081526002602052604090205460ff166105fc5760405162461bcd60e51b815260206004820152601660248201527f43616c6c6572206973206e6f7420676f7665726e6f7200000000000000000000604482015260640161051f565b82811461063d5760405162461bcd60e51b815260206004820152600f60248201526e0d8cadccee8d040dad2e6dac2e8c6d608b1b604482015260640161051f565b60005b838110156106b95782828281811061065a5761065a612001565b905060200201356008600087878581811061067757610677612001565b905060200201602081019061068c9190611e09565b67ffffffffffffffff168152602081019190915260400160002055806106b18161202d565b915050610640565b507f3a331334e3690640b58b9d6889de0e68c9fec44c8e586b0f69eaa013f530e40c848484846040516106ef949392919061208e565b60405180910390a150505050565b3360009081526002602052604090205460ff1661075c5760405162461bcd60e51b815260206004820152601660248201527f43616c6c6572206973206e6f7420676f7665726e6f7200000000000000000000604482015260640161051f565b82811461079d5760405162461bcd60e51b815260206004820152600f60248201526e0d8cadccee8d040dad2e6dac2e8c6d608b1b604482015260640161051f565b60005b8381101561083e578282828181106107ba576107ba612001565b90506020020160208101906107cf9190612105565b600960008787858181106107e5576107e5612001565b90506020020160208101906107fa9190611e09565b67ffffffffffffffff1681526020810191909152604001600020805463ffffffff191663ffffffff92909216919091179055806108368161202d565b9150506107a0565b507f99a427604fce28915eae6edfacfd125c0ed4393b0d54e90002f2ef13f120e4f8848484846040516106ef9493929190612120565b336108876000546001600160a01b031690565b6001600160a01b0316146108dd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161051f565b610531816115cb565b61059b336115cb565b6002600554036109415760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161051f565b600260055560035460ff161561098c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161051f565b67ffffffffffffffff851660009081526009602052604081205460030b908190036109f95760405162461bcd60e51b815260206004820152601960248201527f64737420646f6d61696e206e6f74207265676973746572656400000000000000604482015260640161051f565b60008160030b1215610a09575060005b6000806000610a188a8a61104f565b925092509250828a11610a6d5760405162461bcd60e51b815260206004820152600f60248201527f666565206e6f7420636f76657265640000000000000000000000000000000000604482015260640161051f565b610a826001600160a01b03881633308d611684565b6000610a8e848c61217d565b9050610ac46001600160a01b0389167f00000000000000000000000028b5a0e9c621a5badaa536219b3a228c8168cf5d8361171c565b604051634701287760e11b81526004810182905263ffffffff8087166024830152604482018b90526001600160a01b038a811660648401526000608484015260a483018a905290881660c48301527f00000000000000000000000028b5a0e9c621a5badaa536219b3a228c8168cf5d1690638e0250ee9060e401600060405180830381600087803b158015610b5857600080fd5b505af1158015610b6c573d6000803e3d6000fd5b50610ba6925050506001600160a01b0389167f00000000000000000000000028b5a0e9c621a5badaa536219b3a228c8168cf5d60006117ce565b60408051338152602081018b905267ffffffffffffffff8c1681830152606081018d90526080810185905260a0810184905263ffffffff881660c082015290517fc06c6ba014c9a1c360ea913df27641cff38ce7a180c57e2817bc5693a53b1f0c9181900360e00190a150506001600555505050505050505050565b33610c356000546001600160a01b031690565b6001600160a01b031614610c8b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161051f565b610531816118ef565b3360009081526004602052604090205460ff16610cf35760405162461bcd60e51b815260206004820152601460248201527f43616c6c6572206973206e6f7420706175736572000000000000000000000000604482015260640161051f565b61059b6119ac565b33610d0e6000546001600160a01b031690565b6001600160a01b031614610d645760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161051f565b600180546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff1983168117909355604080519190921680825260208201939093527f5d16ad41baeb009cd23eb8f6c7cde5c2e0cd5acf4a33926ab488875c37c37f38910160405180910390a15050565b3360009081526002602052604090205460ff16610e315760405162461bcd60e51b815260206004820152601660248201527f43616c6c6572206973206e6f7420676f7665726e6f7200000000000000000000604482015260640161051f565b828114610e725760405162461bcd60e51b815260206004820152600f60248201526e0d8cadccee8d040dad2e6dac2e8c6d608b1b604482015260640161051f565b60005b8381101561101057620f4240838383818110610e9357610e93612001565b9050602002016020810190610ea89190612196565b63ffffffff1610610efb5760405162461bcd60e51b815260206004820152601860248201527f6665652070657263656e7461676520746f6f206c617267650000000000000000604482015260640161051f565b848482818110610f0d57610f0d612001565b9050602002016020810190610f229190611e09565b67ffffffffffffffff16600003610f7957828282818110610f4557610f45612001565b9050602002016020810190610f5a9190612196565b6006805463ffffffff191663ffffffff92909216919091179055610ffe565b828282818110610f8b57610f8b612001565b9050602002016020810190610fa09190612196565b60076000878785818110610fb657610fb6612001565b9050602002016020810190610fcb9190611e09565b67ffffffffffffffff1681526020810191909152604001600020805463ffffffff191663ffffffff929092169190911790555b806110088161202d565b915050610e75565b507f541df5e570cf10ffe04899eebd9eebebd1c54e2bd4af9f24b23fb4a40c6ea00b848484846040516106ef94939291906121b1565b61059b33611a27565b67ffffffffffffffff81166000908152600760205260408120548190819063ffffffff16808203611085575060065463ffffffff165b67ffffffffffffffff85166000908152600860205260409020549250620f42406110b563ffffffff831688612204565b6110bf919061221b565b91506110cb828461223d565b9350509250925092565b336110e86000546001600160a01b031690565b6001600160a01b03161461113e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161051f565b61053181611a27565b6001546001600160a01b031633146111a15760405162461bcd60e51b815260206004820152601160248201527f6e6f742066656520636f6c6c6563746f72000000000000000000000000000000604482015260640161051f565b60005b828110156113775760008484838181106111c0576111c0612001565b90506020020160208101906111d59190611e3b565b6001600160a01b0316036112925760405147906000906001600160a01b0385169061c35090849084818181858888f193505050503d8060008114611235576040519150601f19603f3d011682016040523d82523d6000602084013e61123a565b606091505b505090508061128b5760405162461bcd60e51b815260206004820152601260248201527f73656e64206e6174697665206661696c65640000000000000000000000000000604482015260640161051f565b5050611365565b60008484838181106112a6576112a6612001565b90506020020160208101906112bb9190611e3b565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015611301573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113259190612250565b9050611363838287878681811061133e5761133e612001565b90506020020160208101906113539190611e3b565b6001600160a01b03169190611ae0565b505b8061136f8161202d565b9150506111a4565b50505050565b336113906000546001600160a01b031690565b6001600160a01b0316146113e65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161051f565b6001600160a01b0381166114625760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161051f565b61053181611b10565b6001600160a01b03811660009081526002602052604090205460ff16156114d45760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c726561647920676f7665726e6f720000000000604482015260640161051f565b6001600160a01b038116600081815260026020908152604091829020805460ff1916600117905590519182527fdc5a48d79e2e147530ff63ecdbed5a5a66adb9d5cf339384d5d076da197c40b591015b60405180910390a150565b60035460ff166115815760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161051f565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b03811660009081526004602052604090205460ff166116335760405162461bcd60e51b815260206004820152601560248201527f4163636f756e74206973206e6f74207061757365720000000000000000000000604482015260640161051f565b6001600160a01b038116600081815260046020908152604091829020805460ff1916905590519182527fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e9101611524565b6040516001600160a01b03808516602483015283166044820152606481018290526113779085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611b6d565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e90604401602060405180830381865afa15801561176d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117919190612250565b61179b919061223d565b6040516001600160a01b03851660248201526044810182905290915061137790859063095ea7b360e01b906064016116b8565b8015806118485750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611822573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118469190612250565b155b6118ba5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606482015260840161051f565b6040516001600160a01b0383166024820152604481018290526118ea90849063095ea7b360e01b906064016116b8565b505050565b6001600160a01b03811660009081526004602052604090205460ff16156119585760405162461bcd60e51b815260206004820152601960248201527f4163636f756e7420697320616c72656164792070617573657200000000000000604482015260640161051f565b6001600160a01b038116600081815260046020908152604091829020805460ff1916600117905590519182527f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f89101611524565b60035460ff16156119f25760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161051f565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586115ae3390565b6001600160a01b03811660009081526002602052604090205460ff16611a8f5760405162461bcd60e51b815260206004820152601760248201527f4163636f756e74206973206e6f7420676f7665726e6f72000000000000000000604482015260640161051f565b6001600160a01b038116600081815260026020908152604091829020805460ff1916905590519182527f1ebe834e73d60a5fec822c1e1727d34bc79f2ad977ed504581cc1822fe20fb5b9101611524565b6040516001600160a01b0383166024820152604481018290526118ea90849063a9059cbb60e01b906064016116b8565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611bc2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c529092919063ffffffff16565b8051909150156118ea5780806020019051810190611be09190612269565b6118ea5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161051f565b6060611c618484600085611c6b565b90505b9392505050565b606082471015611ce35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161051f565b6001600160a01b0385163b611d3a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161051f565b600080866001600160a01b03168587604051611d5691906122af565b60006040518083038185875af1925050503d8060008114611d93576040519150601f19603f3d011682016040523d82523d6000602084013e611d98565b606091505b5091509150611da8828286611db3565b979650505050505050565b60608315611dc2575081611c64565b825115611dd25782518084602001fd5b8160405162461bcd60e51b815260040161051f91906122cb565b803567ffffffffffffffff81168114611e0457600080fd5b919050565b600060208284031215611e1b57600080fd5b611c6482611dec565b80356001600160a01b0381168114611e0457600080fd5b600060208284031215611e4d57600080fd5b611c6482611e24565b60008083601f840112611e6857600080fd5b50813567ffffffffffffffff811115611e8057600080fd5b6020830191508360208260051b8501011115611e9b57600080fd5b9250929050565b60008060008060408587031215611eb857600080fd5b843567ffffffffffffffff80821115611ed057600080fd5b611edc88838901611e56565b90965094506020870135915080821115611ef557600080fd5b50611f0287828801611e56565b95989497509550505050565b803563ffffffff81168114611e0457600080fd5b60008060008060008060c08789031215611f3b57600080fd5b86359550611f4b60208801611dec565b945060408701359350611f6060608801611e24565b925060808701359150611f7560a08801611f0e565b90509295509295509295565b60008060408385031215611f9457600080fd5b82359150611fa460208401611dec565b90509250929050565b600080600060408486031215611fc257600080fd5b833567ffffffffffffffff811115611fd957600080fd5b611fe586828701611e56565b9094509250611ff8905060208501611e24565b90509250925092565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161203f5761203f612017565b5060010190565b8183526000602080850194508260005b858110156120835767ffffffffffffffff61207083611dec565b1687529582019590820190600101612056565b509495945050505050565b6040815260006120a2604083018688612046565b82810360208401528381527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8411156120da57600080fd5b8360051b80866020840137016020019695505050505050565b8035600381900b8114611e0457600080fd5b60006020828403121561211757600080fd5b611c64826120f3565b604081526000612134604083018688612046565b8281036020848101919091528482528591810160005b868110156121705761215b846120f3565b60030b8252928201929082019060010161214a565b5098975050505050505050565b8181038181111561219057612190612017565b92915050565b6000602082840312156121a857600080fd5b611c6482611f0e565b6040815260006121c5604083018688612046565b8281036020848101919091528482528591810160005b868110156121705763ffffffff6121f185611f0e565b16825292820192908201906001016121db565b808202811582820484141761219057612190612017565b60008261223857634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561219057612190612017565b60006020828403121561226257600080fd5b5051919050565b60006020828403121561227b57600080fd5b81518015158114611c6457600080fd5b60005b838110156122a657818101518382015260200161228e565b50506000910152565b600082516122c181846020870161228b565b9190910192915050565b60208152600082518060208401526122ea81604085016020870161228b565b601f01601f1916919091016040019291505056fea26469706673582212203cbbe91b10ea2397a5c9becf83ca1d093bc4507f3fe1fd27e577f110fa6b3c4b64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000028b5a0e9c621a5badaa536219b3a228c8168cf5d0000000000000000000000004c1806e28cf5a1b364c28344828cb0610d167189
-----Decoded View---------------
Arg [0] : _circleBridge (address): 0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d
Arg [1] : _feeCollector (address): 0x4c1806E28cf5A1B364C28344828cb0610d167189
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000028b5a0e9c621a5badaa536219b3a228c8168cf5d
Arg [1] : 0000000000000000000000004c1806e28cf5a1b364c28344828cb0610d167189
Loading...
Loading
Loading...
Loading
Net Worth in USD
$156.79
Net Worth in ETH
0.084166
Token Allocations
USDC
100.00%
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $0.999939 | 156.8004 | $156.79 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.