Source Code
Latest 25 from a total of 9,658 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 422713611 | 7 days ago | IN | 0 ETH | 0.00000275 | ||||
| Withdraw | 422713324 | 7 days ago | IN | 0 ETH | 0.00000307 | ||||
| Withdraw | 418228728 | 20 days ago | IN | 0 ETH | 0.0000013 | ||||
| Withdraw | 418228401 | 20 days ago | IN | 0 ETH | 0.00000026 | ||||
| Withdraw | 418228299 | 20 days ago | IN | 0 ETH | 0.0000013 | ||||
| Withdraw | 415682013 | 27 days ago | IN | 0 ETH | 0.00000168 | ||||
| Withdraw | 408906954 | 47 days ago | IN | 0 ETH | 0.00000168 | ||||
| Withdraw | 408906798 | 47 days ago | IN | 0 ETH | 0.00000168 | ||||
| Withdraw | 406473783 | 54 days ago | IN | 0 ETH | 0.00000232 | ||||
| Withdraw | 402752191 | 65 days ago | IN | 0 ETH | 0.00000138 | ||||
| Withdraw | 402075253 | 67 days ago | IN | 0 ETH | 0.00000138 | ||||
| Withdraw | 401323870 | 69 days ago | IN | 0 ETH | 0.0000089 | ||||
| Withdraw | 400058271 | 72 days ago | IN | 0 ETH | 0.0000193 | ||||
| Withdraw | 400057915 | 72 days ago | IN | 0 ETH | 0.00002273 | ||||
| Withdraw | 399575970 | 74 days ago | IN | 0 ETH | 0.00000253 | ||||
| Withdraw | 399290889 | 75 days ago | IN | 0 ETH | 0.00000186 | ||||
| Withdraw | 399200814 | 75 days ago | IN | 0 ETH | 0.00000139 | ||||
| Collect All Pool... | 399200782 | 75 days ago | IN | 0 ETH | 0.00000245 | ||||
| Withdraw | 399185292 | 75 days ago | IN | 0 ETH | 0.00000215 | ||||
| Collect All Pool... | 399185240 | 75 days ago | IN | 0 ETH | 0.00000359 | ||||
| Withdraw | 399185222 | 75 days ago | IN | 0 ETH | 0.00000221 | ||||
| Withdraw | 399112969 | 75 days ago | IN | 0 ETH | 0.00000131 | ||||
| Withdraw | 397469993 | 80 days ago | IN | 0 ETH | 0.00001001 | ||||
| Withdraw | 393467955 | 92 days ago | IN | 0 ETH | 0.00000169 | ||||
| Withdraw | 393467848 | 92 days ago | IN | 0 ETH | 0.00000169 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MasterChefUmamiGmx
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 888 runs
Other Settings:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.17;
import { SafeTransferLib } from "@solmate/utils/SafeTransferLib.sol";
import { ERC20 } from "@solmate/tokens/ERC20.sol";
import { EnumerableSet } from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import { GlobalACL, Auth } from "./Auth.sol";
import { MasterChefLib } from "./libraries/MasterChefLib.sol";
import { ArbVaultGmx } from "./ArbVaultGmx.sol";
interface IRewarder {
function onOArbReward(address user, uint256 newLpAmount) external;
function pendingTokens(address user) external view returns (uint256 pending);
function rewardToken() external view returns (address);
}
// MasterChefUmami is a waifu. She says "onii chan, I'm gonna use timestamp instead".
// And to top it off, it takes no risks. Because the biggest risk is operator error.
// So we make it virtually impossible for the operator of this contract to cause a bug with people's harvests.
//
// Note that it's ownable and the owner wields tremendous power. The ownership
// will be transferred to a governance smart contract once ARB is sufficiently
// distributed and the community can show to govern itself.
contract MasterChefUmamiGmx is GlobalACL {
using SafeTransferLib for ERC20;
using EnumerableSet for EnumerableSet.AddressSet;
// Info of each user.
struct UserInfo {
uint256 amount; // How many LP tokens the user has provided.
uint256 rewardDebt; // Reward debt. See explanation below.
//
// We do some fancy math here. Basically, any point in time, the amount of ARB's
// entitled to a user but is pending to be distributed is:
//
// pending reward = (user.amount * pool.accOArbPerShare) - user.rewardDebt
//
// Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
// 1. The pool's `accOArbPerShare` (and `lastRewardTimestamp`) gets updated.
// 2. User receives the pending reward sent to his/her address.
// 3. User's `amount` gets updated.
// 4. User's `rewardDebt` gets updated.
}
// Info of each pool.
struct PoolInfo {
ERC20 lpToken; // Address of LP token contract.
uint256 allocPoint; // How many allocation points assigned to this pool. ARB to distribute per second.
uint256 lastRewardTimestamp; // Last timestamp that ARB distribution occurs.
uint256 accOArbPerShare; // Accumulated ARB per share, times 1e12. See below.
IRewarder rewarder;
}
// Arb Vault
ArbVaultGmx public arbVault;
// The ARB TOKEN!
ERC20 public ARB;
// Arb tokens vested per second.
uint256 public arbPerSec;
// Info of each pool.
PoolInfo[] public poolInfo;
// Set of all LP tokens that have been added as pools
EnumerableSet.AddressSet private lpTokens;
// Info of each user that stakes LP tokens.
mapping(uint256 => mapping(address => UserInfo)) public userInfo;
// Total allocation points. Must be the sum of all allocation points in all pools.
uint256 public totalAllocPoint;
// The timestamp when Arb mining starts.
uint256 public startTimestamp;
event Add(uint256 indexed pid, uint256 allocPoint, ERC20 indexed lpToken, IRewarder indexed rewarder);
event Set(uint256 indexed pid, uint256 allocPoint, IRewarder indexed rewarder, bool overwrite);
event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
event UpdatePool(uint256 indexed pid, uint256 lastRewardTimestamp, uint256 lpSupply, uint256 accOArbPerShare);
event Harvest(address indexed user, uint256 indexed pid, uint256 amount);
event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
event UpdateEmissionRate(address indexed user, uint256 _arbPerSec);
constructor(ERC20 _arb, ArbVaultGmx _arbVault, Auth _auth, uint256 _arbPerSec, uint256 _startTimestamp) GlobalACL(_auth) {
ARB = _arb;
arbVault = _arbVault;
arbPerSec = _arbPerSec;
startTimestamp = _startTimestamp;
totalAllocPoint = 0;
}
function poolLength() external view returns (uint256) {
return poolInfo.length;
}
function getPIdFromLP(address lp) external view returns (uint256) {
for (uint256 index = 0; index < poolInfo.length; index++) {
if (address(poolInfo[index].lpToken) == lp) {
return index;
}
}
return poolInfo.length;
}
// Add a new lp to the pool. Can only be called by the owner.
// XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
function add(uint256 _allocPoint, ERC20 _lpToken, IRewarder _rewarder) public onlyConfigurator {
require(MasterChefLib.isContract(address(_lpToken)), "add: LP token must be a valid contract");
require(
MasterChefLib.isContract(address(_rewarder)) || address(_rewarder) == address(0),
"add: rewarder must be contract or zero"
);
require(!lpTokens.contains(address(_lpToken)), "add: LP already added");
massUpdatePools();
uint256 lastRewardTimestamp = block.timestamp > startTimestamp ? block.timestamp : startTimestamp;
totalAllocPoint = totalAllocPoint + _allocPoint;
poolInfo.push(
PoolInfo({
lpToken: _lpToken,
allocPoint: _allocPoint,
lastRewardTimestamp: lastRewardTimestamp,
accOArbPerShare: 0,
rewarder: _rewarder
})
);
lpTokens.add(address(_lpToken));
emit Add(poolInfo.length - 1, _allocPoint, _lpToken, _rewarder);
}
// Update the given pool's arb allocation point. Can only be called by the owner.
function set(uint256 _pid, uint256 _allocPoint, IRewarder _rewarder, bool overwrite) public onlyConfigurator {
require(
MasterChefLib.isContract(address(_rewarder)) || address(_rewarder) == address(0),
"set: rewarder must be contract or zero"
);
massUpdatePools();
totalAllocPoint = totalAllocPoint - poolInfo[_pid].allocPoint + _allocPoint;
poolInfo[_pid].allocPoint = _allocPoint;
if (overwrite) {
poolInfo[_pid].rewarder = _rewarder;
}
emit Set(_pid, _allocPoint, overwrite ? _rewarder : poolInfo[_pid].rewarder, overwrite);
}
// View function to see pending arb on frontend.
function pendingTokens(uint256 _pid, address _user)
external
view
returns (
uint256 pendingOArb,
address bonusTokenAddress,
string memory bonusTokenSymbol,
uint256 pendingBonusToken
)
{
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accOArbPerShare = pool.accOArbPerShare;
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if (block.timestamp > pool.lastRewardTimestamp && lpSupply != 0) {
uint256 multiplier = block.timestamp - pool.lastRewardTimestamp;
uint256 oArbReward = (multiplier * arbPerSec * pool.allocPoint) / totalAllocPoint;
uint256 vaultBalance = ARB.balanceOf(address(arbVault));
if (oArbReward > vaultBalance) {
accOArbPerShare = accOArbPerShare + ((vaultBalance * 1e12) / lpSupply);
} else {
accOArbPerShare = accOArbPerShare + ((oArbReward * 1e12) / lpSupply);
}
}
pendingOArb = ((user.amount * accOArbPerShare) / 1e12) - user.rewardDebt;
// If it's a double reward farm, we return info about the bonus token
if (address(pool.rewarder) != address(0)) {
(bonusTokenAddress, bonusTokenSymbol) = rewarderBonusTokenInfo(_pid);
pendingBonusToken = pool.rewarder.pendingTokens(_user);
}
}
// Get bonus token info from the rewarder contract for a given pool, if it is a double reward farm
function rewarderBonusTokenInfo(uint256 _pid)
public
view
returns (address bonusTokenAddress, string memory bonusTokenSymbol)
{
PoolInfo storage pool = poolInfo[_pid];
if (address(pool.rewarder) != address(0)) {
bonusTokenAddress = address(pool.rewarder.rewardToken());
bonusTokenSymbol = ERC20(pool.rewarder.rewardToken()).symbol();
}
}
// Update reward variables for all pools. Be careful of gas spending!
function massUpdatePools() public {
uint256 length = poolInfo.length;
for (uint256 pid = 0; pid < length; ++pid) {
updatePool(pid);
}
}
// Update reward variables of the given pool to be up-to-date.
function updatePool(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
if (block.timestamp <= pool.lastRewardTimestamp) {
return;
}
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if (lpSupply == 0) {
pool.lastRewardTimestamp = block.timestamp;
return;
}
uint256 multiplier = block.timestamp - pool.lastRewardTimestamp;
uint256 oArbReward = (multiplier * arbPerSec * pool.allocPoint) / totalAllocPoint;
oArbReward = arbVault.vestArb(address(this), oArbReward);
pool.accOArbPerShare = pool.accOArbPerShare + ((oArbReward * 1e12) / lpSupply);
pool.lastRewardTimestamp = block.timestamp;
emit UpdatePool(_pid, pool.lastRewardTimestamp, lpSupply, pool.accOArbPerShare);
}
// Deposit LP tokens to MasterChef for ARB allocation.
function deposit(uint256 _pid, uint256 _amount) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
updatePool(_pid);
if (user.amount > 0) {
// Harvest ARB
uint256 pending = ((user.amount * pool.accOArbPerShare) / 1e12) - user.rewardDebt;
safeArbTransfer(msg.sender, pending);
emit Harvest(msg.sender, _pid, pending);
}
user.amount = user.amount + _amount;
user.rewardDebt = (user.amount * pool.accOArbPerShare) / 1e12;
IRewarder rewarder = poolInfo[_pid].rewarder;
if (address(rewarder) != address(0)) {
rewarder.onOArbReward(msg.sender, user.amount);
}
pool.lpToken.safeTransferFrom(msg.sender, address(this), _amount);
emit Deposit(msg.sender, _pid, _amount);
}
// Withdraw LP tokens from MasterChef.
function withdraw(uint256 _pid, uint256 _amount) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
require(user.amount >= _amount, "withdraw: !_amount not available");
updatePool(_pid);
// Harvest ARB
uint256 pending = ((user.amount * pool.accOArbPerShare) / 1e12) - user.rewardDebt;
safeArbTransfer(msg.sender, pending);
emit Harvest(msg.sender, _pid, pending);
user.amount = user.amount - _amount;
user.rewardDebt = (user.amount * pool.accOArbPerShare) / 1e12;
IRewarder rewarder = poolInfo[_pid].rewarder;
if (address(rewarder) != address(0)) {
rewarder.onOArbReward(msg.sender, user.amount);
}
pool.lpToken.safeTransfer(msg.sender, _amount);
emit Withdraw(msg.sender, _pid, _amount);
}
// Withdraw without caring about rewards. EMERGENCY ONLY.
function emergencyWithdraw(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
uint256 amount = user.amount;
user.amount = 0;
user.rewardDebt = 0;
IRewarder _rewarder = pool.rewarder;
if (address(_rewarder) != address(0)) {
_rewarder.onOArbReward(msg.sender, 0);
}
// Note: transfer can fail or succeed if `amount` is zero.
pool.lpToken.safeTransfer(msg.sender, amount);
emit EmergencyWithdraw(msg.sender, _pid, amount);
}
// Safe ARB transfer function, just in case if rounding error causes pool to not have enough ARB.
function safeArbTransfer(address _to, uint256 _amount) internal {
uint256 oArbBal = ARB.balanceOf(address(this));
if (_amount > oArbBal) {
ARB.transfer(_to, oArbBal);
} else {
ARB.transfer(_to, _amount);
}
}
// Pancake has to add hidden dummy pools inorder to alter the emission,
// here we make it simple and transparent to all.
function updateEmissionRate(uint256 _arbPerSec) public onlyConfigurator {
massUpdatePools();
arbPerSec = _arbPerSec;
emit UpdateEmissionRate(msg.sender, _arbPerSec);
}
// collects all pending rewards
function collectAllPoolRewards() public {
for (uint256 _pid = 0; _pid < poolInfo.length; _pid++) {
updatePool(_pid);
PoolInfo memory pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
if (user.amount > 0) {
// Harvest ARB
uint256 pending = ((user.amount * pool.accOArbPerShare) / 1e12) - user.rewardDebt;
safeArbTransfer(msg.sender, pending);
emit Harvest(msg.sender, _pid, pending);
}
user.rewardDebt = (user.amount * pool.accOArbPerShare) / 1e12;
IRewarder rewarder = poolInfo[_pid].rewarder;
if (address(rewarder) != address(0)) {
rewarder.onOArbReward(msg.sender, user.amount);
}
}
}
function retriveToken(ERC20 token, address account, uint256 amount) external onlyConfigurator {
token.safeTransfer(account, amount);
}
}// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;
import {ERC20} from "../tokens/ERC20.sol";
/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer.
/// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller.
library SafeTransferLib {
/*//////////////////////////////////////////////////////////////
ETH OPERATIONS
//////////////////////////////////////////////////////////////*/
function safeTransferETH(address to, uint256 amount) internal {
bool success;
/// @solidity memory-safe-assembly
assembly {
// Transfer the ETH and store if it succeeded or not.
success := call(gas(), to, amount, 0, 0, 0, 0)
}
require(success, "ETH_TRANSFER_FAILED");
}
/*//////////////////////////////////////////////////////////////
ERC20 OPERATIONS
//////////////////////////////////////////////////////////////*/
function safeTransferFrom(
ERC20 token,
address from,
address to,
uint256 amount
) internal {
bool success;
/// @solidity memory-safe-assembly
assembly {
// Get a pointer to some free memory.
let freeMemoryPointer := mload(0x40)
// Write the abi-encoded calldata into memory, beginning with the function selector.
mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000)
mstore(add(freeMemoryPointer, 4), and(from, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "from" argument.
mstore(add(freeMemoryPointer, 36), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "to" argument.
mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument. Masking not required as it's a full 32 byte type.
success := and(
// Set success to whether the call reverted, if not we check it either
// returned exactly 1 (can't just be non-zero data), or had no return data.
or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
// We use 100 because the length of our calldata totals up like so: 4 + 32 * 3.
// We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
// Counterintuitively, this call must be positioned second to the or() call in the
// surrounding and() call or else returndatasize() will be zero during the computation.
call(gas(), token, 0, freeMemoryPointer, 100, 0, 32)
)
}
require(success, "TRANSFER_FROM_FAILED");
}
function safeTransfer(
ERC20 token,
address to,
uint256 amount
) internal {
bool success;
/// @solidity memory-safe-assembly
assembly {
// Get a pointer to some free memory.
let freeMemoryPointer := mload(0x40)
// Write the abi-encoded calldata into memory, beginning with the function selector.
mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)
mstore(add(freeMemoryPointer, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "to" argument.
mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. Masking not required as it's a full 32 byte type.
success := and(
// Set success to whether the call reverted, if not we check it either
// returned exactly 1 (can't just be non-zero data), or had no return data.
or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
// We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
// We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
// Counterintuitively, this call must be positioned second to the or() call in the
// surrounding and() call or else returndatasize() will be zero during the computation.
call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
)
}
require(success, "TRANSFER_FAILED");
}
function safeApprove(
ERC20 token,
address to,
uint256 amount
) internal {
bool success;
/// @solidity memory-safe-assembly
assembly {
// Get a pointer to some free memory.
let freeMemoryPointer := mload(0x40)
// Write the abi-encoded calldata into memory, beginning with the function selector.
mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000)
mstore(add(freeMemoryPointer, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "to" argument.
mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. Masking not required as it's a full 32 byte type.
success := and(
// Set success to whether the call reverted, if not we check it either
// returned exactly 1 (can't just be non-zero data), or had no return data.
or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
// We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
// We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
// Counterintuitively, this call must be positioned second to the or() call in the
// surrounding and() call or else returndatasize() will be zero during the computation.
call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
)
}
require(success, "APPROVE_FAILED");
}
}// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;
/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
abstract contract ERC20 {
/*//////////////////////////////////////////////////////////////
EVENTS
//////////////////////////////////////////////////////////////*/
event Transfer(address indexed from, address indexed to, uint256 amount);
event Approval(address indexed owner, address indexed spender, uint256 amount);
/*//////////////////////////////////////////////////////////////
METADATA STORAGE
//////////////////////////////////////////////////////////////*/
string public name;
string public symbol;
uint8 public immutable decimals;
/*//////////////////////////////////////////////////////////////
ERC20 STORAGE
//////////////////////////////////////////////////////////////*/
uint256 public totalSupply;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
/*//////////////////////////////////////////////////////////////
EIP-2612 STORAGE
//////////////////////////////////////////////////////////////*/
uint256 internal immutable INITIAL_CHAIN_ID;
bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;
mapping(address => uint256) public nonces;
/*//////////////////////////////////////////////////////////////
CONSTRUCTOR
//////////////////////////////////////////////////////////////*/
constructor(
string memory _name,
string memory _symbol,
uint8 _decimals
) {
name = _name;
symbol = _symbol;
decimals = _decimals;
INITIAL_CHAIN_ID = block.chainid;
INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
}
/*//////////////////////////////////////////////////////////////
ERC20 LOGIC
//////////////////////////////////////////////////////////////*/
function approve(address spender, uint256 amount) public virtual returns (bool) {
allowance[msg.sender][spender] = amount;
emit Approval(msg.sender, spender, amount);
return true;
}
function transfer(address to, uint256 amount) public virtual returns (bool) {
balanceOf[msg.sender] -= amount;
// Cannot overflow because the sum of all user
// balances can't exceed the max uint256 value.
unchecked {
balanceOf[to] += amount;
}
emit Transfer(msg.sender, to, amount);
return true;
}
function transferFrom(
address from,
address to,
uint256 amount
) public virtual returns (bool) {
uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals.
if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount;
balanceOf[from] -= amount;
// Cannot overflow because the sum of all user
// balances can't exceed the max uint256 value.
unchecked {
balanceOf[to] += amount;
}
emit Transfer(from, to, amount);
return true;
}
/*//////////////////////////////////////////////////////////////
EIP-2612 LOGIC
//////////////////////////////////////////////////////////////*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) public virtual {
require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");
// Unchecked because the only math done is incrementing
// the owner's nonce which cannot realistically overflow.
unchecked {
address recoveredAddress = ecrecover(
keccak256(
abi.encodePacked(
"\x19\x01",
DOMAIN_SEPARATOR(),
keccak256(
abi.encode(
keccak256(
"Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
),
owner,
spender,
value,
nonces[owner]++,
deadline
)
)
)
),
v,
r,
s
);
require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");
allowance[recoveredAddress][spender] = value;
}
emit Approval(owner, spender, value);
}
function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
}
function computeDomainSeparator() internal view virtual returns (bytes32) {
return
keccak256(
abi.encode(
keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
keccak256(bytes(name)),
keccak256("1"),
block.chainid,
address(this)
)
);
}
/*//////////////////////////////////////////////////////////////
INTERNAL MINT/BURN LOGIC
//////////////////////////////////////////////////////////////*/
function _mint(address to, uint256 amount) internal virtual {
totalSupply += amount;
// Cannot overflow because the sum of all user
// balances can't exceed the max uint256 value.
unchecked {
balanceOf[to] += amount;
}
emit Transfer(address(0), to, amount);
}
function _burn(address from, uint256 amount) internal virtual {
balanceOf[from] -= amount;
// Cannot underflow because a user's balance
// will never be larger than the total supply.
unchecked {
totalSupply -= amount;
}
emit Transfer(from, address(0), amount);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.
pragma solidity ^0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```solidity
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [WARNING]
* ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
* unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
*
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
* array of EnumerableSet.
* ====
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping(bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
if (lastIndex != toDeleteIndex) {
bytes32 lastValue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastValue;
// Update the index for the moved value
set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
bytes32[] memory store = _values(set._inner);
bytes32[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}pragma solidity 0.8.17;
bytes32 constant CONFIGURATOR_ROLE = keccak256("CONFIGURATOR");
bytes32 constant CONTROLLER = keccak256("CONTROLLER");
bytes32 constant VESTER = keccak256("VESTER");
/// @title Auth
/// @author Umami Developers
/// @notice Simple centralized ACL
contract Auth {
/// @dev user not authorized with given role
error NotAuthorized(bytes32 _role, address _user);
event RoleUpdated(bytes32 indexed role, address indexed user, bool authorized);
bytes32 public constant AUTH_MANAGER_ROLE = keccak256("AUTH_MANAGER");
mapping(bytes32 => mapping(address => bool)) public hasRole;
constructor() {
_updateRole(msg.sender, AUTH_MANAGER_ROLE, true);
}
function updateRole(address _user, bytes32 _role, bool _authorized) external {
onlyRole(AUTH_MANAGER_ROLE, msg.sender);
_updateRole(_user, _role, _authorized);
}
function onlyRole(bytes32 _role, address _user) public view {
if (!hasRole[_role][_user]) {
revert NotAuthorized(_role, _user);
}
}
function _updateRole(address _user, bytes32 _role, bool _authorized) internal {
hasRole[_role][_user] = _authorized;
emit RoleUpdated(_role, _user, _authorized);
}
}
abstract contract GlobalACL {
Auth public immutable AUTH;
constructor(Auth _auth) {
require(address(_auth) != address(0), "GlobalACL: zero address");
AUTH = _auth;
}
modifier onlyConfigurator() {
AUTH.onlyRole(CONFIGURATOR_ROLE, msg.sender);
_;
}
modifier onlyController() {
AUTH.onlyRole(CONTROLLER, msg.sender);
_;
}
modifier onlyRole(bytes32 _role) {
AUTH.onlyRole(_role, msg.sender);
_;
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.17;
/// @title MasterChefLib
library MasterChefLib {
function isContract(address account) internal view returns (bool) {
return account.code.length > 0;
}
}// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.17;
import { GlobalACL, Auth, VESTER } from "./Auth.sol";
import { SafeTransferLib } from "@solmate/utils/SafeTransferLib.sol";
import { ERC20 } from "@solmate/tokens/ERC20.sol";
import { ARB } from "./constants.sol";
contract ArbVaultGmx is GlobalACL {
using SafeTransferLib for ERC20;
constructor(Auth _auth) GlobalACL(_auth) { }
function vestArb(address account, uint256 amount) external onlyRole(VESTER) returns (uint256) {
uint256 arbBalance = ERC20(ARB).balanceOf(address(this));
if (amount > arbBalance) {
ERC20(ARB).safeTransfer(account, arbBalance);
return arbBalance;
} else {
ERC20(ARB).safeTransfer(account, amount);
return amount;
}
}
function transferToken(ERC20 token, address account, uint256 amount) external onlyConfigurator {
token.safeTransfer(account, amount);
}
}pragma solidity 0.8.17;
import { ERC20 } from "@solmate/tokens/ERC20.sol";
address constant ARB = 0x912CE59144191C1204E64559FE8253a0e49E6548;
address constant WETH = 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1;
ERC20 constant glpUSDC = ERC20(0x727eD4eF04bB2a96Ec77e44C1a91dbB01B605e42);
ERC20 constant glpWETH = ERC20(0xbb84D79159D6bBE1DE148Dc82640CaA677e06126);
ERC20 constant glpWBTC = ERC20(0x6a89FaF99587a12E6bB0351F2fA9006c6Cd12257);
ERC20 constant glpLINK = ERC20(0xe0A21a475f8DA0ee7FA5af8C1809D8AC5257607d);
ERC20 constant glpUNI = ERC20(0x37c0705A65948EA5e0Ae1aDd13552BCaD7711A23);
ERC20 constant glpUSDCb = ERC20(0xdCa4e88C00a8800ebcebaD63aBDBAAaa755557f9);
ERC20 constant glpWETHb = ERC20(0xf2aD33E12A9780f1E42d878A29A3e0756008c838);
ERC20 constant glpWBTCb = ERC20(0x83C19EC75d649aeC7c99e2C6663cA055569da7C0);
ERC20 constant glpLINKb = ERC20(0xB0d9e1832BD973aBd8f3b4D710eAd21FcbEfcb7C);
ERC20 constant glpUNIb = ERC20(0xEE57E7E3776e4868976F315E07A883955c9225d5);
address constant TREASURY = 0x8E52cA5A7a9249431F03d60D79DDA5EAB4930178;{
"remappings": [
"@openzeppelin/=lib/openzeppelin-contracts/",
"@solady/=lib/solady/src/",
"@solmate/=lib/solmate/src/",
"ds-test/=lib/forge-std/lib/ds-test/src/",
"forge-std/=lib/forge-std/src/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
"openzeppelin/=lib/openzeppelin-contracts/contracts/",
"solady/=lib/solady/src/",
"solmate/=lib/solmate/src/"
],
"optimizer": {
"enabled": true,
"runs": 888
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "london",
"libraries": {
"gmx-synthetics/gas/GasUtils.sol": {
"GasUtils": "0x3d0453036F3e39FF9384F0e1c8a59B17e05277d0"
},
"gmx-synthetics/market/MarketUtils.sol": {
"MarketUtils": "0xEcDF2cE74e19D4921Cc89fEfb963D35E0E5171D3"
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract ERC20","name":"_arb","type":"address"},{"internalType":"contract ArbVaultGmx","name":"_arbVault","type":"address"},{"internalType":"contract Auth","name":"_auth","type":"address"},{"internalType":"uint256","name":"_arbPerSec","type":"uint256"},{"internalType":"uint256","name":"_startTimestamp","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":true,"internalType":"contract ERC20","name":"lpToken","type":"address"},{"indexed":true,"internalType":"contract IRewarder","name":"rewarder","type":"address"}],"name":"Add","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":true,"internalType":"contract IRewarder","name":"rewarder","type":"address"},{"indexed":false,"internalType":"bool","name":"overwrite","type":"bool"}],"name":"Set","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_arbPerSec","type":"uint256"}],"name":"UpdateEmissionRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastRewardTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accOArbPerShare","type":"uint256"}],"name":"UpdatePool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"ARB","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AUTH","outputs":[{"internalType":"contract Auth","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract ERC20","name":"_lpToken","type":"address"},{"internalType":"contract IRewarder","name":"_rewarder","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"arbPerSec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"arbVault","outputs":[{"internalType":"contract ArbVaultGmx","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectAllPoolRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"lp","type":"address"}],"name":"getPIdFromLP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingTokens","outputs":[{"internalType":"uint256","name":"pendingOArb","type":"uint256"},{"internalType":"address","name":"bonusTokenAddress","type":"address"},{"internalType":"string","name":"bonusTokenSymbol","type":"string"},{"internalType":"uint256","name":"pendingBonusToken","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract ERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTimestamp","type":"uint256"},{"internalType":"uint256","name":"accOArbPerShare","type":"uint256"},{"internalType":"contract IRewarder","name":"rewarder","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"retriveToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"rewarderBonusTokenInfo","outputs":[{"internalType":"address","name":"bonusTokenAddress","type":"address"},{"internalType":"string","name":"bonusTokenSymbol","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IRewarder","name":"_rewarder","type":"address"},{"internalType":"bool","name":"overwrite","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_arbPerSec","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a06040523480156200001157600080fd5b50604051620022d0380380620022d08339810160408190526200003491620000ef565b826001600160a01b038116620000905760405162461bcd60e51b815260206004820152601760248201527f476c6f62616c41434c3a207a65726f2061646472657373000000000000000000604482015260640160405180910390fd5b6001600160a01b03908116608052600180549682166001600160a01b03199788161790556000805495909116949095169390931784556002555060085560075562000154565b6001600160a01b0381168114620000ec57600080fd5b50565b600080600080600060a086880312156200010857600080fd5b85516200011581620000d6565b60208701519095506200012881620000d6565b60408701519094506200013b81620000d6565b6060870151608090970151959894975095949392505050565b6080516121446200018c600039600081816101a3015281816103e801528181610d0401528181610f6f01526114e301526121446000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c8063630b5ba1116100d8578063ab7de0981161008c578063e2bbb15811610066578063e2bbb1581461036e578063e6fd48bc14610381578063ffcd42631461038a57600080fd5b8063ab7de09814610327578063bc70fdbc1461033a578063c772955d1461035b57600080fd5b806374b00c00116100bd57806374b00c00146102c457806388bba42f146102cd57806393f1a40b146102e057600080fd5b8063630b5ba1146102a957806364a285fd146102b157600080fd5b806317caf6f11161013a57806351eb05a61161011457806351eb05a6146102705780635312ea8e146102835780636223f1b41461029657600080fd5b806317caf6f11461024c5780633df9687914610255578063441a3e701461025d57600080fd5b80630ba84cd21161016b5780630ba84cd2146101dd57806313e60ace146101f25780631526fe271461020557600080fd5b8063081e3eda146101875780630a5623fb1461019e575b600080fd5b6003545b6040519081526020015b60405180910390f35b6101c57f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610195565b6101f06101eb366004611d22565b6103ad565b005b6000546101c5906001600160a01b031681565b610218610213366004611d22565b61048f565b604080516001600160a01b03968716815260208101959095528401929092526060830152909116608082015260a001610195565b61018b60075481565b6101f06104dd565b6101f061026b366004611d3b565b6106d3565b6101f061027e366004611d22565b610912565b6101f0610291366004611d22565b610b1a565b61018b6102a4366004611d72565b610c32565b6101f0610c9e565b6001546101c5906001600160a01b031681565b61018b60025481565b6101f06102db366004611da4565b610cc9565b6103126102ee366004611dee565b60066020908152600092835260408084209091529082529020805460019091015482565b60408051928352602083019190915201610195565b6101f0610335366004611e1e565b610f34565b61034d610348366004611d22565b6112fa565b604051610195929190611eb0565b6101f0610369366004611eda565b6114a8565b6101f061037c366004611d3b565b61155f565b61018b60085481565b61039d610398366004611dee565b611747565b6040516101959493929190611f1b565b6040516346ea9cc560e01b81527f530008d2b058137d9c475b1b7d83984f1fcf1dd0e607659d029fc1517ab8926860048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906346ea9cc59060440160006040518083038186803b15801561043257600080fd5b505afa158015610446573d6000803e3d6000fd5b50505050610452610c9e565b600281905560405181815233907fe2492e003bbe8afa53088b406f0c1cb5d9e280370fc72a74cf116ffd343c40539060200160405180910390a250565b6003818154811061049f57600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0393841695509193909290911685565b60005b6003548110156106d0576104f381610912565b60006003828154811061050857610508611f54565b600091825260208083206040805160a081018252600590940290910180546001600160a01b0390811685526001820154858501526002820154858401526003820154606086015260049091015416608084015285845260068252808420338552909152909120805491925090156105f3576000816001015464e8d4a510008460600151846000015461059a9190611f80565b6105a49190611f97565b6105ae9190611fb9565b90506105ba3382611a1c565b604051818152849033907f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549060200160405180910390a3505b6060820151815464e8d4a510009161060a91611f80565b6106149190611f97565b816001018190555060006003848154811061063157610631611f54565b60009182526020909120600460059092020101546001600160a01b0316905080156106ba5781546040516377cc7f2160e11b815233600482015260248101919091526001600160a01b0382169063ef98fe4290604401600060405180830381600087803b1580156106a157600080fd5b505af11580156106b5573d6000803e3d6000fd5b505050505b50505080806106c890611fcc565b9150506104e0565b50565b6000600383815481106106e8576106e8611f54565b6000918252602080832086845260068252604080852033865290925292208054600590920290920192508311156107665760405162461bcd60e51b815260206004820181905260248201527f77697468647261773a20215f616d6f756e74206e6f7420617661696c61626c6560448201526064015b60405180910390fd5b61076f84610912565b6000816001015464e8d4a51000846003015484600001546107909190611f80565b61079a9190611f97565b6107a49190611fb9565b90506107b03382611a1c565b604051818152859033907f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549060200160405180910390a381546107f4908590611fb9565b808355600384015464e8d4a510009161080d9190611f80565b6108179190611f97565b826001018190555060006003868154811061083457610834611f54565b60009182526020909120600460059092020101546001600160a01b0316905080156108bd5782546040516377cc7f2160e11b815233600482015260248101919091526001600160a01b0382169063ef98fe4290604401600060405180830381600087803b1580156108a457600080fd5b505af11580156108b8573d6000803e3d6000fd5b505050505b83546108d3906001600160a01b03163387611b4a565b604051858152869033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a3505050505050565b60006003828154811061092757610927611f54565b9060005260206000209060050201905080600201544211610946575050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561098e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b29190611fe5565b9050806000036109c757504260029091015550565b60008260020154426109d99190611fb9565b905060006007548460010154600254846109f39190611f80565b6109fd9190611f80565b610a079190611f97565b6000546040517f23274710000000000000000000000000000000000000000000000000000000008152306004820152602481018390529192506001600160a01b0316906323274710906044016020604051808303816000875af1158015610a72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a969190611fe5565b905082610aa88264e8d4a51000611f80565b610ab29190611f97565b8460030154610ac19190611ffe565b600385018190554260028601819055604080519182526020820186905281019190915285907f3be3541fc42237d611b30329040bfa4569541d156560acdbbae57640d20b8f469060600160405180910390a25050505050565b600060038281548110610b2f57610b2f611f54565b60009182526020808320858452600682526040808520338652909252908320805484825560018201949094556005929092020160048101549093509091906001600160a01b03168015610bdd576040516377cc7f2160e11b8152336004820152600060248201526001600160a01b0382169063ef98fe4290604401600060405180830381600087803b158015610bc457600080fd5b505af1158015610bd8573d6000803e3d6000fd5b505050505b8354610bf3906001600160a01b03163384611b4a565b604051828152859033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595906020015b60405180910390a35050505050565b6000805b600354811015610c9457826001600160a01b031660038281548110610c5d57610c5d611f54565b60009182526020909120600590910201546001600160a01b031603610c825792915050565b80610c8c81611fcc565b915050610c36565b5050600354919050565b60035460005b81811015610cc557610cb581610912565b610cbe81611fcc565b9050610ca4565b5050565b6040516346ea9cc560e01b81527f530008d2b058137d9c475b1b7d83984f1fcf1dd0e607659d029fc1517ab8926860048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906346ea9cc59060440160006040518083038186803b158015610d4e57600080fd5b505afa158015610d62573d6000803e3d6000fd5b505050506001600160a01b0382163b151580610d8557506001600160a01b038216155b610de05760405162461bcd60e51b815260206004820152602660248201527f7365743a207265776172646572206d75737420626520636f6e7472616374206f60448201526572207a65726f60d01b606482015260840161075d565b610de8610c9e565b8260038581548110610dfc57610dfc611f54565b906000526020600020906005020160010154600754610e1b9190611fb9565b610e259190611ffe565b6007819055508260038581548110610e3f57610e3f611f54565b9060005260206000209060050201600101819055508015610ea4578160038581548110610e6e57610e6e611f54565b906000526020600020906005020160040160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b80610ede5760038481548110610ebc57610ebc611f54565b60009182526020909120600460059092020101546001600160a01b0316610ee0565b815b6001600160a01b0316847fa54644aae5c48c5971516f334e4fe8ecbc7930e23f34877d4203c6551e67ffaa8584604051610f269291909182521515602082015260400190565b60405180910390a350505050565b6040516346ea9cc560e01b81527f530008d2b058137d9c475b1b7d83984f1fcf1dd0e607659d029fc1517ab8926860048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906346ea9cc59060440160006040518083038186803b158015610fb957600080fd5b505afa158015610fcd573d6000803e3d6000fd5b505050506001600160a01b0382163b61104e5760405162461bcd60e51b815260206004820152602660248201527f6164643a204c5020746f6b656e206d75737420626520612076616c696420636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161075d565b6001600160a01b0381163b15158061106d57506001600160a01b038116155b6110c85760405162461bcd60e51b815260206004820152602660248201527f6164643a207265776172646572206d75737420626520636f6e7472616374206f60448201526572207a65726f60d01b606482015260840161075d565b6110d3600483611bd9565b156111205760405162461bcd60e51b815260206004820152601560248201527f6164643a204c5020616c72656164792061646465640000000000000000000000604482015260640161075d565b611128610c9e565b6000600854421161113b5760085461113d565b425b90508360075461114d9190611ffe565b6007556040805160a0810182526001600160a01b038581168252602082018781529282018481526000606084018181528784166080860190815260038054600181018255935294517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b600590930292830180547fffffffffffffffffffffffff000000000000000000000000000000000000000090811692871692909217905595517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c83015591517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d82015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e82015591517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85f9092018054909316911617905561129a600484611c00565b50816001600160a01b0316836001600160a01b031660016003805490506112c19190611fb9565b6040518781527f4b16bd2431ad24dc020ab0e1de7fcb6563dead6a24fb10089d6c23e97a70381f9060200160405180910390a450505050565b6000606060006003848154811061131357611313611f54565b6000918252602090912060059091020160048101549091506001600160a01b0316156114a257600480820154604080517ff7c618c100000000000000000000000000000000000000000000000000000000815290516001600160a01b039092169263f7c618c19282820192602092908290030181865afa15801561139b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bf9190612011565b92508060040160009054906101000a90046001600160a01b03166001600160a01b031663f7c618c16040518163ffffffff1660e01b8152600401602060405180830381865afa158015611416573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143a9190612011565b6001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015611477573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261149f9190810190612044565b91505b50915091565b6040516346ea9cc560e01b81527f530008d2b058137d9c475b1b7d83984f1fcf1dd0e607659d029fc1517ab8926860048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906346ea9cc59060440160006040518083038186803b15801561152d57600080fd5b505afa158015611541573d6000803e3d6000fd5b5061155a925050506001600160a01b0384168383611b4a565b505050565b60006003838154811061157457611574611f54565b600091825260208083208684526006825260408085203386529092529220600590910290910191506115a584610912565b805415611626576000816001015464e8d4a51000846003015484600001546115cd9190611f80565b6115d79190611f97565b6115e19190611fb9565b90506115ed3382611a1c565b604051818152859033907f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549060200160405180910390a3505b8054611633908490611ffe565b808255600383015464e8d4a510009161164c9190611f80565b6116569190611f97565b816001018190555060006003858154811061167357611673611f54565b60009182526020909120600460059092020101546001600160a01b0316905080156116fc5781546040516377cc7f2160e11b815233600482015260248101919091526001600160a01b0382169063ef98fe4290604401600060405180830381600087803b1580156116e357600080fd5b505af11580156116f7573d6000803e3d6000fd5b505050505b8254611713906001600160a01b0316333087611c15565b604051848152859033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1590602001610c23565b60008060606000806003878154811061176257611762611f54565b600091825260208083208a84526006825260408085206001600160a01b038c8116875293528085206005949094029091016003810154815492516370a0823160e01b815230600482015291965093949291909116906370a0823190602401602060405180830381865afa1580156117dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118019190611fe5565b905083600201544211801561181557508015155b1561193057600084600201544261182c9190611fb9565b905060006007548660010154600254846118469190611f80565b6118509190611f80565b61185a9190611f97565b600154600080546040516370a0823160e01b81526001600160a01b03918216600482015293945090929116906370a0823190602401602060405180830381865afa1580156118ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d09190611fe5565b90508082111561190557836118ea8264e8d4a51000611f80565b6118f49190611f97565b6118fe9086611ffe565b945061192c565b836119158364e8d4a51000611f80565b61191f9190611f97565b6119299086611ffe565b94505b5050505b6001830154835464e8d4a5100090611949908590611f80565b6119539190611f97565b61195d9190611fb9565b60048501549098506001600160a01b031615611a0f5761197c8a6112fa565b6004868101546040517fc031a66f0000000000000000000000000000000000000000000000000000000081526001600160a01b038e811693820193909352939a50919850169063c031a66f90602401602060405180830381865afa1580156119e8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0c9190611fe5565b94505b5050505092959194509250565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611a65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a899190611fe5565b905080821115611b115760015460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018490529091169063a9059cbb906044015b6020604051808303816000875af1158015611ae7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b0b91906120f1565b50505050565b60015460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529091169063a9059cbb90604401611ac8565b600060405163a9059cbb60e01b81526001600160a01b0384166004820152826024820152602060006044836000895af13d15601f3d1160016000511416171691505080611b0b5760405162461bcd60e51b815260206004820152600f60248201527f5452414e534645525f4641494c45440000000000000000000000000000000000604482015260640161075d565b6001600160a01b038116600090815260018301602052604081205415155b90505b92915050565b6000611bf7836001600160a01b038416611cd3565b60006040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b03851660048201526001600160a01b03841660248201528260448201526020600060648360008a5af13d15601f3d1160016000511416171691505080611ccc5760405162461bcd60e51b815260206004820152601460248201527f5452414e534645525f46524f4d5f4641494c4544000000000000000000000000604482015260640161075d565b5050505050565b6000818152600183016020526040812054611d1a57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611bfa565b506000611bfa565b600060208284031215611d3457600080fd5b5035919050565b60008060408385031215611d4e57600080fd5b50508035926020909101359150565b6001600160a01b03811681146106d057600080fd5b600060208284031215611d8457600080fd5b8135611d8f81611d5d565b9392505050565b80151581146106d057600080fd5b60008060008060808587031215611dba57600080fd5b84359350602085013592506040850135611dd381611d5d565b91506060850135611de381611d96565b939692955090935050565b60008060408385031215611e0157600080fd5b823591506020830135611e1381611d5d565b809150509250929050565b600080600060608486031215611e3357600080fd5b833592506020840135611e4581611d5d565b91506040840135611e5581611d5d565b809150509250925092565b60005b83811015611e7b578181015183820152602001611e63565b50506000910152565b60008151808452611e9c816020860160208601611e60565b601f01601f19169290920160200192915050565b6001600160a01b0383168152604060208201526000611ed26040830184611e84565b949350505050565b600080600060608486031215611eef57600080fd5b8335611efa81611d5d565b92506020840135611f0a81611d5d565b929592945050506040919091013590565b8481526001600160a01b0384166020820152608060408201526000611f436080830185611e84565b905082606083015295945050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611bfa57611bfa611f6a565b600082611fb457634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115611bfa57611bfa611f6a565b600060018201611fde57611fde611f6a565b5060010190565b600060208284031215611ff757600080fd5b5051919050565b80820180821115611bfa57611bfa611f6a565b60006020828403121561202357600080fd5b8151611d8f81611d5d565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561205657600080fd5b815167ffffffffffffffff8082111561206e57600080fd5b818401915084601f83011261208257600080fd5b8151818111156120945761209461202e565b604051601f8201601f19908116603f011681019083821181831017156120bc576120bc61202e565b816040528281528760208487010111156120d557600080fd5b6120e6836020830160208801611e60565b979650505050505050565b60006020828403121561210357600080fd5b8151611d8f81611d9656fea26469706673582212200291c09664d5a5dc6519791e21d9bcbc61e3b4901d5879484bafd7924ed3439064736f6c63430008110033000000000000000000000000912ce59144191c1204e64559fe8253a0e49e65480000000000000000000000002bcc4440ca70703e54e41791e5c402e66f7e1966000000000000000000000000ca5c135a7e6823b01c760ac2c5a52ce0d8fefbd60000000000000000000000000000000000000000000000000023729eaf84fb000000000000000000000000000000000000000000000000000000000065badf00
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101825760003560e01c8063630b5ba1116100d8578063ab7de0981161008c578063e2bbb15811610066578063e2bbb1581461036e578063e6fd48bc14610381578063ffcd42631461038a57600080fd5b8063ab7de09814610327578063bc70fdbc1461033a578063c772955d1461035b57600080fd5b806374b00c00116100bd57806374b00c00146102c457806388bba42f146102cd57806393f1a40b146102e057600080fd5b8063630b5ba1146102a957806364a285fd146102b157600080fd5b806317caf6f11161013a57806351eb05a61161011457806351eb05a6146102705780635312ea8e146102835780636223f1b41461029657600080fd5b806317caf6f11461024c5780633df9687914610255578063441a3e701461025d57600080fd5b80630ba84cd21161016b5780630ba84cd2146101dd57806313e60ace146101f25780631526fe271461020557600080fd5b8063081e3eda146101875780630a5623fb1461019e575b600080fd5b6003545b6040519081526020015b60405180910390f35b6101c57f000000000000000000000000ca5c135a7e6823b01c760ac2c5a52ce0d8fefbd681565b6040516001600160a01b039091168152602001610195565b6101f06101eb366004611d22565b6103ad565b005b6000546101c5906001600160a01b031681565b610218610213366004611d22565b61048f565b604080516001600160a01b03968716815260208101959095528401929092526060830152909116608082015260a001610195565b61018b60075481565b6101f06104dd565b6101f061026b366004611d3b565b6106d3565b6101f061027e366004611d22565b610912565b6101f0610291366004611d22565b610b1a565b61018b6102a4366004611d72565b610c32565b6101f0610c9e565b6001546101c5906001600160a01b031681565b61018b60025481565b6101f06102db366004611da4565b610cc9565b6103126102ee366004611dee565b60066020908152600092835260408084209091529082529020805460019091015482565b60408051928352602083019190915201610195565b6101f0610335366004611e1e565b610f34565b61034d610348366004611d22565b6112fa565b604051610195929190611eb0565b6101f0610369366004611eda565b6114a8565b6101f061037c366004611d3b565b61155f565b61018b60085481565b61039d610398366004611dee565b611747565b6040516101959493929190611f1b565b6040516346ea9cc560e01b81527f530008d2b058137d9c475b1b7d83984f1fcf1dd0e607659d029fc1517ab8926860048201523360248201527f000000000000000000000000ca5c135a7e6823b01c760ac2c5a52ce0d8fefbd66001600160a01b0316906346ea9cc59060440160006040518083038186803b15801561043257600080fd5b505afa158015610446573d6000803e3d6000fd5b50505050610452610c9e565b600281905560405181815233907fe2492e003bbe8afa53088b406f0c1cb5d9e280370fc72a74cf116ffd343c40539060200160405180910390a250565b6003818154811061049f57600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0393841695509193909290911685565b60005b6003548110156106d0576104f381610912565b60006003828154811061050857610508611f54565b600091825260208083206040805160a081018252600590940290910180546001600160a01b0390811685526001820154858501526002820154858401526003820154606086015260049091015416608084015285845260068252808420338552909152909120805491925090156105f3576000816001015464e8d4a510008460600151846000015461059a9190611f80565b6105a49190611f97565b6105ae9190611fb9565b90506105ba3382611a1c565b604051818152849033907f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549060200160405180910390a3505b6060820151815464e8d4a510009161060a91611f80565b6106149190611f97565b816001018190555060006003848154811061063157610631611f54565b60009182526020909120600460059092020101546001600160a01b0316905080156106ba5781546040516377cc7f2160e11b815233600482015260248101919091526001600160a01b0382169063ef98fe4290604401600060405180830381600087803b1580156106a157600080fd5b505af11580156106b5573d6000803e3d6000fd5b505050505b50505080806106c890611fcc565b9150506104e0565b50565b6000600383815481106106e8576106e8611f54565b6000918252602080832086845260068252604080852033865290925292208054600590920290920192508311156107665760405162461bcd60e51b815260206004820181905260248201527f77697468647261773a20215f616d6f756e74206e6f7420617661696c61626c6560448201526064015b60405180910390fd5b61076f84610912565b6000816001015464e8d4a51000846003015484600001546107909190611f80565b61079a9190611f97565b6107a49190611fb9565b90506107b03382611a1c565b604051818152859033907f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549060200160405180910390a381546107f4908590611fb9565b808355600384015464e8d4a510009161080d9190611f80565b6108179190611f97565b826001018190555060006003868154811061083457610834611f54565b60009182526020909120600460059092020101546001600160a01b0316905080156108bd5782546040516377cc7f2160e11b815233600482015260248101919091526001600160a01b0382169063ef98fe4290604401600060405180830381600087803b1580156108a457600080fd5b505af11580156108b8573d6000803e3d6000fd5b505050505b83546108d3906001600160a01b03163387611b4a565b604051858152869033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a3505050505050565b60006003828154811061092757610927611f54565b9060005260206000209060050201905080600201544211610946575050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561098e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b29190611fe5565b9050806000036109c757504260029091015550565b60008260020154426109d99190611fb9565b905060006007548460010154600254846109f39190611f80565b6109fd9190611f80565b610a079190611f97565b6000546040517f23274710000000000000000000000000000000000000000000000000000000008152306004820152602481018390529192506001600160a01b0316906323274710906044016020604051808303816000875af1158015610a72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a969190611fe5565b905082610aa88264e8d4a51000611f80565b610ab29190611f97565b8460030154610ac19190611ffe565b600385018190554260028601819055604080519182526020820186905281019190915285907f3be3541fc42237d611b30329040bfa4569541d156560acdbbae57640d20b8f469060600160405180910390a25050505050565b600060038281548110610b2f57610b2f611f54565b60009182526020808320858452600682526040808520338652909252908320805484825560018201949094556005929092020160048101549093509091906001600160a01b03168015610bdd576040516377cc7f2160e11b8152336004820152600060248201526001600160a01b0382169063ef98fe4290604401600060405180830381600087803b158015610bc457600080fd5b505af1158015610bd8573d6000803e3d6000fd5b505050505b8354610bf3906001600160a01b03163384611b4a565b604051828152859033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595906020015b60405180910390a35050505050565b6000805b600354811015610c9457826001600160a01b031660038281548110610c5d57610c5d611f54565b60009182526020909120600590910201546001600160a01b031603610c825792915050565b80610c8c81611fcc565b915050610c36565b5050600354919050565b60035460005b81811015610cc557610cb581610912565b610cbe81611fcc565b9050610ca4565b5050565b6040516346ea9cc560e01b81527f530008d2b058137d9c475b1b7d83984f1fcf1dd0e607659d029fc1517ab8926860048201523360248201527f000000000000000000000000ca5c135a7e6823b01c760ac2c5a52ce0d8fefbd66001600160a01b0316906346ea9cc59060440160006040518083038186803b158015610d4e57600080fd5b505afa158015610d62573d6000803e3d6000fd5b505050506001600160a01b0382163b151580610d8557506001600160a01b038216155b610de05760405162461bcd60e51b815260206004820152602660248201527f7365743a207265776172646572206d75737420626520636f6e7472616374206f60448201526572207a65726f60d01b606482015260840161075d565b610de8610c9e565b8260038581548110610dfc57610dfc611f54565b906000526020600020906005020160010154600754610e1b9190611fb9565b610e259190611ffe565b6007819055508260038581548110610e3f57610e3f611f54565b9060005260206000209060050201600101819055508015610ea4578160038581548110610e6e57610e6e611f54565b906000526020600020906005020160040160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b80610ede5760038481548110610ebc57610ebc611f54565b60009182526020909120600460059092020101546001600160a01b0316610ee0565b815b6001600160a01b0316847fa54644aae5c48c5971516f334e4fe8ecbc7930e23f34877d4203c6551e67ffaa8584604051610f269291909182521515602082015260400190565b60405180910390a350505050565b6040516346ea9cc560e01b81527f530008d2b058137d9c475b1b7d83984f1fcf1dd0e607659d029fc1517ab8926860048201523360248201527f000000000000000000000000ca5c135a7e6823b01c760ac2c5a52ce0d8fefbd66001600160a01b0316906346ea9cc59060440160006040518083038186803b158015610fb957600080fd5b505afa158015610fcd573d6000803e3d6000fd5b505050506001600160a01b0382163b61104e5760405162461bcd60e51b815260206004820152602660248201527f6164643a204c5020746f6b656e206d75737420626520612076616c696420636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161075d565b6001600160a01b0381163b15158061106d57506001600160a01b038116155b6110c85760405162461bcd60e51b815260206004820152602660248201527f6164643a207265776172646572206d75737420626520636f6e7472616374206f60448201526572207a65726f60d01b606482015260840161075d565b6110d3600483611bd9565b156111205760405162461bcd60e51b815260206004820152601560248201527f6164643a204c5020616c72656164792061646465640000000000000000000000604482015260640161075d565b611128610c9e565b6000600854421161113b5760085461113d565b425b90508360075461114d9190611ffe565b6007556040805160a0810182526001600160a01b038581168252602082018781529282018481526000606084018181528784166080860190815260038054600181018255935294517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b600590930292830180547fffffffffffffffffffffffff000000000000000000000000000000000000000090811692871692909217905595517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c83015591517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d82015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e82015591517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85f9092018054909316911617905561129a600484611c00565b50816001600160a01b0316836001600160a01b031660016003805490506112c19190611fb9565b6040518781527f4b16bd2431ad24dc020ab0e1de7fcb6563dead6a24fb10089d6c23e97a70381f9060200160405180910390a450505050565b6000606060006003848154811061131357611313611f54565b6000918252602090912060059091020160048101549091506001600160a01b0316156114a257600480820154604080517ff7c618c100000000000000000000000000000000000000000000000000000000815290516001600160a01b039092169263f7c618c19282820192602092908290030181865afa15801561139b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bf9190612011565b92508060040160009054906101000a90046001600160a01b03166001600160a01b031663f7c618c16040518163ffffffff1660e01b8152600401602060405180830381865afa158015611416573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143a9190612011565b6001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015611477573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261149f9190810190612044565b91505b50915091565b6040516346ea9cc560e01b81527f530008d2b058137d9c475b1b7d83984f1fcf1dd0e607659d029fc1517ab8926860048201523360248201527f000000000000000000000000ca5c135a7e6823b01c760ac2c5a52ce0d8fefbd66001600160a01b0316906346ea9cc59060440160006040518083038186803b15801561152d57600080fd5b505afa158015611541573d6000803e3d6000fd5b5061155a925050506001600160a01b0384168383611b4a565b505050565b60006003838154811061157457611574611f54565b600091825260208083208684526006825260408085203386529092529220600590910290910191506115a584610912565b805415611626576000816001015464e8d4a51000846003015484600001546115cd9190611f80565b6115d79190611f97565b6115e19190611fb9565b90506115ed3382611a1c565b604051818152859033907f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549060200160405180910390a3505b8054611633908490611ffe565b808255600383015464e8d4a510009161164c9190611f80565b6116569190611f97565b816001018190555060006003858154811061167357611673611f54565b60009182526020909120600460059092020101546001600160a01b0316905080156116fc5781546040516377cc7f2160e11b815233600482015260248101919091526001600160a01b0382169063ef98fe4290604401600060405180830381600087803b1580156116e357600080fd5b505af11580156116f7573d6000803e3d6000fd5b505050505b8254611713906001600160a01b0316333087611c15565b604051848152859033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1590602001610c23565b60008060606000806003878154811061176257611762611f54565b600091825260208083208a84526006825260408085206001600160a01b038c8116875293528085206005949094029091016003810154815492516370a0823160e01b815230600482015291965093949291909116906370a0823190602401602060405180830381865afa1580156117dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118019190611fe5565b905083600201544211801561181557508015155b1561193057600084600201544261182c9190611fb9565b905060006007548660010154600254846118469190611f80565b6118509190611f80565b61185a9190611f97565b600154600080546040516370a0823160e01b81526001600160a01b03918216600482015293945090929116906370a0823190602401602060405180830381865afa1580156118ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d09190611fe5565b90508082111561190557836118ea8264e8d4a51000611f80565b6118f49190611f97565b6118fe9086611ffe565b945061192c565b836119158364e8d4a51000611f80565b61191f9190611f97565b6119299086611ffe565b94505b5050505b6001830154835464e8d4a5100090611949908590611f80565b6119539190611f97565b61195d9190611fb9565b60048501549098506001600160a01b031615611a0f5761197c8a6112fa565b6004868101546040517fc031a66f0000000000000000000000000000000000000000000000000000000081526001600160a01b038e811693820193909352939a50919850169063c031a66f90602401602060405180830381865afa1580156119e8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0c9190611fe5565b94505b5050505092959194509250565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611a65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a899190611fe5565b905080821115611b115760015460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018490529091169063a9059cbb906044015b6020604051808303816000875af1158015611ae7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b0b91906120f1565b50505050565b60015460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529091169063a9059cbb90604401611ac8565b600060405163a9059cbb60e01b81526001600160a01b0384166004820152826024820152602060006044836000895af13d15601f3d1160016000511416171691505080611b0b5760405162461bcd60e51b815260206004820152600f60248201527f5452414e534645525f4641494c45440000000000000000000000000000000000604482015260640161075d565b6001600160a01b038116600090815260018301602052604081205415155b90505b92915050565b6000611bf7836001600160a01b038416611cd3565b60006040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b03851660048201526001600160a01b03841660248201528260448201526020600060648360008a5af13d15601f3d1160016000511416171691505080611ccc5760405162461bcd60e51b815260206004820152601460248201527f5452414e534645525f46524f4d5f4641494c4544000000000000000000000000604482015260640161075d565b5050505050565b6000818152600183016020526040812054611d1a57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611bfa565b506000611bfa565b600060208284031215611d3457600080fd5b5035919050565b60008060408385031215611d4e57600080fd5b50508035926020909101359150565b6001600160a01b03811681146106d057600080fd5b600060208284031215611d8457600080fd5b8135611d8f81611d5d565b9392505050565b80151581146106d057600080fd5b60008060008060808587031215611dba57600080fd5b84359350602085013592506040850135611dd381611d5d565b91506060850135611de381611d96565b939692955090935050565b60008060408385031215611e0157600080fd5b823591506020830135611e1381611d5d565b809150509250929050565b600080600060608486031215611e3357600080fd5b833592506020840135611e4581611d5d565b91506040840135611e5581611d5d565b809150509250925092565b60005b83811015611e7b578181015183820152602001611e63565b50506000910152565b60008151808452611e9c816020860160208601611e60565b601f01601f19169290920160200192915050565b6001600160a01b0383168152604060208201526000611ed26040830184611e84565b949350505050565b600080600060608486031215611eef57600080fd5b8335611efa81611d5d565b92506020840135611f0a81611d5d565b929592945050506040919091013590565b8481526001600160a01b0384166020820152608060408201526000611f436080830185611e84565b905082606083015295945050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611bfa57611bfa611f6a565b600082611fb457634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115611bfa57611bfa611f6a565b600060018201611fde57611fde611f6a565b5060010190565b600060208284031215611ff757600080fd5b5051919050565b80820180821115611bfa57611bfa611f6a565b60006020828403121561202357600080fd5b8151611d8f81611d5d565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561205657600080fd5b815167ffffffffffffffff8082111561206e57600080fd5b818401915084601f83011261208257600080fd5b8151818111156120945761209461202e565b604051601f8201601f19908116603f011681019083821181831017156120bc576120bc61202e565b816040528281528760208487010111156120d557600080fd5b6120e6836020830160208801611e60565b979650505050505050565b60006020828403121561210357600080fd5b8151611d8f81611d9656fea26469706673582212200291c09664d5a5dc6519791e21d9bcbc61e3b4901d5879484bafd7924ed3439064736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000912ce59144191c1204e64559fe8253a0e49e65480000000000000000000000002bcc4440ca70703e54e41791e5c402e66f7e1966000000000000000000000000ca5c135a7e6823b01c760ac2c5a52ce0d8fefbd60000000000000000000000000000000000000000000000000023729eaf84fb000000000000000000000000000000000000000000000000000000000065badf00
-----Decoded View---------------
Arg [0] : _arb (address): 0x912CE59144191C1204E64559FE8253a0e49E6548
Arg [1] : _arbVault (address): 0x2BcC4440CA70703E54E41791E5c402e66f7e1966
Arg [2] : _auth (address): 0xCa5C135a7E6823b01c760aC2C5a52Ce0d8FEFBD6
Arg [3] : _arbPerSec (uint256): 9977650060000000
Arg [4] : _startTimestamp (uint256): 1706745600
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000912ce59144191c1204e64559fe8253a0e49e6548
Arg [1] : 0000000000000000000000002bcc4440ca70703e54e41791e5c402e66f7e1966
Arg [2] : 000000000000000000000000ca5c135a7e6823b01c760ac2c5a52ce0d8fefbd6
Arg [3] : 0000000000000000000000000000000000000000000000000023729eaf84fb00
Arg [4] : 0000000000000000000000000000000000000000000000000000000065badf00
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$267.51
Net Worth in ETH
0.093239
Token Allocations
ARB
100.00%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ARB | 100.00% | $0.169665 | 1,576.7139 | $267.51 |
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.