Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Latest 25 from a total of 726 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Deposit Bridge E... | 12346131 | 1770 days ago | IN | 3.6521 ETH | 0.0110239 | ||||
| Deposit Bridge E... | 12345926 | 1770 days ago | IN | 0.37067574 ETH | 0.01568488 | ||||
| Deposit Bridge E... | 12345566 | 1770 days ago | IN | 2 ETH | 0.01319763 | ||||
| Deposit Bridge E... | 12345478 | 1770 days ago | IN | 0.08 ETH | 0.01049043 | ||||
| Deposit Bridge E... | 12344749 | 1770 days ago | IN | 1 ETH | 0.01285923 | ||||
| Deposit Bridge E... | 12344470 | 1770 days ago | IN | 0.1637 ETH | 0.01504223 | ||||
| Deposit Bridge E... | 12344168 | 1770 days ago | IN | 2 ETH | 0.01488964 | ||||
| Deposit Bridge E... | 12343728 | 1770 days ago | IN | 1 ETH | 0.01780006 | ||||
| Deposit Bridge E... | 12342179 | 1771 days ago | IN | 3.204 ETH | 0.01550081 | ||||
| Deposit Bridge E... | 12341649 | 1771 days ago | IN | 5.8 ETH | 0.01015203 | ||||
| Deposit Bridge E... | 12341465 | 1771 days ago | IN | 0.23044462 ETH | 0.01504223 | ||||
| Deposit Bridge E... | 12339068 | 1771 days ago | IN | 1 ETH | 0.01591975 | ||||
| Deposit Bridge E... | 12338515 | 1771 days ago | IN | 12 ETH | 0.01319763 | ||||
| Deposit Bridge E... | 12338018 | 1771 days ago | IN | 0.2 ETH | 0.02154699 | ||||
| Withdraw Bridge ... | 12338003 | 1771 days ago | IN | 0 ETH | 0.01826166 | ||||
| Deposit Bridge E... | 12337894 | 1771 days ago | IN | 3 ETH | 0.01563412 | ||||
| Deposit Bridge E... | 12336261 | 1771 days ago | IN | 8.5 ETH | 0.03180969 | ||||
| Deposit Bridge E... | 12335918 | 1772 days ago | IN | 1 ETH | 0.01996565 | ||||
| Deposit Bridge E... | 12335669 | 1772 days ago | IN | 1 ETH | 0.002 | ||||
| Deposit Bridge E... | 12334901 | 1772 days ago | IN | 0.14 ETH | 0.01895045 | ||||
| Deposit Bridge E... | 12334651 | 1772 days ago | IN | 0.4 ETH | 0.02276663 | ||||
| Withdraw Bridge ... | 12333951 | 1772 days ago | IN | 0 ETH | 0.01513331 | ||||
| Deposit Bridge E... | 12332666 | 1772 days ago | IN | 29.2869 ETH | 0.01556644 | ||||
| Withdraw Bridge ... | 12330938 | 1772 days ago | IN | 0 ETH | 0.02810839 | ||||
| Withdraw Bridge ... | 12328932 | 1773 days ago | IN | 0 ETH | 0.02162184 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| - | 12346131 | 1770 days ago | 3.6521 ETH | ||||
| - | 12345926 | 1770 days ago | 0.37067574 ETH | ||||
| - | 12345566 | 1770 days ago | 2 ETH | ||||
| - | 12345478 | 1770 days ago | 0.08 ETH | ||||
| - | 12344749 | 1770 days ago | 1 ETH | ||||
| - | 12344470 | 1770 days ago | 0.1637 ETH | ||||
| - | 12344168 | 1770 days ago | 2 ETH | ||||
| - | 12343728 | 1770 days ago | 1 ETH | ||||
| - | 12342179 | 1771 days ago | 3.204 ETH | ||||
| - | 12341649 | 1771 days ago | 5.8 ETH | ||||
| - | 12341465 | 1771 days ago | 0.23044462 ETH | ||||
| - | 12339068 | 1771 days ago | 1 ETH | ||||
| - | 12338515 | 1771 days ago | 12 ETH | ||||
| - | 12338018 | 1771 days ago | 0.2 ETH | ||||
| - | 12338003 | 1771 days ago | 0.4000933 ETH | ||||
| - | 12338003 | 1771 days ago | 0.4000933 ETH | ||||
| - | 12337894 | 1771 days ago | 3 ETH | ||||
| - | 12336261 | 1771 days ago | 8.5 ETH | ||||
| - | 12335918 | 1772 days ago | 1 ETH | ||||
| - | 12334901 | 1772 days ago | 0.14 ETH | ||||
| - | 12334651 | 1772 days ago | 0.4 ETH | ||||
| - | 12333951 | 1772 days ago | 1,000.03450189 ETH | ||||
| - | 12333951 | 1772 days ago | 1,000.03450189 ETH | ||||
| - | 12332666 | 1772 days ago | 29.2869 ETH | ||||
| - | 12330938 | 1772 days ago | 101.89199946 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
VaultGaugeBridge
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2021-02-27
*/
/**
*Submitted for verification at Etherscan.io on 2021-02-27
*/
// SPDX-License-Identifier: MIT
/*
A bridge that connects AlphaHomora ibETH contracts to our STACK gauge contracts.
This allows users to submit only one transaction to go from (supported ERC20 <-> AlphaHomora <-> STACK commit to VC fund)
They will be able to deposit & withdraw in both directions.
*/
pragma solidity ^0.6.11;
/**
* @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 `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, 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);
}
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b > a) return (false, 0);
return (true, a - b);
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b == 0) return (false, 0);
return (true, a / b);
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b == 0) return (false, 0);
return (true, a % b);
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a, "SafeMath: subtraction overflow");
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) return 0;
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: division by zero");
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: modulo by zero");
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
return a - b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryDiv}.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
return a % b;
}
}
/**
* @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
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(account) }
return size > 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");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(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");
// solhint-disable-next-line avoid-low-level-calls
(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");
// solhint-disable-next-line avoid-low-level-calls
(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");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
/**
* @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 SafeMath for uint256;
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'
// solhint-disable-next-line max-line-length
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).add(value);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
_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
// solhint-disable-next-line max-line-length
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}
/**
* @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 () internal {
_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 make 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;
}
}
interface IAlphaHomora_ibETH {
function deposit() payable external;
function withdraw(uint256 amount) external;
}
interface IGaugeD1 {
function fundOpen() external view returns (bool);
function deposit(uint256 _amountCommitSoft, uint256 _amountCommitHard, address _creditTo) external;
function withdraw(uint256 _amount, address _withdrawFor) external;
}
contract VaultGaugeBridge is ReentrancyGuard {
using SafeERC20 for IERC20;
using Address for address;
using SafeMath for uint256;
address payable public constant AlphaHomora_ibETH = 0xeEa3311250FE4c3268F8E684f7C87A82fF183Ec1; // AlphaHomora ibETHv2 deposit/withdraw contract & ERC20 contract
address payable public governance;
address public gauge;
constructor () public {
governance = msg.sender;
}
receive() external payable {
if (msg.sender != AlphaHomora_ibETH){
// if the fund is open, then hard commit to the fund, if it's not, then fallback to soft commit
if (IGaugeD1(gauge).fundOpen()){
depositBridgeETH(true);
}
else {
depositBridgeETH(false);
}
}
}
function setGovernance(address payable _new) external {
require(msg.sender == governance, "BRIDGE: !governance");
governance = _new;
}
// set the gauge to bridge ibETH to
function setGauge(address _gauge) external {
require(msg.sender == governance, "BRIDGE: !governance");
require(gauge == address(0), "BRIDGE: gauge already set");
gauge = _gauge;
}
// deposit ETH into ETH vault. WETH can be done with normal depositBridge call.
// public because of fallback function
function depositBridgeETH(bool _commit) nonReentrant public payable {
require(gauge != address(0), "BRIDGE: !bridge"); // need to setup, fail
uint256 _beforeToken = IERC20(AlphaHomora_ibETH).balanceOf(address(this));
IAlphaHomora_ibETH(AlphaHomora_ibETH).deposit{value: msg.value}();
uint256 _afterToken = IERC20(AlphaHomora_ibETH).balanceOf(address(this));
uint256 _receivedToken = _afterToken.sub(_beforeToken);
_depositGauge(_receivedToken, _commit, msg.sender);
}
// withdraw as ETH from WETH vault. WETH withdraw can be from from depositBridge call.
function withdrawBridgeETH(uint256 _amount) nonReentrant external {
require(gauge != address(0), "BRIDGE: !bridge"); // need to setup, fail
uint256 _receivedToken = _withdrawGauge(_amount, msg.sender);
uint256 _before = address(this).balance;
IAlphaHomora_ibETH(AlphaHomora_ibETH).withdraw(_receivedToken);
uint256 _after = address(this).balance;
uint256 _received = _after.sub(_before);
msg.sender.transfer(_received);
}
function _withdrawGauge(uint256 _amount, address _user) internal returns (uint256){
uint256 _beforeToken = IERC20(AlphaHomora_ibETH).balanceOf(address(this));
IGaugeD1(gauge).withdraw(_amount, _user);
uint256 _afterToken = IERC20(AlphaHomora_ibETH).balanceOf(address(this));
return _afterToken.sub(_beforeToken);
}
function _depositGauge(uint256 _amount, bool _commit, address _user) internal {
IERC20(AlphaHomora_ibETH).safeApprove(gauge, 0);
IERC20(AlphaHomora_ibETH).safeApprove(gauge, _amount);
if (_commit){
IGaugeD1(gauge).deposit(0, _amount, _user);
}
else {
IGaugeD1(gauge).deposit(_amount, 0, _user);
}
}
// decentralized rescue function for any stuck tokens, will return to governance
function rescue(address _token, uint256 _amount) nonReentrant external {
require(msg.sender == governance, "BRIDGE: !governance");
if (_token != address(0)){
IERC20(_token).safeTransfer(governance, _amount);
}
else { // if _tokenContract is 0x0, then escape ETH
governance.transfer(_amount);
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlphaHomora_ibETH","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_commit","type":"bool"}],"name":"depositBridgeETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"gauge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gauge","type":"address"}],"name":"setGauge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_new","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawBridgeETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405234801561001057600080fd5b50600160008190555033600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611a8c806100696000396000f3fe60806040526004361061007f5760003560e01c8063ab033ea91161004e578063ab033ea9146102c3578063cbaeb6f914610314578063ce07ba5714610344578063df4aed571461038557610190565b806355a68ed3146101955780635aa6e675146101e65780637a4e4ecf14610227578063a6f19c841461028257610190565b366101905773eea3311250fe4c3268f8e684f7c87a82ff183ec173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461018e57600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633e2381216040518163ffffffff1660e01b815260040160206040518083038186803b15801561013357600080fd5b505afa158015610147573d6000803e3d6000fd5b505050506040513d602081101561015d57600080fd5b8101908080519060200190929190505050156101825761017d60016103c0565b61018d565b61018c60006103c0565b5b5b005b600080fd5b3480156101a157600080fd5b506101e4600480360360208110156101b857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061071f565b005b3480156101f257600080fd5b506101fb6108ea565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561023357600080fd5b506102806004803603604081101561024a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610910565b005b34801561028e57600080fd5b50610297610b50565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102cf57600080fd5b50610312600480360360208110156102e657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610b76565b005b6103426004803603602081101561032a57600080fd5b810190808035151590602001909291905050506103c0565b005b34801561035057600080fd5b50610359610c7d565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561039157600080fd5b506103be600480360360208110156103a857600080fd5b8101908080359060200190929190505050610c95565b005b60026000541415610439576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600081905550600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610506576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4252494447453a2021627269646765000000000000000000000000000000000081525060200191505060405180910390fd5b600073eea3311250fe4c3268f8e684f7c87a82ff183ec173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561058357600080fd5b505afa158015610597573d6000803e3d6000fd5b505050506040513d60208110156105ad57600080fd5b8101908080519060200190929190505050905073eea3311250fe4c3268f8e684f7c87a82ff183ec173ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561061c57600080fd5b505af1158015610630573d6000803e3d6000fd5b5050505050600073eea3311250fe4c3268f8e684f7c87a82ff183ec173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156106b257600080fd5b505afa1580156106c6573d6000803e3d6000fd5b505050506040513d60208110156106dc57600080fd5b8101908080519060200190929190505050905060006107048383610edf90919063ffffffff16565b9050610711818533610f62565b505050600160008190555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f4252494447453a2021676f7665726e616e63650000000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146108a6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4252494447453a20676175676520616c7265616479207365740000000000000081525060200191505060405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026000541415610989576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600081905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a54576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f4252494447453a2021676f7665726e616e63650000000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610ada57610ad5600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828473ffffffffffffffffffffffffffffffffffffffff1661119e9092919063ffffffff16565b610b44565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610b42573d6000803e3d6000fd5b505b60016000819055505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c39576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f4252494447453a2021676f7665726e616e63650000000000000000000000000081525060200191505060405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b73eea3311250fe4c3268f8e684f7c87a82ff183ec181565b60026000541415610d0e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600081905550600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610ddb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4252494447453a2021627269646765000000000000000000000000000000000081525060200191505060405180910390fd5b6000610de78233611240565b9050600047905073eea3311250fe4c3268f8e684f7c87a82ff183ec173ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610e5557600080fd5b505af1158015610e69573d6000803e3d6000fd5b5050505060004790506000610e878383610edf90919063ffffffff16565b90503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610ecf573d6000803e3d6000fd5b5050505050600160008190555050565b600082821115610f57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b610fc4600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600073eea3311250fe4c3268f8e684f7c87a82ff183ec173ffffffffffffffffffffffffffffffffffffffff1661147c9092919063ffffffff16565b611025600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168473eea3311250fe4c3268f8e684f7c87a82ff183ec173ffffffffffffffffffffffffffffffffffffffff1661147c9092919063ffffffff16565b81156110e457600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638dbdbe6d600085846040518463ffffffff1660e01b8152600401808481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019350505050600060405180830381600087803b1580156110c757600080fd5b505af11580156110db573d6000803e3d6000fd5b50505050611199565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638dbdbe6d846000846040518463ffffffff1660e01b8152600401808481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019350505050600060405180830381600087803b15801561118057600080fd5b505af1158015611194573d6000803e3d6000fd5b505050505b505050565b61123b8363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611641565b505050565b60008073eea3311250fe4c3268f8e684f7c87a82ff183ec173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156112be57600080fd5b505afa1580156112d2573d6000803e3d6000fd5b505050506040513d60208110156112e857600080fd5b81019080805190602001909291905050509050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662f714ce85856040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050600060405180830381600087803b15801561138d57600080fd5b505af11580156113a1573d6000803e3d6000fd5b50505050600073eea3311250fe4c3268f8e684f7c87a82ff183ec173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561142257600080fd5b505afa158015611436573d6000803e3d6000fd5b505050506040513d602081101561144c57600080fd5b810190808051906020019092919050505090506114728282610edf90919063ffffffff16565b9250505092915050565b600081148061154a575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561150d57600080fd5b505afa158015611521573d6000803e3d6000fd5b505050506040513d602081101561153757600080fd5b8101908080519060200190929190505050145b61159f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526036815260200180611a216036913960400191505060405180910390fd5b61163c8363095ea7b360e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611641565b505050565b60606116a3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166117309092919063ffffffff16565b905060008151111561172b578080602001905160208110156116c457600080fd5b810190808051906020019092919050505061172a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806119f7602a913960400191505060405180910390fd5b5b505050565b606061173f8484600085611748565b90509392505050565b6060824710156117a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806119d16026913960400191505060405180910390fd5b6117ac856118f1565b61181e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061186e578051825260208201915060208101905060208303925061184b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146118d0576040519150601f19603f3d011682016040523d82523d6000602084013e6118d5565b606091505b50915091506118e5828286611904565b92505050949350505050565b600080823b905060008111915050919050565b60608315611914578290506119c9565b6000835111156119275782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561198e578082015181840152602081019050611973565b50505050905090810190601f1680156119bb5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220fd1eefc2707066a8b4df4bc0e85eed0f474ac1d441acc5536884f08062c906d164736f6c634300060c0033
Deployed Bytecode
0x60806040526004361061007f5760003560e01c8063ab033ea91161004e578063ab033ea9146102c3578063cbaeb6f914610314578063ce07ba5714610344578063df4aed571461038557610190565b806355a68ed3146101955780635aa6e675146101e65780637a4e4ecf14610227578063a6f19c841461028257610190565b366101905773eea3311250fe4c3268f8e684f7c87a82ff183ec173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461018e57600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633e2381216040518163ffffffff1660e01b815260040160206040518083038186803b15801561013357600080fd5b505afa158015610147573d6000803e3d6000fd5b505050506040513d602081101561015d57600080fd5b8101908080519060200190929190505050156101825761017d60016103c0565b61018d565b61018c60006103c0565b5b5b005b600080fd5b3480156101a157600080fd5b506101e4600480360360208110156101b857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061071f565b005b3480156101f257600080fd5b506101fb6108ea565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561023357600080fd5b506102806004803603604081101561024a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610910565b005b34801561028e57600080fd5b50610297610b50565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102cf57600080fd5b50610312600480360360208110156102e657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610b76565b005b6103426004803603602081101561032a57600080fd5b810190808035151590602001909291905050506103c0565b005b34801561035057600080fd5b50610359610c7d565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561039157600080fd5b506103be600480360360208110156103a857600080fd5b8101908080359060200190929190505050610c95565b005b60026000541415610439576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600081905550600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610506576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4252494447453a2021627269646765000000000000000000000000000000000081525060200191505060405180910390fd5b600073eea3311250fe4c3268f8e684f7c87a82ff183ec173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561058357600080fd5b505afa158015610597573d6000803e3d6000fd5b505050506040513d60208110156105ad57600080fd5b8101908080519060200190929190505050905073eea3311250fe4c3268f8e684f7c87a82ff183ec173ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561061c57600080fd5b505af1158015610630573d6000803e3d6000fd5b5050505050600073eea3311250fe4c3268f8e684f7c87a82ff183ec173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156106b257600080fd5b505afa1580156106c6573d6000803e3d6000fd5b505050506040513d60208110156106dc57600080fd5b8101908080519060200190929190505050905060006107048383610edf90919063ffffffff16565b9050610711818533610f62565b505050600160008190555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f4252494447453a2021676f7665726e616e63650000000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146108a6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4252494447453a20676175676520616c7265616479207365740000000000000081525060200191505060405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026000541415610989576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600081905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a54576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f4252494447453a2021676f7665726e616e63650000000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610ada57610ad5600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828473ffffffffffffffffffffffffffffffffffffffff1661119e9092919063ffffffff16565b610b44565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610b42573d6000803e3d6000fd5b505b60016000819055505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c39576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f4252494447453a2021676f7665726e616e63650000000000000000000000000081525060200191505060405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b73eea3311250fe4c3268f8e684f7c87a82ff183ec181565b60026000541415610d0e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600081905550600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610ddb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4252494447453a2021627269646765000000000000000000000000000000000081525060200191505060405180910390fd5b6000610de78233611240565b9050600047905073eea3311250fe4c3268f8e684f7c87a82ff183ec173ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610e5557600080fd5b505af1158015610e69573d6000803e3d6000fd5b5050505060004790506000610e878383610edf90919063ffffffff16565b90503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610ecf573d6000803e3d6000fd5b5050505050600160008190555050565b600082821115610f57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b610fc4600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600073eea3311250fe4c3268f8e684f7c87a82ff183ec173ffffffffffffffffffffffffffffffffffffffff1661147c9092919063ffffffff16565b611025600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168473eea3311250fe4c3268f8e684f7c87a82ff183ec173ffffffffffffffffffffffffffffffffffffffff1661147c9092919063ffffffff16565b81156110e457600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638dbdbe6d600085846040518463ffffffff1660e01b8152600401808481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019350505050600060405180830381600087803b1580156110c757600080fd5b505af11580156110db573d6000803e3d6000fd5b50505050611199565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638dbdbe6d846000846040518463ffffffff1660e01b8152600401808481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019350505050600060405180830381600087803b15801561118057600080fd5b505af1158015611194573d6000803e3d6000fd5b505050505b505050565b61123b8363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611641565b505050565b60008073eea3311250fe4c3268f8e684f7c87a82ff183ec173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156112be57600080fd5b505afa1580156112d2573d6000803e3d6000fd5b505050506040513d60208110156112e857600080fd5b81019080805190602001909291905050509050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662f714ce85856040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050600060405180830381600087803b15801561138d57600080fd5b505af11580156113a1573d6000803e3d6000fd5b50505050600073eea3311250fe4c3268f8e684f7c87a82ff183ec173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561142257600080fd5b505afa158015611436573d6000803e3d6000fd5b505050506040513d602081101561144c57600080fd5b810190808051906020019092919050505090506114728282610edf90919063ffffffff16565b9250505092915050565b600081148061154a575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561150d57600080fd5b505afa158015611521573d6000803e3d6000fd5b505050506040513d602081101561153757600080fd5b8101908080519060200190929190505050145b61159f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526036815260200180611a216036913960400191505060405180910390fd5b61163c8363095ea7b360e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611641565b505050565b60606116a3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166117309092919063ffffffff16565b905060008151111561172b578080602001905160208110156116c457600080fd5b810190808051906020019092919050505061172a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806119f7602a913960400191505060405180910390fd5b5b505050565b606061173f8484600085611748565b90509392505050565b6060824710156117a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806119d16026913960400191505060405180910390fd5b6117ac856118f1565b61181e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061186e578051825260208201915060208101905060208303925061184b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146118d0576040519150601f19603f3d011682016040523d82523d6000602084013e6118d5565b606091505b50915091506118e5828286611904565b92505050949350505050565b600080823b905060008111915050919050565b60608315611914578290506119c9565b6000835111156119275782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561198e578082015181840152602081019050611973565b50505050905090810190601f1680156119bb5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220fd1eefc2707066a8b4df4bc0e85eed0f474ac1d441acc5536884f08062c906d164736f6c634300060c0033
Deployed Bytecode Sourcemap
25045:3696:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25243:42;25540:31;;:10;:31;;;25536:338;;25709:5;;;;;;;;;;;25700:24;;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25696:166;;;25746:22;25763:4;25746:16;:22::i;:::-;25696:166;;;25823:23;25840:5;25823:16;:23::i;:::-;25696:166;25536:338;25045:3696;;;;;26095:207;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;25360:33;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;28365:373;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;25400:20;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;25889:157;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;26439:512;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;25191:94;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;27051:495;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;26439:512;23716:1;24322:7;;:19;;24314:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23716:1;24455:7;:18;;;;26540:1:::1;26523:19;;:5;;;;;;;;;;;:19;;;;26515:47;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;26595:20;25243:42;26618:35;;;26662:4;26618:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;26595:73;;25243:42;26676:45;;;26729:9;26676:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;26749:19;25243:42;26771:35;;;26815:4;26771:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;26749:72;;26829:22;26854:29;26870:12;26854:11;:15;;:29;;;;:::i;:::-;26829:54;;26893:50;26907:14;26923:7;26932:10;26893:13;:50::i;:::-;24486:1;;;23672::::0;24634:7;:22;;;;26439:512;:::o;26095:207::-;26168:10;;;;;;;;;;;26154:24;;:10;:24;;;26146:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26238:1;26221:19;;:5;;;;;;;;;;;:19;;;26213:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26288:6;26280:5;;:14;;;;;;;;;;;;;;;;;;26095:207;:::o;25360:33::-;;;;;;;;;;;;;:::o;28365:373::-;23716:1;24322:7;;:19;;24314:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23716:1;24455:7;:18;;;;28469:10:::1;;;;;;;;;;;28455:24;;:10;:24;;;28447:56;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;28538:1;28520:20;;:6;:20;;;28516:215;;28556:48;28584:10;;;;;;;;;;;28596:7;28563:6;28556:27;;;;:48;;;;;:::i;:::-;28516:215;;;28691:10;;;;;;;;;;;:19;;:28;28711:7;28691:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;28516:215;23672:1:::0;24634:7;:22;;;;28365:373;;:::o;25400:20::-;;;;;;;;;;;;;:::o;25889:157::-;25976:10;;;;;;;;;;;25962:24;;:10;:24;;;25954:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26034:4;26021:10;;:17;;;;;;;;;;;;;;;;;;25889:157;:::o;25191:94::-;25243:42;25191:94;:::o;27051:495::-;23716:1;24322:7;;:19;;24314:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23716:1;24455:7;:18;;;;27153:1:::1;27136:19;;:5;;;;;;;;;;;:19;;;;27128:47;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;27211:22;27236:35;27251:7;27260:10;27236:14;:35::i;:::-;27211:60;;27284:15;27302:21;27284:39;;25243:42;27334:46;;;27381:14;27334:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;27407:14;27424:21;27407:38;;27456:17;27476:19;27487:7;27476:6;:10;;:19;;;;:::i;:::-;27456:39;;27508:10;:19;;:30;27528:9;27508:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;24486:1;;;;23672::::0;24634:7;:22;;;;27051:495;:::o;6288:158::-;6346:7;6379:1;6374;:6;;6366:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6437:1;6433;:5;6426:12;;6288:158;;;;:::o;27919:352::-;28002:47;28040:5;;;;;;;;;;;28047:1;25243:42;28002:37;;;;:47;;;;;:::i;:::-;28057:53;28095:5;;;;;;;;;;;28102:7;25243:42;28057:37;;;;:53;;;;;:::i;:::-;28124:7;28120:144;;;28150:5;;;;;;;;;;;28141:23;;;28165:1;28168:7;28177:5;28141:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28120:144;;;28222:5;;;;;;;;;;;28213:23;;;28237:7;28246:1;28249:5;28213:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28120:144;27919:352;;;:::o;18992:177::-;19075:86;19095:5;19125:23;;;19150:2;19154:5;19102:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19075:19;:86::i;:::-;18992:177;;;:::o;27554:357::-;27628:7;27647:20;25243:42;27670:35;;;27714:4;27670:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27647:73;;27740:5;;;;;;;;;;;27731:24;;;27756:7;27765:5;27731:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27782:19;25243:42;27804:35;;;27848:4;27804:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27782:72;;27874:29;27890:12;27874:11;:15;;:29;;;;:::i;:::-;27867:36;;;;27554:357;;;;:::o;19651:622::-;20030:1;20021:5;:10;20020:62;;;;20080:1;20037:5;:15;;;20061:4;20068:7;20037:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:44;20020:62;20012:152;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20175:90;20195:5;20225:22;;;20249:7;20258:5;20202:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20175:19;:90::i;:::-;19651:622;;;:::o;21297:761::-;21721:23;21747:69;21775:4;21747:69;;;;;;;;;;;;;;;;;21755:5;21747:27;;;;:69;;;;;:::i;:::-;21721:95;;21851:1;21831:10;:17;:21;21827:224;;;21973:10;21962:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21954:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21827:224;21297:761;;;:::o;14092:195::-;14195:12;14227:52;14249:6;14257:4;14263:1;14266:12;14227:21;:52::i;:::-;14220:59;;14092:195;;;;;:::o;15144:530::-;15271:12;15329:5;15304:21;:30;;15296:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15396:18;15407:6;15396:10;:18::i;:::-;15388:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15522:12;15536:23;15563:6;:11;;15583:5;15591:4;15563:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15521:75;;;;15614:52;15632:7;15641:10;15653:12;15614:17;:52::i;:::-;15607:59;;;;15144:530;;;;;;:::o;11174:422::-;11234:4;11442:12;11553:7;11541:20;11533:28;;11587:1;11580:4;:8;11573:15;;;11174:422;;;:::o;17684:742::-;17799:12;17828:7;17824:595;;;17859:10;17852:17;;;;17824:595;17993:1;17973:10;:17;:21;17969:439;;;18236:10;18230:17;18297:15;18284:10;18280:2;18276:19;18269:44;18184:148;18379:12;18372:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17684:742;;;;;;:::o
Swarm Source
ipfs://fd1eefc2707066a8b4df4bc0e85eed0f474ac1d441acc5536884f08062c906d1
Loading...
Loading
Loading...
Loading
Net Worth in USD
$31.42
Net Worth in ETH
0.015849
Token Allocations
BNB
100.00%
Multichain Portfolio | 33 Chains
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.