Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer Governa... | 15504694 | 918 days ago | IN | 0 ETH | 0.00091321 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Buyback
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: agpl-3.0 pragma solidity ^0.8.0; import { Strategizable } from "../governance/Strategizable.sol"; import "../interfaces/chainlink/AggregatorV3Interface.sol"; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import { SafeMath } from "@openzeppelin/contracts/utils/math/SafeMath.sol"; import { UniswapV3Router } from "../interfaces/UniswapV3Router.sol"; contract Buyback is Strategizable { using SafeERC20 for IERC20; using SafeMath for uint256; event UniswapUpdated(address _address); // Address of Uniswap address public uniswapAddr; // Swap from OUSD IERC20 immutable ousd; // Swap to OGV IERC20 immutable ogv; // USDT for Uniswap path IERC20 immutable usdt; // WETH for Uniswap path IERC20 immutable weth9; // Address that receives rewards address public immutable rewardsSource; /** * @param _uniswapAddr Address of Uniswap * @param _strategistAddr Address of Strategist multi-sig wallet * @param _ousd OUSD Proxy Contract Address * @param _ogv OGV Proxy Contract Address * @param _usdt USDT Address * @param _weth9 WETH Address * @param _rewardsSource Address of RewardsSource contract */ constructor( address _uniswapAddr, address _strategistAddr, address _ousd, address _ogv, address _usdt, address _weth9, address _rewardsSource ) { uniswapAddr = _uniswapAddr; _setStrategistAddr(_strategistAddr); ousd = IERC20(_ousd); ogv = IERC20(_ogv); usdt = IERC20(_usdt); weth9 = IERC20(_weth9); rewardsSource = _rewardsSource; // Give approval to Uniswap router for OUSD, this is handled // by setUniswapAddr in the production contract IERC20(_ousd).safeApprove(uniswapAddr, type(uint256).max); emit UniswapUpdated(_uniswapAddr); } /** * @dev Set address of Uniswap for performing liquidation of strategy reward * tokens. Setting to 0x0 will pause swaps. * @param _address Address of Uniswap */ function setUniswapAddr(address _address) external onlyGovernor { uniswapAddr = _address; if (uniswapAddr != address(0)) { // OUSD doesn't allow changing allowances. // You have to reset it to zero before you // can give it a different allowance. ousd.safeApprove(uniswapAddr, 0); // Give Uniswap unlimited OUSD allowance ousd.safeApprove(uniswapAddr, type(uint256).max); } emit UniswapUpdated(_address); } /** * @dev Execute a swap of OGV for OUSD via Uniswap or Uniswap compatible * protocol (e.g. Sushiswap) **/ function swap() external { // Disabled for now, will be manually swapped by // `strategistAddr` using `swapNow()` method return; } /** * @dev Execute a swap of OGV for OUSD via Uniswap or Uniswap compatible * protocol (e.g. Sushiswap) * @param ousdAmount OUSD to sell * @param minExpected mininum amount of OGV to receive **/ function swapNow(uint256 ousdAmount, uint256 minExpected) external onlyGovernorOrStrategist nonReentrant { require(uniswapAddr != address(0), "Exchange address not set"); require(minExpected > 0, "Invalid minExpected value"); UniswapV3Router.ExactInputParams memory params = UniswapV3Router .ExactInputParams({ path: abi.encodePacked( ousd, uint24(500), // Pool fee, ousd -> usdt usdt, uint24(500), // Pool fee, usdt -> weth9 weth9, uint24(3000), // Pool fee, weth9 -> ogv ogv ), recipient: rewardsSource, deadline: block.timestamp, amountIn: ousdAmount, amountOutMinimum: minExpected }); // slither-disable-next-line unused-return UniswapV3Router(uniswapAddr).exactInput(params); } /** * @notice Owner function to withdraw a specific amount of a token * @param token token to be transferered * @param amount amount of the token to be transferred */ function transferToken(address token, uint256 amount) external onlyGovernor nonReentrant { IERC20(token).safeTransfer(_governor(), amount); } }
// SPDX-License-Identifier: agpl-3.0 pragma solidity ^0.8.0; import { Governable } from "./Governable.sol"; contract Strategizable is Governable { event StrategistUpdated(address _address); // Address of strategist address public strategistAddr; // For future use uint256[50] private __gap; /** * @dev Verifies that the caller is either Governor or Strategist. */ modifier onlyGovernorOrStrategist() { require( msg.sender == strategistAddr || isGovernor(), "Caller is not the Strategist or Governor" ); _; } /** * @dev Set address of Strategist * @param _address Address of Strategist */ function setStrategistAddr(address _address) external onlyGovernor { _setStrategistAddr(_address); } /** * @dev Set address of Strategist * @param _address Address of Strategist */ function _setStrategistAddr(address _address) internal { strategistAddr = _address; emit StrategistUpdated(_address); } }
// SPDX-License-Identifier: agpl-3.0 pragma solidity ^0.8.0; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); // getRoundData and latestRoundData should both raise "No data present" // if they do not have data to report, instead of returning unset values // which could be misinterpreted as actual reported values. function getRoundData(uint80 _roundId) external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); function latestRoundData() external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ 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) { unchecked { 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) { unchecked { 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) { unchecked { // 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) { unchecked { 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) { unchecked { 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) { return a + b; } /** * @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) { 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) { return a * b; } /** * @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. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { 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) { 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) { unchecked { 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. * * 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) { unchecked { 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) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: agpl-3.0 pragma solidity ^0.8.0; // -- Solididy v0.5.x compatible interface interface UniswapV3Router { struct ExactInputParams { bytes path; address recipient; uint256 deadline; uint256 amountIn; uint256 amountOutMinimum; } /// @notice Swaps `amountIn` of one token for as much as possible of another along the specified path /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactInputParams` in calldata /// @return amountOut The amount of the received token function exactInput(ExactInputParams calldata params) external payable returns (uint256 amountOut); }
// SPDX-License-Identifier: agpl-3.0 pragma solidity ^0.8.0; /** * @title OUSD Governable Contract * @dev Copy of the openzeppelin Ownable.sol contract with nomenclature change * from owner to governor and renounce methods removed. Does not use * Context.sol like Ownable.sol does for simplification. * @author Origin Protocol Inc */ contract Governable { // Storage position of the owner and pendingOwner of the contract // keccak256("OUSD.governor"); bytes32 private constant governorPosition = 0x7bea13895fa79d2831e0a9e28edede30099005a50d652d8957cf8a607ee6ca4a; // keccak256("OUSD.pending.governor"); bytes32 private constant pendingGovernorPosition = 0x44c4d30b2eaad5130ad70c3ba6972730566f3e6359ab83e800d905c61b1c51db; // keccak256("OUSD.reentry.status"); bytes32 private constant reentryStatusPosition = 0x53bf423e48ed90e97d02ab0ebab13b2a235a6bfbe9c321847d5c175333ac4535; // See OpenZeppelin ReentrancyGuard implementation uint256 constant _NOT_ENTERED = 1; uint256 constant _ENTERED = 2; event PendingGovernorshipTransfer( address indexed previousGovernor, address indexed newGovernor ); event GovernorshipTransferred( address indexed previousGovernor, address indexed newGovernor ); /** * @dev Initializes the contract setting the deployer as the initial Governor. */ constructor() { _setGovernor(msg.sender); emit GovernorshipTransferred(address(0), _governor()); } /** * @dev Returns the address of the current Governor. */ function governor() public view returns (address) { return _governor(); } /** * @dev Returns the address of the current Governor. */ function _governor() internal view returns (address governorOut) { bytes32 position = governorPosition; assembly { governorOut := sload(position) } } /** * @dev Returns the address of the pending Governor. */ function _pendingGovernor() internal view returns (address pendingGovernor) { bytes32 position = pendingGovernorPosition; assembly { pendingGovernor := sload(position) } } /** * @dev Throws if called by any account other than the Governor. */ modifier onlyGovernor() { require(isGovernor(), "Caller is not the Governor"); _; } /** * @dev Returns true if the caller is the current Governor. */ function isGovernor() public view returns (bool) { return msg.sender == _governor(); } function _setGovernor(address newGovernor) internal { bytes32 position = governorPosition; assembly { sstore(position, newGovernor) } } /** * @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() { bytes32 position = reentryStatusPosition; uint256 _reentry_status; assembly { _reentry_status := sload(position) } // On the first call to nonReentrant, _notEntered will be true require(_reentry_status != _ENTERED, "Reentrant call"); // Any calls to nonReentrant after this point will fail assembly { sstore(position, _ENTERED) } _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) assembly { sstore(position, _NOT_ENTERED) } } function _setPendingGovernor(address newGovernor) internal { bytes32 position = pendingGovernorPosition; assembly { sstore(position, newGovernor) } } /** * @dev Transfers Governance of the contract to a new account (`newGovernor`). * Can only be called by the current Governor. Must be claimed for this to complete * @param _newGovernor Address of the new Governor */ function transferGovernance(address _newGovernor) external onlyGovernor { _setPendingGovernor(_newGovernor); emit PendingGovernorshipTransfer(_governor(), _newGovernor); } /** * @dev Claim Governance of the contract to a new account (`newGovernor`). * Can only be called by the new Governor. */ function claimGovernance() external { require( msg.sender == _pendingGovernor(), "Only the pending Governor can complete the claim" ); _changeGovernor(msg.sender); } /** * @dev Change Governance of the contract to a new account (`newGovernor`). * @param _newGovernor Address of the new Governor */ function _changeGovernor(address _newGovernor) internal { require(_newGovernor != address(0), "New Governor is address(0)"); emit GovernorshipTransferred(_governor(), _newGovernor); _setGovernor(_newGovernor); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @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; 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"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_uniswapAddr","type":"address"},{"internalType":"address","name":"_strategistAddr","type":"address"},{"internalType":"address","name":"_ousd","type":"address"},{"internalType":"address","name":"_ogv","type":"address"},{"internalType":"address","name":"_usdt","type":"address"},{"internalType":"address","name":"_weth9","type":"address"},{"internalType":"address","name":"_rewardsSource","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"StrategistUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"UniswapUpdated","type":"event"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsSource","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setStrategistAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setUniswapAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategistAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ousdAmount","type":"uint256"},{"internalType":"uint256","name":"minExpected","type":"uint256"}],"name":"swapNow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101206040523480156200001257600080fd5b5060405162001719380380620017198339810160408190526200003591620005a1565b6200004d33600080516020620016f983398151915255565b600080516020620016f9833981519152546040516001600160a01b03909116906000907fc7c0c772add429241571afb3805861fb3cfa2af374534088b76cdb4325a87e9a908290a3603380546001600160a01b0319166001600160a01b038916179055620000bb8662000163565b606085811b6001600160601b031990811660805285821b811660a05284821b811660c05283821b811660e0529082901b16610100526033546200011a906001600160a01b038088169116600019620001b7602090811b6200088117901c565b6040516001600160a01b03881681527fca20db57f4368388dd6766259da48cd22a485cba21ee6ec8c519007cb66dfd039060200160405180910390a150505050505050620006fa565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f869e0abd13cc3a975de7b93be3df1cb2255c802b1cead85963cc79d99f131bee9060200160405180910390a150565b801580620002455750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156200020857600080fd5b505afa1580156200021d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200024391906200065a565b155b620002bd5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084015b60405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152620003159185916200031a16565b505050565b600062000376826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316620003f860201b620009dd179092919060201c565b80519091501562000315578080602001905181019062000397919062000636565b620003155760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401620002b4565b606062000409848460008562000413565b90505b9392505050565b606082471015620004765760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401620002b4565b843b620004c65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401620002b4565b600080866001600160a01b03168587604051620004e4919062000674565b60006040518083038185875af1925050503d806000811462000523576040519150601f19603f3d011682016040523d82523d6000602084013e62000528565b606091505b5090925090506200053b82828662000546565b979650505050505050565b60608315620005575750816200040c565b825115620005685782518084602001fd5b8160405162461bcd60e51b8152600401620002b4919062000692565b80516001600160a01b03811681146200059c57600080fd5b919050565b600080600080600080600060e0888a031215620005bd57600080fd5b620005c88862000584565b9650620005d86020890162000584565b9550620005e86040890162000584565b9450620005f86060890162000584565b9350620006086080890162000584565b92506200061860a0890162000584565b91506200062860c0890162000584565b905092959891949750929550565b6000602082840312156200064957600080fd5b815180151581146200040c57600080fd5b6000602082840312156200066d57600080fd5b5051919050565b6000825162000688818460208701620006c7565b9190910192915050565b6020815260008251806020840152620006b3816040850160208701620006c7565b601f01601f19169190910160400192915050565b60005b83811015620006e4578181015183820152602001620006ca565b83811115620006f4576000848401525b50505050565b60805160601c60a05160601c60c05160601c60e05160601c6101005160601c610f96620007636000396000818161018a01526106e60152600061067301526000610644015260006106a90152600081816103c0015281816103fb01526105fc0152610f966000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80638119c065116100715780638119c065146100f1578063aea173d514610134578063ba4c016214610147578063c7af33521461015a578063d38bfff414610172578063f7240d2f1461018557600080fd5b80630c340a24146100b95780631072cbea146100de578063128a8b05146100f3578063570d8e1d146101065780635d36b19014610119578063773540b314610121575b600080fd5b6100c16101ac565b6040516001600160a01b0390911681526020015b60405180910390f35b6100f16100ec366004610d9f565b6101c9565b005b6033546100c1906001600160a01b031681565b6000546100c1906001600160a01b031681565b6100f1610292565b6100f161012f366004610d84565b610338565b6100f1610142366004610d84565b610368565b6100f1610155366004610e04565b610466565b6101626107ac565b60405190151581526020016100d5565b6100f1610180366004610d84565b6107dd565b6100c17f000000000000000000000000000000000000000000000000000000000000000081565b60006101c4600080516020610f418339815191525490565b905090565b6101d16107ac565b6101f65760405162461bcd60e51b81526004016101ed90610e81565b60405180910390fd5b7f53bf423e48ed90e97d02ab0ebab13b2a235a6bfbe9c321847d5c175333ac45358054600281141561025b5760405162461bcd60e51b815260206004820152600e60248201526d1499595b9d1c985b9d0818d85b1b60921b60448201526064016101ed565b60028255610289610278600080516020610f418339815191525490565b6001600160a01b03861690856109f6565b50600190555050565b7f44c4d30b2eaad5130ad70c3ba6972730566f3e6359ab83e800d905c61b1c51db546001600160a01b0316336001600160a01b03161461032d5760405162461bcd60e51b815260206004820152603060248201527f4f6e6c79207468652070656e64696e6720476f7665726e6f722063616e20636f60448201526f6d706c6574652074686520636c61696d60801b60648201526084016101ed565b61033633610a26565b565b6103406107ac565b61035c5760405162461bcd60e51b81526004016101ed90610e81565b61036581610ae7565b50565b6103706107ac565b61038c5760405162461bcd60e51b81526004016101ed90610e81565b603380546001600160a01b0319166001600160a01b03831690811790915515610426576033546103ea906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811691166000610881565b603354610426906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116600019610881565b6040516001600160a01b03821681527fca20db57f4368388dd6766259da48cd22a485cba21ee6ec8c519007cb66dfd03906020015b60405180910390a150565b6000546001600160a01b031633148061048257506104826107ac565b6104df5760405162461bcd60e51b815260206004820152602860248201527f43616c6c6572206973206e6f74207468652053747261746567697374206f722060448201526723b7bb32b93737b960c11b60648201526084016101ed565b7f53bf423e48ed90e97d02ab0ebab13b2a235a6bfbe9c321847d5c175333ac4535805460028114156105445760405162461bcd60e51b815260206004820152600e60248201526d1499595b9d1c985b9d0818d85b1b60921b60448201526064016101ed565b600282556033546001600160a01b03166105a05760405162461bcd60e51b815260206004820152601860248201527f45786368616e67652061646472657373206e6f7420736574000000000000000060448201526064016101ed565b600083116105f05760405162461bcd60e51b815260206004820152601960248201527f496e76616c6964206d696e45787065637465642076616c75650000000000000060448201526064016101ed565b6040805160a0810182527f0000000000000000000000000000000000000000000000000000000000000000606090811b6bffffffffffffffffffffffff1990811660c0840152607d60ea1b60d484018190527f0000000000000000000000000000000000000000000000000000000000000000831b821660d785015260eb8401527f0000000000000000000000000000000000000000000000000000000000000000821b811660ee84015261017760eb1b6101028401527f0000000000000000000000000000000000000000000000000000000000000000821b16610105830152825160f98184030181526101198301845282527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b039081166020840152428385015290820187905260808201869052603354925163c04b8d5960e01b81529192169063c04b8d599061074e908490600401610eb8565b602060405180830381600087803b15801561076857600080fd5b505af115801561077c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a09190610deb565b50506001825550505050565b60006107c4600080516020610f418339815191525490565b6001600160a01b0316336001600160a01b031614905090565b6107e56107ac565b6108015760405162461bcd60e51b81526004016101ed90610e81565b610829817f44c4d30b2eaad5130ad70c3ba6972730566f3e6359ab83e800d905c61b1c51db55565b806001600160a01b0316610849600080516020610f418339815191525490565b6001600160a01b03167fa39cc5eb22d0f34d8beaefee8a3f17cc229c1a1d1ef87a5ad47313487b1c4f0d60405160405180910390a350565b80158061090a5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156108d057600080fd5b505afa1580156108e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109089190610deb565b155b6109755760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016101ed565b6040516001600160a01b0383166024820152604481018290526109d890849063095ea7b360e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610b35565b505050565b60606109ec8484600085610c07565b90505b9392505050565b6040516001600160a01b0383166024820152604481018290526109d890849063a9059cbb60e01b906064016109a1565b6001600160a01b038116610a7c5760405162461bcd60e51b815260206004820152601a60248201527f4e657720476f7665726e6f72206973206164647265737328302900000000000060448201526064016101ed565b806001600160a01b0316610a9c600080516020610f418339815191525490565b6001600160a01b03167fc7c0c772add429241571afb3805861fb3cfa2af374534088b76cdb4325a87e9a60405160405180910390a361036581600080516020610f4183398151915255565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f869e0abd13cc3a975de7b93be3df1cb2255c802b1cead85963cc79d99f131bee9060200161045b565b6000610b8a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166109dd9092919063ffffffff16565b8051909150156109d85780806020019051810190610ba89190610dc9565b6109d85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016101ed565b606082471015610c685760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016101ed565b843b610cb65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101ed565b600080866001600160a01b03168587604051610cd29190610e52565b60006040518083038185875af1925050503d8060008114610d0f576040519150601f19603f3d011682016040523d82523d6000602084013e610d14565b606091505b5091509150610d24828286610d2f565b979650505050505050565b60608315610d3e5750816109ef565b825115610d4e5782518084602001fd5b8160405162461bcd60e51b81526004016101ed9190610e6e565b80356001600160a01b0381168114610d7f57600080fd5b919050565b600060208284031215610d9657600080fd5b6109ef82610d68565b60008060408385031215610db257600080fd5b610dbb83610d68565b946020939093013593505050565b600060208284031215610ddb57600080fd5b815180151581146109ef57600080fd5b600060208284031215610dfd57600080fd5b5051919050565b60008060408385031215610e1757600080fd5b50508035926020909101359150565b60008151808452610e3e816020860160208601610f10565b601f01601f19169290920160200192915050565b60008251610e64818460208701610f10565b9190910192915050565b6020815260006109ef6020830184610e26565b6020808252601a908201527f43616c6c6572206973206e6f742074686520476f7665726e6f72000000000000604082015260600190565b602081526000825160a06020840152610ed460c0840182610e26565b905060018060a01b0360208501511660408401526040840151606084015260608401516080840152608084015160a08401528091505092915050565b60005b83811015610f2b578181015183820152602001610f13565b83811115610f3a576000848401525b5050505056fe7bea13895fa79d2831e0a9e28edede30099005a50d652d8957cf8a607ee6ca4aa264697066735822122079db22d195509a1167f810faa2b2afab2c0227ec649b44aeed5999d3e6daea1664736f6c634300080700337bea13895fa79d2831e0a9e28edede30099005a50d652d8957cf8a607ee6ca4a000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564000000000000000000000000f14bbdf064e3f67f51cd9bd646ae3716ad938fdc0000000000000000000000002a8e1e676ec238d8a992307b495b45b3feaa5e860000000000000000000000009c354503c38481a7a7a51629142963f98ecc12d0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000007d82e86cf1496f9485a8ea04012afeb3c7489397
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c80638119c065116100715780638119c065146100f1578063aea173d514610134578063ba4c016214610147578063c7af33521461015a578063d38bfff414610172578063f7240d2f1461018557600080fd5b80630c340a24146100b95780631072cbea146100de578063128a8b05146100f3578063570d8e1d146101065780635d36b19014610119578063773540b314610121575b600080fd5b6100c16101ac565b6040516001600160a01b0390911681526020015b60405180910390f35b6100f16100ec366004610d9f565b6101c9565b005b6033546100c1906001600160a01b031681565b6000546100c1906001600160a01b031681565b6100f1610292565b6100f161012f366004610d84565b610338565b6100f1610142366004610d84565b610368565b6100f1610155366004610e04565b610466565b6101626107ac565b60405190151581526020016100d5565b6100f1610180366004610d84565b6107dd565b6100c17f0000000000000000000000007d82e86cf1496f9485a8ea04012afeb3c748939781565b60006101c4600080516020610f418339815191525490565b905090565b6101d16107ac565b6101f65760405162461bcd60e51b81526004016101ed90610e81565b60405180910390fd5b7f53bf423e48ed90e97d02ab0ebab13b2a235a6bfbe9c321847d5c175333ac45358054600281141561025b5760405162461bcd60e51b815260206004820152600e60248201526d1499595b9d1c985b9d0818d85b1b60921b60448201526064016101ed565b60028255610289610278600080516020610f418339815191525490565b6001600160a01b03861690856109f6565b50600190555050565b7f44c4d30b2eaad5130ad70c3ba6972730566f3e6359ab83e800d905c61b1c51db546001600160a01b0316336001600160a01b03161461032d5760405162461bcd60e51b815260206004820152603060248201527f4f6e6c79207468652070656e64696e6720476f7665726e6f722063616e20636f60448201526f6d706c6574652074686520636c61696d60801b60648201526084016101ed565b61033633610a26565b565b6103406107ac565b61035c5760405162461bcd60e51b81526004016101ed90610e81565b61036581610ae7565b50565b6103706107ac565b61038c5760405162461bcd60e51b81526004016101ed90610e81565b603380546001600160a01b0319166001600160a01b03831690811790915515610426576033546103ea906001600160a01b037f0000000000000000000000002a8e1e676ec238d8a992307b495b45b3feaa5e86811691166000610881565b603354610426906001600160a01b037f0000000000000000000000002a8e1e676ec238d8a992307b495b45b3feaa5e8681169116600019610881565b6040516001600160a01b03821681527fca20db57f4368388dd6766259da48cd22a485cba21ee6ec8c519007cb66dfd03906020015b60405180910390a150565b6000546001600160a01b031633148061048257506104826107ac565b6104df5760405162461bcd60e51b815260206004820152602860248201527f43616c6c6572206973206e6f74207468652053747261746567697374206f722060448201526723b7bb32b93737b960c11b60648201526084016101ed565b7f53bf423e48ed90e97d02ab0ebab13b2a235a6bfbe9c321847d5c175333ac4535805460028114156105445760405162461bcd60e51b815260206004820152600e60248201526d1499595b9d1c985b9d0818d85b1b60921b60448201526064016101ed565b600282556033546001600160a01b03166105a05760405162461bcd60e51b815260206004820152601860248201527f45786368616e67652061646472657373206e6f7420736574000000000000000060448201526064016101ed565b600083116105f05760405162461bcd60e51b815260206004820152601960248201527f496e76616c6964206d696e45787065637465642076616c75650000000000000060448201526064016101ed565b6040805160a0810182527f0000000000000000000000002a8e1e676ec238d8a992307b495b45b3feaa5e86606090811b6bffffffffffffffffffffffff1990811660c0840152607d60ea1b60d484018190527f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7831b821660d785015260eb8401527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2821b811660ee84015261017760eb1b6101028401527f0000000000000000000000009c354503c38481a7a7a51629142963f98ecc12d0821b16610105830152825160f98184030181526101198301845282527f0000000000000000000000007d82e86cf1496f9485a8ea04012afeb3c74893976001600160a01b039081166020840152428385015290820187905260808201869052603354925163c04b8d5960e01b81529192169063c04b8d599061074e908490600401610eb8565b602060405180830381600087803b15801561076857600080fd5b505af115801561077c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a09190610deb565b50506001825550505050565b60006107c4600080516020610f418339815191525490565b6001600160a01b0316336001600160a01b031614905090565b6107e56107ac565b6108015760405162461bcd60e51b81526004016101ed90610e81565b610829817f44c4d30b2eaad5130ad70c3ba6972730566f3e6359ab83e800d905c61b1c51db55565b806001600160a01b0316610849600080516020610f418339815191525490565b6001600160a01b03167fa39cc5eb22d0f34d8beaefee8a3f17cc229c1a1d1ef87a5ad47313487b1c4f0d60405160405180910390a350565b80158061090a5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156108d057600080fd5b505afa1580156108e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109089190610deb565b155b6109755760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016101ed565b6040516001600160a01b0383166024820152604481018290526109d890849063095ea7b360e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610b35565b505050565b60606109ec8484600085610c07565b90505b9392505050565b6040516001600160a01b0383166024820152604481018290526109d890849063a9059cbb60e01b906064016109a1565b6001600160a01b038116610a7c5760405162461bcd60e51b815260206004820152601a60248201527f4e657720476f7665726e6f72206973206164647265737328302900000000000060448201526064016101ed565b806001600160a01b0316610a9c600080516020610f418339815191525490565b6001600160a01b03167fc7c0c772add429241571afb3805861fb3cfa2af374534088b76cdb4325a87e9a60405160405180910390a361036581600080516020610f4183398151915255565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f869e0abd13cc3a975de7b93be3df1cb2255c802b1cead85963cc79d99f131bee9060200161045b565b6000610b8a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166109dd9092919063ffffffff16565b8051909150156109d85780806020019051810190610ba89190610dc9565b6109d85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016101ed565b606082471015610c685760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016101ed565b843b610cb65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101ed565b600080866001600160a01b03168587604051610cd29190610e52565b60006040518083038185875af1925050503d8060008114610d0f576040519150601f19603f3d011682016040523d82523d6000602084013e610d14565b606091505b5091509150610d24828286610d2f565b979650505050505050565b60608315610d3e5750816109ef565b825115610d4e5782518084602001fd5b8160405162461bcd60e51b81526004016101ed9190610e6e565b80356001600160a01b0381168114610d7f57600080fd5b919050565b600060208284031215610d9657600080fd5b6109ef82610d68565b60008060408385031215610db257600080fd5b610dbb83610d68565b946020939093013593505050565b600060208284031215610ddb57600080fd5b815180151581146109ef57600080fd5b600060208284031215610dfd57600080fd5b5051919050565b60008060408385031215610e1757600080fd5b50508035926020909101359150565b60008151808452610e3e816020860160208601610f10565b601f01601f19169290920160200192915050565b60008251610e64818460208701610f10565b9190910192915050565b6020815260006109ef6020830184610e26565b6020808252601a908201527f43616c6c6572206973206e6f742074686520476f7665726e6f72000000000000604082015260600190565b602081526000825160a06020840152610ed460c0840182610e26565b905060018060a01b0360208501511660408401526040840151606084015260608401516080840152608084015160a08401528091505092915050565b60005b83811015610f2b578181015183820152602001610f13565b83811115610f3a576000848401525b5050505056fe7bea13895fa79d2831e0a9e28edede30099005a50d652d8957cf8a607ee6ca4aa264697066735822122079db22d195509a1167f810faa2b2afab2c0227ec649b44aeed5999d3e6daea1664736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564000000000000000000000000f14bbdf064e3f67f51cd9bd646ae3716ad938fdc0000000000000000000000002a8e1e676ec238d8a992307b495b45b3feaa5e860000000000000000000000009c354503c38481a7a7a51629142963f98ecc12d0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000007d82e86cf1496f9485a8ea04012afeb3c7489397
-----Decoded View---------------
Arg [0] : _uniswapAddr (address): 0xE592427A0AEce92De3Edee1F18E0157C05861564
Arg [1] : _strategistAddr (address): 0xF14BBdf064E3F67f51cd9BD646aE3716aD938FDC
Arg [2] : _ousd (address): 0x2A8e1E676Ec238d8A992307B495b45B3fEAa5e86
Arg [3] : _ogv (address): 0x9c354503C38481a7A7a51629142963F98eCC12D0
Arg [4] : _usdt (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
Arg [5] : _weth9 (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [6] : _rewardsSource (address): 0x7d82E86CF1496f9485a8ea04012afeb3C7489397
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564
Arg [1] : 000000000000000000000000f14bbdf064e3f67f51cd9bd646ae3716ad938fdc
Arg [2] : 0000000000000000000000002a8e1e676ec238d8a992307b495b45b3feaa5e86
Arg [3] : 0000000000000000000000009c354503c38481a7a7a51629142963f98ecc12d0
Arg [4] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [5] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [6] : 0000000000000000000000007d82e86cf1496f9485a8ea04012afeb3c7489397
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.