Source Code
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ERCFundStandalone
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/**
*Submitted for verification at fraxscan.com on 2024-03-20
*/
pragma solidity ^0.6.12;
// SPDX-License-Identifier: UNLICENSED
/**
* @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 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 GSN 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 payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
/**
* @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.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @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() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @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");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
//Contract where the fees are sent to before they are converted
//No fee distribution contract currently exists for Fraxtal
contract ERCFundStandalone is Ownable {
using SafeERC20 for IERC20;
using SafeMath for uint256;
uint256 public constant feeMAX = 3000;
uint256 public fee = 500; //5%
bool public feeSharingEnabled = true;
mapping(address => bool) public converters;
/* ========== VIEW FUNCTIONS ========== */
function feeShareEnabled() external view returns (bool) {
return feeSharingEnabled;
}
function getFee() external view returns (uint256) {
return fee;
}
/* ========== SETTER FUNCTIONS ========== */
function setFeeSharingEnabled(bool enabled) public onlyOwner {
feeSharingEnabled = enabled;
}
function setFee(uint256 _fee) public onlyOwner {
require(_fee <= feeMAX);
fee = _fee;
}
function setConverter(address _converter, bool allowed) public onlyOwner {
converters[_converter] = allowed;
}
/* ========== ADMIN FUNCTIONS ========== */
//Used by the fee converter
function recover(address token) public {
require(converters[msg.sender], "not allowed");
uint256 _token = IERC20(token).balanceOf(address(this));
if (_token > 0) {
IERC20(token).safeTransfer(msg.sender, _token);
emit Recovered(token, _token);
}
}
// **** Events ****
event Recovered(address indexed tokenWithdrew, uint256 _amount);
event Notified(address indexed tokenDeposited);
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenDeposited","type":"address"}],"name":"Notified","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":true,"internalType":"address","name":"tokenWithdrew","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Recovered","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"converters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeMAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeShareEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeSharingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"recover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_converter","type":"address"},{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setConverter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setFeeSharingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040526101f460019081556002805460ff1916909117905534801561002557600080fd5b50600061003061007f565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610083565b3390565b610abe806100926000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638da5cb5b1161008c578063ced72f8711610066578063ced72f87146101c8578063dbd1926a146101d0578063ddca3f43146101fe578063f2fde38b14610206576100cf565b80638da5cb5b146101825780639335c4f3146101a6578063cd27d22f146101ae576100cf565b80630cd865ec146100d45780633f6c6c58146100fc57806340a05acb1461011b57806369fe0e2d14610155578063715018a6146101725780638ab3893b1461017a575b600080fd5b6100fa600480360360208110156100ea57600080fd5b50356001600160a01b031661022c565b005b6100fa6004803603602081101561011257600080fd5b50351515610359565b6101416004803603602081101561013157600080fd5b50356001600160a01b03166103ce565b604080519115158252519081900360200190f35b6100fa6004803603602081101561016b57600080fd5b50356103e3565b6100fa610459565b610141610505565b61018a61050e565b604080516001600160a01b039092168252519081900360200190f35b61014161051d565b6101b6610526565b60408051918252519081900360200190f35b6101b661052c565b6100fa600480360360408110156101e657600080fd5b506001600160a01b0381351690602001351515610532565b6101b66105bf565b6100fa6004803603602081101561021c57600080fd5b50356001600160a01b03166105c5565b3360009081526003602052604090205460ff1661027e576040805162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b604482015290519081900360640190fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156102cd57600080fd5b505afa1580156102e1573d6000803e3d6000fd5b505050506040513d60208110156102f757600080fd5b505190508015610355576103156001600160a01b03831633836106c7565b6040805182815290516001600160a01b038416917f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28919081900360200190a25b5050565b61036161071e565b6001600160a01b031661037261050e565b6001600160a01b0316146103bb576040805162461bcd60e51b81526020600482018190526024820152600080516020610a3f833981519152604482015290519081900360640190fd5b6002805460ff1916911515919091179055565b60036020526000908152604090205460ff1681565b6103eb61071e565b6001600160a01b03166103fc61050e565b6001600160a01b031614610445576040805162461bcd60e51b81526020600482018190526024820152600080516020610a3f833981519152604482015290519081900360640190fd5b610bb881111561045457600080fd5b600155565b61046161071e565b6001600160a01b031661047261050e565b6001600160a01b0316146104bb576040805162461bcd60e51b81526020600482018190526024820152600080516020610a3f833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60025460ff1690565b6000546001600160a01b031690565b60025460ff1681565b610bb881565b60015490565b61053a61071e565b6001600160a01b031661054b61050e565b6001600160a01b031614610594576040805162461bcd60e51b81526020600482018190526024820152600080516020610a3f833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b60015481565b6105cd61071e565b6001600160a01b03166105de61050e565b6001600160a01b031614610627576040805162461bcd60e51b81526020600482018190526024820152600080516020610a3f833981519152604482015290519081900360640190fd5b6001600160a01b03811661066c5760405162461bcd60e51b81526004018080602001828103825260268152602001806109f36026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610719908490610722565b505050565b3390565b6060610777826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107d39092919063ffffffff16565b8051909150156107195780806020019051602081101561079657600080fd5b50516107195760405162461bcd60e51b815260040180806020018281038252602a815260200180610a5f602a913960400191505060405180910390fd5b60606107e284846000856107ec565b90505b9392505050565b60608247101561082d5760405162461bcd60e51b8152600401808060200182810382526026815260200180610a196026913960400191505060405180910390fd5b61083685610948565b610887576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106108c65780518252601f1990920191602091820191016108a7565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610928576040519150601f19603f3d011682016040523d82523d6000602084013e61092d565b606091505b509150915061093d82828661094e565b979650505050505050565b3b151590565b6060831561095d5750816107e5565b82511561096d5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109b757818101518382015260200161099f565b50505050905090810190601f1680156109e45780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212208ec7b4e1b95f123b24dc59600786623c6624515c29b3ef31412061dbc341871f64736f6c634300060c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638da5cb5b1161008c578063ced72f8711610066578063ced72f87146101c8578063dbd1926a146101d0578063ddca3f43146101fe578063f2fde38b14610206576100cf565b80638da5cb5b146101825780639335c4f3146101a6578063cd27d22f146101ae576100cf565b80630cd865ec146100d45780633f6c6c58146100fc57806340a05acb1461011b57806369fe0e2d14610155578063715018a6146101725780638ab3893b1461017a575b600080fd5b6100fa600480360360208110156100ea57600080fd5b50356001600160a01b031661022c565b005b6100fa6004803603602081101561011257600080fd5b50351515610359565b6101416004803603602081101561013157600080fd5b50356001600160a01b03166103ce565b604080519115158252519081900360200190f35b6100fa6004803603602081101561016b57600080fd5b50356103e3565b6100fa610459565b610141610505565b61018a61050e565b604080516001600160a01b039092168252519081900360200190f35b61014161051d565b6101b6610526565b60408051918252519081900360200190f35b6101b661052c565b6100fa600480360360408110156101e657600080fd5b506001600160a01b0381351690602001351515610532565b6101b66105bf565b6100fa6004803603602081101561021c57600080fd5b50356001600160a01b03166105c5565b3360009081526003602052604090205460ff1661027e576040805162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b604482015290519081900360640190fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156102cd57600080fd5b505afa1580156102e1573d6000803e3d6000fd5b505050506040513d60208110156102f757600080fd5b505190508015610355576103156001600160a01b03831633836106c7565b6040805182815290516001600160a01b038416917f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28919081900360200190a25b5050565b61036161071e565b6001600160a01b031661037261050e565b6001600160a01b0316146103bb576040805162461bcd60e51b81526020600482018190526024820152600080516020610a3f833981519152604482015290519081900360640190fd5b6002805460ff1916911515919091179055565b60036020526000908152604090205460ff1681565b6103eb61071e565b6001600160a01b03166103fc61050e565b6001600160a01b031614610445576040805162461bcd60e51b81526020600482018190526024820152600080516020610a3f833981519152604482015290519081900360640190fd5b610bb881111561045457600080fd5b600155565b61046161071e565b6001600160a01b031661047261050e565b6001600160a01b0316146104bb576040805162461bcd60e51b81526020600482018190526024820152600080516020610a3f833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60025460ff1690565b6000546001600160a01b031690565b60025460ff1681565b610bb881565b60015490565b61053a61071e565b6001600160a01b031661054b61050e565b6001600160a01b031614610594576040805162461bcd60e51b81526020600482018190526024820152600080516020610a3f833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b60015481565b6105cd61071e565b6001600160a01b03166105de61050e565b6001600160a01b031614610627576040805162461bcd60e51b81526020600482018190526024820152600080516020610a3f833981519152604482015290519081900360640190fd5b6001600160a01b03811661066c5760405162461bcd60e51b81526004018080602001828103825260268152602001806109f36026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610719908490610722565b505050565b3390565b6060610777826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107d39092919063ffffffff16565b8051909150156107195780806020019051602081101561079657600080fd5b50516107195760405162461bcd60e51b815260040180806020018281038252602a815260200180610a5f602a913960400191505060405180910390fd5b60606107e284846000856107ec565b90505b9392505050565b60608247101561082d5760405162461bcd60e51b8152600401808060200182810382526026815260200180610a196026913960400191505060405180910390fd5b61083685610948565b610887576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106108c65780518252601f1990920191602091820191016108a7565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610928576040519150601f19603f3d011682016040523d82523d6000602084013e61092d565b606091505b509150915061093d82828661094e565b979650505050505050565b3b151590565b6060831561095d5750816107e5565b82511561096d5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109b757818101518382015260200161099f565b50505050905090810190601f1680156109e45780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212208ec7b4e1b95f123b24dc59600786623c6624515c29b3ef31412061dbc341871f64736f6c634300060c0033
Deployed Bytecode Sourcemap
24985:1502:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26019:315;;;;;;;;;;;;;;;;-1:-1:-1;26019:315:0;-1:-1:-1;;;;;26019:315:0;;:::i;:::-;;25570:107;;;;;;;;;;;;;;;;-1:-1:-1;25570:107:0;;;;:::i;25223:42::-;;;;;;;;;;;;;;;;-1:-1:-1;25223:42:0;-1:-1:-1;;;;;25223:42:0;;:::i;:::-;;;;;;;;;;;;;;;;;;25685:110;;;;;;;;;;;;;;;;-1:-1:-1;25685:110:0;;:::i;24303:148::-;;;:::i;25324:99::-;;;:::i;23652:87::-;;;:::i;:::-;;;;-1:-1:-1;;;;;23652:87:0;;;;;;;;;;;;;;25180:36;;;:::i;25098:37::-;;;:::i;:::-;;;;;;;;;;;;;;;;25431:79;;;:::i;25803:124::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;25803:124:0;;;;;;;;;;:::i;25144:24::-;;;:::i;24606:244::-;;;;;;;;;;;;;;;;-1:-1:-1;24606:244:0;-1:-1:-1;;;;;24606:244:0;;:::i;26019:315::-;26088:10;26077:22;;;;:10;:22;;;;;;;;26069:46;;;;;-1:-1:-1;;;26069:46:0;;;;;;;;;;;;-1:-1:-1;;;26069:46:0;;;;;;;;;;;;;;;26128:14;26152:5;-1:-1:-1;;;;;26145:23:0;;26177:4;26145:38;;;;;;;;;;;;;-1:-1:-1;;;;;26145:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26145:38:0;;-1:-1:-1;26198:10:0;;26194:133;;26225:46;-1:-1:-1;;;;;26225:26:0;;26252:10;26264:6;26225:26;:46::i;:::-;26291:24;;;;;;;;-1:-1:-1;;;;;26291:24:0;;;;;;;;;;;;;26194:133;26019:315;;:::o;25570:107::-;23883:12;:10;:12::i;:::-;-1:-1:-1;;;;;23872:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23872:23:0;;23864:68;;;;;-1:-1:-1;;;23864:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23864:68:0;;;;;;;;;;;;;;;25642:17:::1;:27:::0;;-1:-1:-1;;25642:27:0::1;::::0;::::1;;::::0;;;::::1;::::0;;25570:107::o;25223:42::-;;;;;;;;;;;;;;;:::o;25685:110::-;23883:12;:10;:12::i;:::-;-1:-1:-1;;;;;23872:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23872:23:0;;23864:68;;;;;-1:-1:-1;;;23864:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23864:68:0;;;;;;;;;;;;;;;25131:4:::1;25751;:14;;25743:23;;;::::0;::::1;;25777:3;:10:::0;25685:110::o;24303:148::-;23883:12;:10;:12::i;:::-;-1:-1:-1;;;;;23872:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23872:23:0;;23864:68;;;;;-1:-1:-1;;;23864:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23864:68:0;;;;;;;;;;;;;;;24410:1:::1;24394:6:::0;;24373:40:::1;::::0;-1:-1:-1;;;;;24394:6:0;;::::1;::::0;24373:40:::1;::::0;24410:1;;24373:40:::1;24441:1;24424:19:::0;;-1:-1:-1;;;;;;24424:19:0::1;::::0;;24303:148::o;25324:99::-;25398:17;;;;25324:99;:::o;23652:87::-;23698:7;23725:6;-1:-1:-1;;;;;23725:6:0;23652:87;:::o;25180:36::-;;;;;;:::o;25098:37::-;25131:4;25098:37;:::o;25431:79::-;25499:3;;25431:79;:::o;25803:124::-;23883:12;:10;:12::i;:::-;-1:-1:-1;;;;;23872:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23872:23:0;;23864:68;;;;;-1:-1:-1;;;23864:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23864:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;25887:22:0;;;::::1;;::::0;;;:10:::1;:22;::::0;;;;:32;;-1:-1:-1;;25887:32:0::1;::::0;::::1;;::::0;;;::::1;::::0;;25803:124::o;25144:24::-;;;;:::o;24606:244::-;23883:12;:10;:12::i;:::-;-1:-1:-1;;;;;23872:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23872:23:0;;23864:68;;;;;-1:-1:-1;;;23864:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23864:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;24695:22:0;::::1;24687:73;;;;-1:-1:-1::0;;;24687:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24797:6;::::0;;24776:38:::1;::::0;-1:-1:-1;;;;;24776:38:0;;::::1;::::0;24797:6;::::1;::::0;24776:38:::1;::::0;::::1;24825:6;:17:::0;;-1:-1:-1;;;;;;24825:17:0::1;-1:-1:-1::0;;;;;24825:17:0;;;::::1;::::0;;;::::1;::::0;;24606:244::o;18661:177::-;18771:58;;;-1:-1:-1;;;;;18771:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18771:58:0;-1:-1:-1;;;18771:58:0;;;18744:86;;18764:5;;18744:19;:86::i;:::-;18661:177;;;:::o;22279:106::-;22367:10;22279:106;:::o;20966:761::-;21390:23;21416:69;21444:4;21416:69;;;;;;;;;;;;;;;;;21424:5;-1:-1:-1;;;;;21416:27:0;;;:69;;;;;:::i;:::-;21500:17;;21390:95;;-1:-1:-1;21500:21:0;21496:224;;21642:10;21631:30;;;;;;;;;;;;;;;-1:-1:-1;21631:30:0;21623:85;;;;-1:-1:-1;;;21623:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13757:195;13860:12;13892:52;13914:6;13922:4;13928:1;13931:12;13892:21;:52::i;:::-;13885:59;;13757:195;;;;;;:::o;14809:530::-;14936:12;14994:5;14969:21;:30;;14961:81;;;;-1:-1:-1;;;14961:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15061:18;15072:6;15061:10;:18::i;:::-;15053:60;;;;;-1:-1:-1;;;15053:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15187:12;15201:23;15228:6;-1:-1:-1;;;;;15228:11:0;15248:5;15256:4;15228:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15228:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15186:75;;;;15279:52;15297:7;15306:10;15318:12;15279:17;:52::i;:::-;15272:59;14809:530;-1:-1:-1;;;;;;;14809:530:0:o;10839:422::-;11206:20;11245:8;;;10839:422::o;17349:742::-;17464:12;17493:7;17489:595;;;-1:-1:-1;17524:10:0;17517:17;;17489:595;17638:17;;:21;17634:439;;17901:10;17895:17;17962:15;17949:10;17945:2;17941:19;17934:44;17849:148;18044:12;18037:20;;-1:-1:-1;;;18037:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://8ec7b4e1b95f123b24dc59600786623c6624515c29b3ef31412061dbc341871f
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$2,410.17
Net Worth in FRAX
2,331.955909
Token Allocations
WFRAX
58.05%
CRV
41.71%
SQUID
0.24%
Multichain Portfolio | 35 Chains
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.