1207 lines
113 KiB
JSON
1207 lines
113 KiB
JSON
{
|
|
"address": "0x75AAedeD5311AC5752AA625E5e90cCe962C37D8f",
|
|
"abi": [
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "string",
|
|
"name": "_name",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "_symbol",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "_vestingDuration",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "_esToken",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "_pairToken",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "_claimableToken",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "_rewardTracker",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "bool",
|
|
"name": "_needCheckStake",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "constructor"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "owner",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "spender",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "value",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "Approval",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": false,
|
|
"internalType": "address",
|
|
"name": "receiver",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "Claim",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": false,
|
|
"internalType": "address",
|
|
"name": "account",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "Deposit",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "from",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "value",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "PairTransfer",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "from",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "value",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "Transfer",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": false,
|
|
"internalType": "address",
|
|
"name": "account",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "claimedAmount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "balance",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "Withdraw",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "allowance",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "approve",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_account",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "balanceOf",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "account",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "balances",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "account",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "bonusRewards",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "claim",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_account",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "_receiver",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "claimForAccount",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_account",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "claimable",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "claimableToken",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "account",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "claimedAmounts",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "account",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "cumulativeClaimAmounts",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "account",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "cumulativeRewardDeductions",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "decimals",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "",
|
|
"type": "uint8"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "_amount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "deposit",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_account",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "_amount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "depositForAccount",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "esToken",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_account",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "getCombinedAverageStakedAmount",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_account",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "getMaxVestableAmount",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_account",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "_esAmount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "getPairAmount",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_account",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "getTotalVested",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_account",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "getVestedAmount",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "gov",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "hasPairToken",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "hasRewardTracker",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "handler",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "isHandler",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "status",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "account",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "lastVestingTimes",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "time",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "name",
|
|
"outputs": [
|
|
{
|
|
"internalType": "string",
|
|
"name": "",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "needCheckStake",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "account",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "pairAmounts",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "pairSupply",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "pairToken",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "rewardTracker",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_account",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "_amount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "setBonusRewards",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_account",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "_amount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "setCumulativeRewardDeductions",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_gov",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "setGov",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_handler",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "bool",
|
|
"name": "_isActive",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"name": "setHandler",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_rewardTracker",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "setRewardTracker",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "symbol",
|
|
"outputs": [
|
|
{
|
|
"internalType": "string",
|
|
"name": "",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "totalSupply",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "transfer",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "transferFrom",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "vestingDuration",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "withdraw",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_token",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "_account",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "_amount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "withdrawToken",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"transactionHash": "0x1df41c07cb50f54b160b3b0de680224fcc34f2033c2dd8448492bd597f0da79c",
|
|
"receipt": {
|
|
"to": null,
|
|
"from": "0x50A8e60041A206AcaA5F844a1104896224be6F39",
|
|
"contractAddress": "0x75AAedeD5311AC5752AA625E5e90cCe962C37D8f",
|
|
"transactionIndex": 1,
|
|
"gasUsed": "1803252",
|
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
"blockHash": "0x4a0c8e93117ce39a3738a573577c146df3e7f3eba74688218082747bbe4c8eb4",
|
|
"transactionHash": "0x1df41c07cb50f54b160b3b0de680224fcc34f2033c2dd8448492bd597f0da79c",
|
|
"logs": [],
|
|
"blockNumber": 43429436,
|
|
"cumulativeGasUsed": "1873973",
|
|
"status": 1,
|
|
"byzantium": true
|
|
},
|
|
"args": [
|
|
"Vested CEC",
|
|
"veCEC",
|
|
"31536000",
|
|
"0x249A2FB61507FDf31C9110eC55a38185f826069D",
|
|
"0x0000000000000000000000000000000000000000",
|
|
"0xe34c5ea0c3083d11a735dc0609533b92130319f5",
|
|
"0xBe6F99d816dF9E6861b2501f90aFC615bd77b674",
|
|
true
|
|
],
|
|
"numDeployments": 1,
|
|
"solcInputHash": "35d1d20dc9b7194768908e34f12939fd",
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.19+commit.7dd6d404\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"_vestingDuration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_esToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_pairToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_claimableToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_rewardTracker\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_needCheckStake\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Claim\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"PairTransfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"claimedAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"bonusRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claim\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_receiver\",\"type\":\"address\"}],\"name\":\"claimForAccount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"}],\"name\":\"claimable\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimableToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"claimedAmounts\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"cumulativeClaimAmounts\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"cumulativeRewardDeductions\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"depositForAccount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"esToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"}],\"name\":\"getCombinedAverageStakedAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"}],\"name\":\"getMaxVestableAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_esAmount\",\"type\":\"uint256\"}],\"name\":\"getPairAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"}],\"name\":\"getTotalVested\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"}],\"name\":\"getVestedAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gov\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hasPairToken\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hasRewardTracker\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"handler\",\"type\":\"address\"}],\"name\":\"isHandler\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"lastVestingTimes\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"needCheckStake\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"pairAmounts\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pairSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pairToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardTracker\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"setBonusRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"setCumulativeRewardDeductions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_gov\",\"type\":\"address\"}],\"name\":\"setGov\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_handler\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_isActive\",\"type\":\"bool\"}],\"name\":\"setHandler\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_rewardTracker\",\"type\":\"address\"}],\"name\":\"setRewardTracker\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vestingDuration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdrawToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"}},\"kind\":\"dev\",\"methods\":{},\"stateVariables\":{\"totalSupply\":{\"details\":\"Returns the amount of tokens in existence.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/staking/Vester.sol\":\"Vester\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@openzeppelin/contracts/security/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor() {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n _nonReentrantBefore();\\n _;\\n _nonReentrantAfter();\\n }\\n\\n function _nonReentrantBefore() private {\\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n }\\n\\n function _nonReentrantAfter() private {\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Returns true if the reentrancy guard is currently set to \\\"entered\\\", which indicates there is a\\n * `nonReentrant` function in the call stack.\\n */\\n function _reentrancyGuardEntered() internal view returns (bool) {\\n return _status == _ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0xa535a5df777d44e945dd24aa43a11e44b024140fc340ad0dfe42acf4002aade1\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\\n}\\n\",\"keccak256\":\"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\\n *\\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\\n * need to send a transaction, and thus is not required to hold Ether at all.\\n *\\n * ==== Security Considerations\\n *\\n * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature\\n * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be\\n * considered as an intention to spend the allowance in any specific way. The second is that because permits have\\n * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should\\n * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be\\n * generally recommended is:\\n *\\n * ```solidity\\n * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {\\n * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}\\n * doThing(..., value);\\n * }\\n *\\n * function doThing(..., uint256 value) public {\\n * token.safeTransferFrom(msg.sender, address(this), value);\\n * ...\\n * }\\n * ```\\n *\\n * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of\\n * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also\\n * {SafeERC20-safeTransferFrom}).\\n *\\n * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so\\n * contracts should have entry points that don't rely on permit.\\n */\\ninterface IERC20Permit {\\n /**\\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\\n * given ``owner``'s signed approval.\\n *\\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\\n * ordering also apply here.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `deadline` must be a timestamp in the future.\\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\\n * over the EIP712-formatted function arguments.\\n * - the signature must use ``owner``'s current nonce (see {nonces}).\\n *\\n * For more information on the signature format, see the\\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\\n * section].\\n *\\n * CAUTION: See Security Considerations above.\\n */\\n function permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n\\n /**\\n * @dev Returns the current nonce for `owner`. This value must be\\n * included whenever a signature is generated for {permit}.\\n *\\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\\n * prevents a signature from being used multiple times.\\n */\\n function nonces(address owner) external view returns (uint256);\\n\\n /**\\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\\n */\\n // solhint-disable-next-line func-name-mixedcase\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0xb264c03a3442eb37a68ad620cefd1182766b58bee6cec40343480392d6b14d69\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\nimport \\\"../extensions/IERC20Permit.sol\\\";\\nimport \\\"../../../utils/Address.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20 {\\n using Address for address;\\n\\n /**\\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n /**\\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\\n */\\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(IERC20 token, address spender, uint256 value) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n /**\\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\\n }\\n\\n /**\\n * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\\n }\\n }\\n\\n /**\\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\\n * to be set to zero before setting it to a non-zero value, such as USDT.\\n */\\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\\n bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\\n\\n if (!_callOptionalReturnBool(token, approvalCall)) {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\\n _callOptionalReturn(token, approvalCall);\\n }\\n }\\n\\n /**\\n * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\\n * Revert on invalid signature.\\n */\\n function safePermit(\\n IERC20Permit token,\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal {\\n uint256 nonceBefore = token.nonces(owner);\\n token.permit(owner, spender, value, deadline, v, r, s);\\n uint256 nonceAfter = token.nonces(owner);\\n require(nonceAfter == nonceBefore + 1, \\\"SafeERC20: permit did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n */\\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n require(returndata.length == 0 || abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n *\\n * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\\n */\\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\\n // and not revert is the subcall reverts.\\n\\n (bool success, bytes memory returndata) = address(token).call(data);\\n return\\n success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));\\n }\\n}\\n\",\"keccak256\":\"0xabefac93435967b4d36a4fabcbdbb918d1f0b7ae3c3d85bc30923b326c927ed1\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x006dd67219697fe68d7fbfdea512e7c4cb64a43565ed86171d67e844982da6fa\",\"license\":\"MIT\"},\"contracts/core/Governable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.19;\\n\\ncontract Governable {\\n address public gov;\\n\\n constructor() {\\n gov = msg.sender;\\n }\\n\\n modifier onlyGov() {\\n require(msg.sender == gov, \\\"Governable: forbidden\\\");\\n _;\\n }\\n\\n function setGov(address _gov) external onlyGov {\\n gov = _gov;\\n }\\n}\\n\",\"keccak256\":\"0xcb7c11d1557db3369d984c7e804b1946c79867f3ab2dd2793ad3bb502c6c2383\",\"license\":\"MIT\"},\"contracts/interfaces/IMintable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.19;\\n\\ninterface IMintable {\\n function isMinter(address _account) external returns (bool);\\n function setMinter(address _minter, bool _isActive) external;\\n function mint(address _account, uint256 _amount) external;\\n function burn(address _account, uint256 _amount) external;\\n}\",\"keccak256\":\"0x99bccac95e8a4bba811b01e39e40ce5921ec977432696fd492a2a340674e90ae\",\"license\":\"MIT\"},\"contracts/staking/Vester.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.19;\\n\\nimport {IERC20} from \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport {ReentrancyGuard} from \\\"@openzeppelin/contracts/security/ReentrancyGuard.sol\\\";\\nimport {SafeERC20} from \\\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\\\";\\nimport {IVester} from \\\"./interfaces/IVester.sol\\\";\\nimport {IRewardTracker} from \\\"./interfaces/IRewardTracker.sol\\\";\\nimport {Governable} from \\\"../core/Governable.sol\\\";\\nimport {IMintable} from \\\"../interfaces/IMintable.sol\\\";\\n\\ncontract Vester is IVester, IERC20, ReentrancyGuard, Governable {\\n using SafeERC20 for IERC20;\\n\\n string public name;\\n string public symbol;\\n uint8 public decimals = 18;\\n uint256 public vestingDuration;\\n address public esToken;\\n address public pairToken;\\n address public claimableToken;\\n\\n address public override rewardTracker;\\n\\n uint256 public override totalSupply;\\n uint256 public pairSupply;\\n bool public needCheckStake;\\n\\n mapping(address account => uint256 amount) public balances;\\n mapping(address account => uint256 amount) public override pairAmounts;\\n mapping(address account => uint256 amount) public override cumulativeClaimAmounts;\\n mapping(address account => uint256 amount) public override claimedAmounts;\\n mapping(address account => uint256 time) public lastVestingTimes;\\n\\n mapping(address account => uint256 amount) public override cumulativeRewardDeductions;\\n mapping(address account => uint256 amount) public override bonusRewards;\\n\\n mapping(address handler => bool status) public isHandler;\\n\\n event Claim(address receiver, uint256 amount);\\n event Deposit(address account, uint256 amount);\\n event Withdraw(address account, uint256 claimedAmount, uint256 balance);\\n event PairTransfer(address indexed from, address indexed to, uint256 value);\\n\\n constructor(\\n string memory _name,\\n string memory _symbol,\\n uint256 _vestingDuration,\\n address _esToken,\\n address _pairToken,\\n address _claimableToken,\\n address _rewardTracker,\\n bool _needCheckStake\\n ) {\\n name = _name;\\n symbol = _symbol;\\n vestingDuration = _vestingDuration;\\n esToken = _esToken;\\n pairToken = _pairToken;\\n claimableToken = _claimableToken;\\n rewardTracker = _rewardTracker;\\n needCheckStake = _needCheckStake;\\n }\\n\\n function setHandler(address _handler, bool _isActive) external onlyGov {\\n isHandler[_handler] = _isActive;\\n }\\n\\n function deposit(uint256 _amount) external nonReentrant {\\n _deposit(msg.sender, _amount);\\n }\\n\\n function depositForAccount(address _account, uint256 _amount) external nonReentrant {\\n _validateHandler();\\n _deposit(_account, _amount);\\n }\\n\\n function claim() external nonReentrant returns (uint256) {\\n return _claim(msg.sender, msg.sender);\\n }\\n\\n function claimForAccount(address _account, address _receiver) external override nonReentrant returns (uint256) {\\n _validateHandler();\\n return _claim(_account, _receiver);\\n }\\n\\n // to help users who accidentally send their tokens to this contract\\n function withdrawToken(address _token, address _account, uint256 _amount) external onlyGov {\\n IERC20(_token).safeTransfer(_account, _amount);\\n }\\n\\n function withdraw() external nonReentrant {\\n address account = msg.sender;\\n address _receiver = account;\\n _claim(account, _receiver);\\n\\n uint256 claimedAmount = cumulativeClaimAmounts[account];\\n uint256 balance = balances[account];\\n uint256 totalVested = balance + claimedAmount;\\n require(totalVested > 0, \\\"Vester: vested amount is zero\\\");\\n\\n if (hasPairToken()) {\\n uint256 pairAmount = pairAmounts[account];\\n _burnPair(account, pairAmount);\\n IERC20(pairToken).safeTransfer(_receiver, pairAmount);\\n }\\n\\n IERC20(esToken).safeTransfer(_receiver, balance);\\n _burn(account, balance);\\n\\n delete cumulativeClaimAmounts[account];\\n delete claimedAmounts[account];\\n delete lastVestingTimes[account];\\n\\n emit Withdraw(account, claimedAmount, balance);\\n }\\n\\n function setRewardTracker(address _rewardTracker) external onlyGov {\\n rewardTracker = _rewardTracker;\\n }\\n\\n function setCumulativeRewardDeductions(address _account, uint256 _amount) external override nonReentrant {\\n _validateHandler();\\n cumulativeRewardDeductions[_account] = _amount;\\n }\\n\\n function setBonusRewards(address _account, uint256 _amount) external override nonReentrant {\\n _validateHandler();\\n bonusRewards[_account] = _amount;\\n }\\n\\n function getMaxVestableAmount(address _account) public view override returns (uint256) {\\n uint256 maxVestableAmount = bonusRewards[_account];\\n\\n if (hasRewardTracker()) {\\n uint256 cumulativeReward = IRewardTracker(rewardTracker).cumulativeRewards(_account);\\n maxVestableAmount = maxVestableAmount + cumulativeReward;\\n }\\n\\n uint256 cumulativeRewardDeduction = cumulativeRewardDeductions[_account];\\n\\n if (maxVestableAmount < cumulativeRewardDeduction) {\\n return 0;\\n }\\n\\n return maxVestableAmount - cumulativeRewardDeduction;\\n }\\n\\n function getCombinedAverageStakedAmount(address _account) public view override returns (uint256) {\\n if (!hasRewardTracker()) {\\n return 0;\\n }\\n \\n uint256 cumulativeReward = IRewardTracker(rewardTracker).cumulativeRewards(_account);\\n if (cumulativeReward == 0) {\\n return 0;\\n }\\n\\n return IRewardTracker(rewardTracker).averageStakedAmounts(_account);\\n }\\n\\n function getPairAmount(address _account, uint256 _esAmount) public view returns (uint256) {\\n if (!hasRewardTracker()) {\\n return 0;\\n }\\n\\n uint256 combinedAverageStakedAmount = getCombinedAverageStakedAmount(_account);\\n if (combinedAverageStakedAmount == 0) {\\n return 0;\\n }\\n\\n uint256 maxVestableAmount = getMaxVestableAmount(_account);\\n if (maxVestableAmount == 0) {\\n return 0;\\n }\\n\\n return (_esAmount * combinedAverageStakedAmount) / maxVestableAmount;\\n }\\n\\n function hasRewardTracker() public view returns (bool) {\\n return rewardTracker != address(0);\\n }\\n\\n function hasPairToken() public view returns (bool) {\\n return pairToken != address(0);\\n }\\n\\n function getTotalVested(address _account) public view returns (uint256) {\\n return balances[_account] + cumulativeClaimAmounts[_account];\\n }\\n\\n function balanceOf(address _account) public view override returns (uint256) {\\n return balances[_account];\\n }\\n\\n // empty implementation, tokens are non-transferrable\\n function transfer(address /* recipient */, uint256 /* amount */) public virtual override returns (bool) {\\n revert(\\\"Vester: non-transferrable\\\");\\n }\\n\\n // empty implementation, tokens are non-transferrable\\n function allowance(address /* owner */, address /* spender */) public view virtual override returns (uint256) {\\n return 0;\\n }\\n\\n // empty implementation, tokens are non-transferrable\\n function approve(address /* spender */, uint256 /* amount */) public virtual override returns (bool) {\\n revert(\\\"Vester: non-transferrable\\\");\\n }\\n\\n // empty implementation, tokens are non-transferrable\\n function transferFrom(\\n address /* sender */,\\n address /* recipient */,\\n uint256 /* amount */\\n ) public virtual override returns (bool) {\\n revert(\\\"Vester: non-transferrable\\\");\\n }\\n\\n function getVestedAmount(address _account) public view override returns (uint256) {\\n uint256 balance = balances[_account];\\n uint256 cumulativeClaimAmount = cumulativeClaimAmounts[_account];\\n return balance + cumulativeClaimAmount;\\n }\\n\\n function _mint(address _account, uint256 _amount) private {\\n require(_account != address(0), \\\"Vester: mint to the zero address\\\");\\n\\n totalSupply = totalSupply + _amount;\\n balances[_account] = balances[_account] + _amount;\\n\\n emit Transfer(address(0), _account, _amount);\\n }\\n\\n function _mintPair(address _account, uint256 _amount) private {\\n require(_account != address(0), \\\"Vester: mint to the zero address\\\");\\n\\n pairSupply = pairSupply + _amount;\\n pairAmounts[_account] = pairAmounts[_account] + _amount;\\n\\n emit PairTransfer(address(0), _account, _amount);\\n }\\n\\n function _burn(address _account, uint256 _amount) private {\\n require(_account != address(0), \\\"Vester: burn from the zero address\\\");\\n require(balances[_account] >= _amount, \\\"Vester: balance is not enough\\\");\\n balances[_account] = balances[_account] - _amount;\\n totalSupply = totalSupply - _amount;\\n\\n emit Transfer(_account, address(0), _amount);\\n }\\n\\n function _burnPair(address _account, uint256 _amount) private {\\n require(_account != address(0), \\\"Vester: burn from the zero address\\\");\\n require(pairAmounts[_account] >= _amount, \\\"Vester: balance is not enough\\\");\\n pairAmounts[_account] = pairAmounts[_account] - _amount;\\n pairSupply = pairSupply - _amount;\\n\\n emit PairTransfer(_account, address(0), _amount);\\n }\\n /**\\n * @dev Deposit ES tokens to the contract\\n */\\n function _deposit(address _account, uint256 _amount) private {\\n require(_amount > 0, \\\"Vester: invalid _amount\\\");\\n _updateVesting(_account);\\n\\n IERC20(esToken).safeTransferFrom(_account, address(this), _amount);\\n\\n _mint(_account, _amount);\\n\\n if (hasPairToken()) {\\n uint256 pairAmount = pairAmounts[_account];\\n uint256 nextPairAmount = getPairAmount(_account, balances[_account]);\\n if (nextPairAmount > pairAmount) {\\n uint256 pairAmountDiff = nextPairAmount - pairAmount;\\n IERC20(pairToken).safeTransferFrom(_account, address(this), pairAmountDiff);\\n _mintPair(_account, pairAmountDiff);\\n }\\n }\\n if (needCheckStake && hasRewardTracker()) {\\n // if u want to transfer 100 esCec to cec, u need to have 100 cec in stake\\n uint256 cecAmount = IRewardTracker(rewardTracker).depositBalances(_account, claimableToken);\\n require(balances[_account] <= cecAmount, \\\"Vester: insufficient cec balance\\\");\\n }\\n uint256 maxAmount = getMaxVestableAmount(_account);\\n require(getTotalVested(_account) <= maxAmount, \\\"Vester: max vestable amount exceeded\\\");\\n\\n emit Deposit(_account, _amount);\\n }\\n\\n function _updateVesting(address _account) private {\\n uint256 amount = _getNextClaimableAmount(_account);\\n lastVestingTimes[_account] = block.timestamp;\\n\\n if (amount == 0) {\\n return;\\n }\\n\\n // transfer claimableAmount from balances to cumulativeClaimAmounts\\n _burn(_account, amount);\\n cumulativeClaimAmounts[_account] = cumulativeClaimAmounts[_account] + amount;\\n\\n IMintable(esToken).burn(address(this), amount);\\n }\\n\\n function _getNextClaimableAmount(address _account) private view returns (uint256) {\\n uint256 timeDiff = block.timestamp - lastVestingTimes[_account];\\n\\n uint256 balance = balances[_account];\\n if (balance == 0) {\\n return 0;\\n }\\n uint256 vestedAmount = getVestedAmount(_account);\\n uint256 claimableAmount = (vestedAmount * timeDiff) / vestingDuration;\\n if (claimableAmount < balance) {\\n return claimableAmount;\\n }\\n\\n return balance;\\n }\\n\\n function claimable(address _account) public view override returns (uint256) {\\n uint256 amount = cumulativeClaimAmounts[_account] - claimedAmounts[_account];\\n uint256 nextClaimable = _getNextClaimableAmount(_account);\\n return amount + nextClaimable;\\n }\\n\\n function _claim(address _account, address _receiver) private returns (uint256) {\\n _updateVesting(_account);\\n uint256 amount = claimable(_account);\\n claimedAmounts[_account] = claimedAmounts[_account] + amount;\\n IERC20(claimableToken).safeTransfer(_receiver, amount);\\n emit Claim(_account, amount);\\n return amount;\\n }\\n\\n function _validateHandler() private view {\\n require(isHandler[msg.sender], \\\"Vester: forbidden\\\");\\n }\\n}\\n\",\"keccak256\":\"0x43ffe0eff4523a3c6df42791a3f1c492e2f077c9c98b5f41793e04ec27682d00\",\"license\":\"MIT\"},\"contracts/staking/interfaces/IRewardTracker.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.19;\\n\\ninterface IRewardTracker {\\n function depositBalances(address _account, address _depositToken) external view returns (uint256);\\n function stakedAmounts(address _account) external view returns (uint256);\\n function updateRewards() external;\\n function stake(address _depositToken, uint256 _amount) external;\\n function stakeForAccount(address _fundingAccount, address _account, address _depositToken, uint256 _amount) external;\\n function unstake(address _depositToken, uint256 _amount) external;\\n function unstakeForAccount(address _account, address _depositToken, uint256 _amount, address _receiver) external;\\n function tokensPerInterval() external view returns (uint256);\\n function claim(address _receiver) external returns (uint256);\\n function claimForAccount(address _account, address _receiver) external returns (uint256);\\n function claimable(address _account) external view returns (uint256);\\n function averageStakedAmounts(address _account) external view returns (uint256);\\n function cumulativeRewards(address _account) external view returns (uint256);\\n}\\n\",\"keccak256\":\"0x6e0078848746c69ab4c824269552ce070b6fa449cc6803754265fe63cd1b0424\",\"license\":\"MIT\"},\"contracts/staking/interfaces/IVester.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.19;\\n\\ninterface IVester {\\n function rewardTracker() external view returns (address);\\n\\n function claimForAccount(address _account, address _receiver) external returns (uint256);\\n\\n function claimable(address _account) external view returns (uint256);\\n function cumulativeClaimAmounts(address _account) external view returns (uint256);\\n function claimedAmounts(address _account) external view returns (uint256);\\n function pairAmounts(address _account) external view returns (uint256);\\n function getVestedAmount(address _account) external view returns (uint256);\\n function cumulativeRewardDeductions(address _account) external view returns (uint256);\\n function bonusRewards(address _account) external view returns (uint256);\\n\\n function setCumulativeRewardDeductions(address _account, uint256 _amount) external;\\n function setBonusRewards(address _account, uint256 _amount) external;\\n\\n function getMaxVestableAmount(address _account) external view returns (uint256);\\n function getCombinedAverageStakedAmount(address _account) external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xe68b0e76d8db17b13d0b425a329955d00e450c09fa3b9892121c23942b99b512\",\"license\":\"MIT\"}},\"version\":1}",
|
|
"bytecode": "0x6080604052346200046c5762002062803803806200001d8162000471565b928339810190610100818303126200046c5780516001600160401b0381116200046c57826200004e91830162000497565b602082015190926001600160401b0382116200046c576200007191830162000497565b90604081015191620000866060830162000509565b90620000956080840162000509565b93620000a460a0850162000509565b9160e0620000b560c0870162000509565b9501519687151588036200046c576001600081905580546001600160a01b031916331790556004805460ff191660121790558051906001600160401b0382116200035d5760025490600182811c9216801562000461575b60208310146200033c5781601f849311620003fd575b50602090601f83116001146200037f5760009262000373575b50508160011b916000199060031b1c1916176002555b8051906001600160401b0382116200035d5760035490600182811c9216801562000352575b60208310146200033c5781601f849311620002ca575b50602090601f83116001146200023b576000926200022f575b50508160011b916000199060031b1c1916176003555b600555600680546001600160a01b03199081166001600160a01b039485161790915560078054821695841695909517909455600880548516918316919091179055600980549093169116179055600c805491151560ff1660ff1992909216919091179055604051611b2390816200051f8239f35b015190503880620001a5565b6003600090815293507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b91905b601f1984168510620002ae576001945083601f1981161062000294575b505050811b01600355620001bb565b015160001960f88460031b161c1916905538808062000285565b8181015183556020948501946001909301929091019062000268565b60036000529091507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f840160051c81016020851062000334575b90849392915b601f830160051c82018110620003245750506200018c565b600081558594506001016200030c565b508062000306565b634e487b7160e01b600052602260045260246000fd5b91607f169162000176565b634e487b7160e01b600052604160045260246000fd5b0151905038806200013b565b6002600090815293506000805160206200204283398151915291905b601f1984168510620003e1576001945083601f19811610620003c7575b505050811b0160025562000151565b015160001960f88460031b161c19169055388080620003b8565b818101518355602094850194600190930192909101906200039b565b600260005290915060008051602062002042833981519152601f840160051c8101916020851062000456575b90601f859493920160051c01905b81811062000446575062000122565b6000815584935060010162000437565b909150819062000429565b91607f16916200010c565b600080fd5b6040519190601f01601f191682016001600160401b038111838210176200035d57604052565b919080601f840112156200046c5782516001600160401b0381116200035d57602090620004cd601f8201601f1916830162000471565b928184528282870101116200046c5760005b818110620004f557508260009394955001015290565b8581018301518482018401528201620004df565b51906001600160a01b03821682036200046c5756fe6040608081526004908136101561001557600080fd5b600091823560e01c90816301e3366714610c9b57816306fdde0314610bdc57816308f26c7614610bb6578163095ea7b3146104505781630db9ea4a14610b7e57816312d43a5114610b5557816313e82e7a14610b145781631514617e14610af557816315e90a4114610ad657816316ca05c514610aad57816318160ddd14610a8e57816323b872dd14610a7757816327e235e314610677578163313ce56714610a56578163342fcda914610a21578163387a785d146109e95781633ccfd60b1461083d5781633de35b7914610814578163402914f5146107ee57816341f22724146107a657816345f01ee61461078057816346ea87af146107425781634e71d92d146107105781635d50e729146106d85781636bcb411a146106af57816370a082311461067757816371417b321461063f5781637cf8f3b21461061657816393035473146105f557816395d89b41146104ee5781639cb7de4b1461048d578163a2545fa514610455578163a9059cbb14610450578163ac110d141461042c578163b5ff136d146103f4578163b6b55f25146103c757508063cfad57a214610379578063d5a73fdd1461034d578063d75abb5714610323578063d89b7007146102dc578063dd62ed3e146102af578063f2293bb01461025c578063f421f62a146102325763f6d6d5aa1461020757600080fd5b3461022e578160031936011261022e5760085490516001600160a01b039091168152602090f35b5080fd5b503461022e578160031936011261022e5760095490516001600160a01b0390911615158152602090f35b82346102ac5760203660031901126102ac57610276610cd1565b6001546001600160a01b0391906102909083163314610dd7565b166bffffffffffffffffffffffff60a01b600954161760095580f35b80fd5b503461022e578060031936011261022e57906020916102cc610cd1565b506102d5610cec565b5051908152f35b503461022e578060031936011261022e576102f5610cd1565b6102fd610e1b565b610305611a9b565b6001600160a01b031682526012602052812060243590556001815580f35b503461022e578160031936011261022e5760075490516001600160a01b0390911615158152602090f35b503461022e57602036600319011261022e5760209061037261036d610cd1565b611308565b9051908152f35b82346102ac5760203660031901126102ac57610393610cd1565b600154906001600160a01b03906103ad3383851614610dd7565b16906bffffffffffffffffffffffff60a01b161760015580f35b83903461022e57602036600319011261022e576103ed906103e6610e1b565b35336114a4565b6001815580f35b50503461022e57602036600319011261022e5760209181906001600160a01b0361041c610cd1565b168152600f845220549051908152f35b50503461022e578160031936011261022e5760209060ff600c541690519015158152f35b610db8565b50503461022e57602036600319011261022e5760209181906001600160a01b0361047d610cd1565b1681526013845220549051908152f35b50503461022e578060031936011261022e576104a7610cd1565b90602435918215158093036104ea576001546001600160a01b0391906104d09083163314610dd7565b168352601460205282209060ff8019835416911617905580f35b8380fd5b919050346105f157826003193601126105f157805191836003549060019082821c9282811680156105e7575b60209586861082146105d457508488529081156105b25750600114610559575b610555868661054b828b0383610d37565b5191829182610d6f565b0390f35b929550600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b82841061059f57505050826105559461054b92820101943861053a565b8054868501880152928601928101610582565b60ff191687860152505050151560051b830101925061054b826105553861053a565b634e487b7160e01b845260229052602483fd5b93607f169361051a565b8280fd5b50503461022e57602036600319011261022e5760209061037261036d610cd1565b50503461022e578060031936011261022e57602090610372610636610cd1565b602435906112bb565b50503461022e57602036600319011261022e5760209181906001600160a01b03610667610cd1565b1681526010845220549051908152f35b50503461022e57602036600319011261022e5760209181906001600160a01b0361069f610cd1565b168152600d845220549051908152f35b50503461022e578160031936011261022e5760095490516001600160a01b039091168152602090f35b50503461022e57602036600319011261022e5760209181906001600160a01b03610700610cd1565b168152600e845220549051908152f35b50503461022e578160031936011261022e579060209161072e610e1b565b600161073a3333611a07565b925551908152f35b50503461022e57602036600319011261022e5760209160ff9082906001600160a01b0361076d610cd1565b1681526014855220541690519015158152f35b50503461022e57602036600319011261022e576020906103726107a1610cd1565b61119e565b50503461022e578060031936011261022e576107c0610cd1565b6107c8610e1b565b6107d0611a9b565b6001600160a01b031682526013602052812060243590556001815580f35b50503461022e57602036600319011261022e5760209061037261080f610cd1565b6119c9565b50503461022e578160031936011261022e5760075490516001600160a01b039091168152602090f35b9050346105f157826003193601126105f157610857610e1b565b6108613333611a07565b50338352602091600f835280842054600d845281852054926108838285611099565b156109a65750917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56893916060936108d08360018060a01b03806007541661090c575b339060065416610e71565b6108da833361141a565b338752600f84528682812055601084528682812055601184528682812055815193338552840152820152a16001815580f35b338a52600e87526109a1856109518c8281205492839161092d331515611377565b338152600e8d52610943838383205410156113ce565b338152600e8d5220546110bc565b338d52600e8a52878d205561096881600b546110bc565b600b558b87518281527f659523c479d006050ebc0d0e48fea36d1b2c5d45b2f31402ac6f8671fc84cc048b3392a3338360075416610e71565b6108c5565b825162461bcd60e51b8152908101859052601d60248201527f5665737465723a2076657374656420616d6f756e74206973207a65726f0000006044820152606490fd5b50503461022e57602036600319011261022e5760209181906001600160a01b03610a11610cd1565b1681526012845220549051908152f35b50503461022e573660031901126102ac576103ed610a3d610cd1565b610a45610e1b565b610a4d611a9b565b602435906114a4565b8284346102ac57806003193601126102ac575060ff60209254169051908152f35b83346102ac57610a8636610d02565b505050611332565b50503461022e578160031936011261022e57602090600a549051908152f35b50503461022e578160031936011261022e5760065490516001600160a01b039091168152602090f35b50503461022e578160031936011261022e57602090600b549051908152f35b50503461022e578160031936011261022e576020906005549051908152f35b50503461022e578060031936011261022e5790602091600161073a610b37610cd1565b610b3f610cec565b90610b48610e1b565b610b50611a9b565b611a07565b50503461022e578160031936011261022e5760015490516001600160a01b039091168152602090f35b50503461022e57602036600319011261022e5760209181906001600160a01b03610ba6610cd1565b1681526011845220549051908152f35b50503461022e57602036600319011261022e57602090610372610bd7610cd1565b6110c9565b919050346105f157826003193601126105f157805191836002549060019082821c928281168015610c91575b60209586861082146105d457508488529081156105b25750600114610c3857610555868661054b828b0383610d37565b929550600283527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b828410610c7e57505050826105559461054b92820101943861053a565b8054868501880152928601928101610c61565b93607f1693610c08565b83346102ac57610cce610cad36610d02565b60015490926001600160a01b0391610cc89083163314610dd7565b16610e71565b80f35b600435906001600160a01b0382168203610ce757565b600080fd5b602435906001600160a01b0382168203610ce757565b6060906003190112610ce7576001600160a01b03906004358281168103610ce757916024359081168103610ce7579060443590565b90601f8019910116810190811067ffffffffffffffff821117610d5957604052565b634e487b7160e01b600052604160045260246000fd5b6020808252825181830181905290939260005b828110610da457505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501610d82565b34610ce7576040366003190112610ce757610dd1610cd1565b50611332565b15610dde57565b60405162461bcd60e51b815260206004820152601560248201527423b7bb32b93730b136329d103337b93134b23232b760591b6044820152606490fd5b600260005414610e2c576002600055565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b60405163a9059cbb60e01b60208201526001600160a01b03929092166024830152604480830193909352918152610eb291610ead606483610d37565b610eb4565b565b60018060a01b0316906040516040810167ffffffffffffffff9082811082821117610d59576040526020938483527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564858401526000808587829751910182855af1903d15610ff9573d928311610fe55790610f4f93929160405192610f4288601f19601f8401160185610d37565b83523d868885013e611004565b805191821591848315610fc1575b505050905015610f6a5750565b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152fd5b91938180945001031261022e578201519081151582036102ac575080388084610f5d565b634e487b7160e01b85526041600452602485fd5b90610f4f9392506060915b919290156110665750815115611018575090565b3b156110215790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b8251909150156110795750805190602001fd5b60405162461bcd60e51b81529081906110959060048301610d6f565b0390fd5b919082018092116110a657565b634e487b7160e01b600052601160045260246000fd5b919082039182116110a657565b6001600160a01b039081166000818152601360209081526040822054600954929490939192168061111b575b508352601290526040822054908181106111165761111392506110bc565b90565b505090565b92826024929460405193848092633792def360e01b82528860048301525afa91821561119357859261115e575b506012929161115691611099565b9290916110f5565b9091508281813d831161118c575b6111768183610d37565b81010312611188575190611156611148565b8480fd5b503d61116c565b6040513d87823e3d90fd5b6009546001600160a01b039081169190821561125357604051633792def360e01b81529116600482018190526020918281602481875afa9081156112475760009161125b575b501561125357819060246040518095819363a318021760e01b835260048301525afa9081156112475760009161121b575b50905090565b82813d8311611240575b61122f8183610d37565b810103126102ac5750518038611215565b503d611225565b6040513d6000823e3d90fd5b505050600090565b908382813d8311611281575b6112718183610d37565b810103126102ac575051386111e4565b503d611267565b818102929181159184041417156110a657565b81156112a5570490565b634e487b7160e01b600052601260045260246000fd5b6009549091906001600160a01b031615611301576112d88261119e565b918215611253576112e8906110c9565b90811561125357611113926112fc91611288565b61129b565b5050600090565b60018060a01b0316600052600d602052611113604060002054600f60205260406000205490611099565b60405162461bcd60e51b815260206004820152601960248201527f5665737465723a206e6f6e2d7472616e736665727261626c65000000000000006044820152606490fd5b1561137e57565b60405162461bcd60e51b815260206004820152602260248201527f5665737465723a206275726e2066726f6d20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b156113d557565b60405162461bcd60e51b815260206004820152601d60248201527f5665737465723a2062616c616e6365206973206e6f7420656e6f7567680000006044820152606490fd5b6001600160a01b031661142e811515611377565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020600093838552600d825261146b81604087205410156113ce565b838552600d82526114808160408720546110bc565b848652600d8352604086205561149881600a546110bc565b600a55604051908152a3565b9190801561179c576114b583611885565b60018060a01b03926114ce8285600654168330916117e1565b838116936114dd85151561183a565b6114e983600a54611099565b600a55600090858252602091600d83526040966115098689842054611099565b818352600d85528883205580827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef868b518a8152a380828460075416806116e6575b50505060ff600c5416806116d9575b611606575b50505061156b826110c9565b61157483611308565b116115b7575092516001600160a01b0390931683526020830152907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c90604090a1565b60849085519062461bcd60e51b825260048201526024808201527f5665737465723a206d6178207665737461626c6520616d6f756e7420657863656044820152631959195960e21b6064820152fd5b838360095416936008541660448a5180968193637aeceb1f60e11b835286600484015260248301525afa9283156116cf5790829189939461169a575b508152600d84522054116116585738808061155f565b60649085519062461bcd60e51b825280600483015260248201527f5665737465723a20696e73756666696369656e74206365632062616c616e63656044820152fd5b8580929550819394503d83116116c8575b6116b58183610d37565b8101031261022e57908791519238611642565b503d6116ab565b88513d84823e3d90fd5b508260095416151561155a565b828252600e8752868b83205491600d82528c8a61170682872054826112bb565b91858311611719575b505050505061154b565b61175561174a7f659523c479d006050ebc0d0e48fea36d1b2c5d45b2f31402ac6f8671fc84cc049761177e956110bc565b8095819430916117e1565b61176088151561183a565b61176c82600b54611099565b600b55878752600e8552862054611099565b858552600e83528d8520558c51908152a38082388681808a8e61170f565b60405162461bcd60e51b815260206004820152601760248201527f5665737465723a20696e76616c6964205f616d6f756e740000000000000000006044820152606490fd5b6040516323b872dd60e01b60208201526001600160a01b03928316602482015292909116604483015260648083019390935291815260a081019181831067ffffffffffffffff841117610d5957610eb292604052610eb4565b1561184157565b606460405162461bcd60e51b815260206004820152602060248201527f5665737465723a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b61188e81611962565b6001600160a01b0380831660008181526011602052604080822042905590949093929190831561195a57836118c29161141a565b808552600f6020526118d78385872054611099565b908552600f602052838520556006541690813b156104ea578251632770a7eb60e21b81523060048201526024810191909152929081908490604490829084905af1801561194e5761192757505050565b67ffffffffffffffff831161193a575052565b634e487b7160e01b81526041600452602490fd5b509051903d90823e3d90fd5b505050505050565b6001600160a01b03811660008181526011602052604090205461198590426110bc565b90600052600d602052604060002054918215611253576119b9916119ab6119b092611308565b611288565b6005549061129b565b8181106119c4575090565b905090565b6111139060018060a01b038116600052600f602052611a016119fb6040600020546010602052604060002054906110bc565b91611962565b90611099565b611a7d917f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d491611a3681611885565b611a3f816119c9565b9384809360018060a01b03808516806000526010602052611a6584604060002054611099565b90600052601060205260406000205560085416610e71565b604080516001600160a01b039290921682526020820192909252a190565b33600052601460205260ff6040600020541615611ab457565b60405162461bcd60e51b81526020600482015260116024820152702b32b9ba32b91d103337b93134b23232b760791b6044820152606490fdfea26469706673582212204ec2e325de603c91d8517820fdaa605484edead3ee87bf9d525ddac83ce788e764736f6c63430008130033405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace",
|
|
"deployedBytecode": "0x6040608081526004908136101561001557600080fd5b600091823560e01c90816301e3366714610c9b57816306fdde0314610bdc57816308f26c7614610bb6578163095ea7b3146104505781630db9ea4a14610b7e57816312d43a5114610b5557816313e82e7a14610b145781631514617e14610af557816315e90a4114610ad657816316ca05c514610aad57816318160ddd14610a8e57816323b872dd14610a7757816327e235e314610677578163313ce56714610a56578163342fcda914610a21578163387a785d146109e95781633ccfd60b1461083d5781633de35b7914610814578163402914f5146107ee57816341f22724146107a657816345f01ee61461078057816346ea87af146107425781634e71d92d146107105781635d50e729146106d85781636bcb411a146106af57816370a082311461067757816371417b321461063f5781637cf8f3b21461061657816393035473146105f557816395d89b41146104ee5781639cb7de4b1461048d578163a2545fa514610455578163a9059cbb14610450578163ac110d141461042c578163b5ff136d146103f4578163b6b55f25146103c757508063cfad57a214610379578063d5a73fdd1461034d578063d75abb5714610323578063d89b7007146102dc578063dd62ed3e146102af578063f2293bb01461025c578063f421f62a146102325763f6d6d5aa1461020757600080fd5b3461022e578160031936011261022e5760085490516001600160a01b039091168152602090f35b5080fd5b503461022e578160031936011261022e5760095490516001600160a01b0390911615158152602090f35b82346102ac5760203660031901126102ac57610276610cd1565b6001546001600160a01b0391906102909083163314610dd7565b166bffffffffffffffffffffffff60a01b600954161760095580f35b80fd5b503461022e578060031936011261022e57906020916102cc610cd1565b506102d5610cec565b5051908152f35b503461022e578060031936011261022e576102f5610cd1565b6102fd610e1b565b610305611a9b565b6001600160a01b031682526012602052812060243590556001815580f35b503461022e578160031936011261022e5760075490516001600160a01b0390911615158152602090f35b503461022e57602036600319011261022e5760209061037261036d610cd1565b611308565b9051908152f35b82346102ac5760203660031901126102ac57610393610cd1565b600154906001600160a01b03906103ad3383851614610dd7565b16906bffffffffffffffffffffffff60a01b161760015580f35b83903461022e57602036600319011261022e576103ed906103e6610e1b565b35336114a4565b6001815580f35b50503461022e57602036600319011261022e5760209181906001600160a01b0361041c610cd1565b168152600f845220549051908152f35b50503461022e578160031936011261022e5760209060ff600c541690519015158152f35b610db8565b50503461022e57602036600319011261022e5760209181906001600160a01b0361047d610cd1565b1681526013845220549051908152f35b50503461022e578060031936011261022e576104a7610cd1565b90602435918215158093036104ea576001546001600160a01b0391906104d09083163314610dd7565b168352601460205282209060ff8019835416911617905580f35b8380fd5b919050346105f157826003193601126105f157805191836003549060019082821c9282811680156105e7575b60209586861082146105d457508488529081156105b25750600114610559575b610555868661054b828b0383610d37565b5191829182610d6f565b0390f35b929550600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b82841061059f57505050826105559461054b92820101943861053a565b8054868501880152928601928101610582565b60ff191687860152505050151560051b830101925061054b826105553861053a565b634e487b7160e01b845260229052602483fd5b93607f169361051a565b8280fd5b50503461022e57602036600319011261022e5760209061037261036d610cd1565b50503461022e578060031936011261022e57602090610372610636610cd1565b602435906112bb565b50503461022e57602036600319011261022e5760209181906001600160a01b03610667610cd1565b1681526010845220549051908152f35b50503461022e57602036600319011261022e5760209181906001600160a01b0361069f610cd1565b168152600d845220549051908152f35b50503461022e578160031936011261022e5760095490516001600160a01b039091168152602090f35b50503461022e57602036600319011261022e5760209181906001600160a01b03610700610cd1565b168152600e845220549051908152f35b50503461022e578160031936011261022e579060209161072e610e1b565b600161073a3333611a07565b925551908152f35b50503461022e57602036600319011261022e5760209160ff9082906001600160a01b0361076d610cd1565b1681526014855220541690519015158152f35b50503461022e57602036600319011261022e576020906103726107a1610cd1565b61119e565b50503461022e578060031936011261022e576107c0610cd1565b6107c8610e1b565b6107d0611a9b565b6001600160a01b031682526013602052812060243590556001815580f35b50503461022e57602036600319011261022e5760209061037261080f610cd1565b6119c9565b50503461022e578160031936011261022e5760075490516001600160a01b039091168152602090f35b9050346105f157826003193601126105f157610857610e1b565b6108613333611a07565b50338352602091600f835280842054600d845281852054926108838285611099565b156109a65750917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56893916060936108d08360018060a01b03806007541661090c575b339060065416610e71565b6108da833361141a565b338752600f84528682812055601084528682812055601184528682812055815193338552840152820152a16001815580f35b338a52600e87526109a1856109518c8281205492839161092d331515611377565b338152600e8d52610943838383205410156113ce565b338152600e8d5220546110bc565b338d52600e8a52878d205561096881600b546110bc565b600b558b87518281527f659523c479d006050ebc0d0e48fea36d1b2c5d45b2f31402ac6f8671fc84cc048b3392a3338360075416610e71565b6108c5565b825162461bcd60e51b8152908101859052601d60248201527f5665737465723a2076657374656420616d6f756e74206973207a65726f0000006044820152606490fd5b50503461022e57602036600319011261022e5760209181906001600160a01b03610a11610cd1565b1681526012845220549051908152f35b50503461022e573660031901126102ac576103ed610a3d610cd1565b610a45610e1b565b610a4d611a9b565b602435906114a4565b8284346102ac57806003193601126102ac575060ff60209254169051908152f35b83346102ac57610a8636610d02565b505050611332565b50503461022e578160031936011261022e57602090600a549051908152f35b50503461022e578160031936011261022e5760065490516001600160a01b039091168152602090f35b50503461022e578160031936011261022e57602090600b549051908152f35b50503461022e578160031936011261022e576020906005549051908152f35b50503461022e578060031936011261022e5790602091600161073a610b37610cd1565b610b3f610cec565b90610b48610e1b565b610b50611a9b565b611a07565b50503461022e578160031936011261022e5760015490516001600160a01b039091168152602090f35b50503461022e57602036600319011261022e5760209181906001600160a01b03610ba6610cd1565b1681526011845220549051908152f35b50503461022e57602036600319011261022e57602090610372610bd7610cd1565b6110c9565b919050346105f157826003193601126105f157805191836002549060019082821c928281168015610c91575b60209586861082146105d457508488529081156105b25750600114610c3857610555868661054b828b0383610d37565b929550600283527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b828410610c7e57505050826105559461054b92820101943861053a565b8054868501880152928601928101610c61565b93607f1693610c08565b83346102ac57610cce610cad36610d02565b60015490926001600160a01b0391610cc89083163314610dd7565b16610e71565b80f35b600435906001600160a01b0382168203610ce757565b600080fd5b602435906001600160a01b0382168203610ce757565b6060906003190112610ce7576001600160a01b03906004358281168103610ce757916024359081168103610ce7579060443590565b90601f8019910116810190811067ffffffffffffffff821117610d5957604052565b634e487b7160e01b600052604160045260246000fd5b6020808252825181830181905290939260005b828110610da457505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501610d82565b34610ce7576040366003190112610ce757610dd1610cd1565b50611332565b15610dde57565b60405162461bcd60e51b815260206004820152601560248201527423b7bb32b93730b136329d103337b93134b23232b760591b6044820152606490fd5b600260005414610e2c576002600055565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b60405163a9059cbb60e01b60208201526001600160a01b03929092166024830152604480830193909352918152610eb291610ead606483610d37565b610eb4565b565b60018060a01b0316906040516040810167ffffffffffffffff9082811082821117610d59576040526020938483527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564858401526000808587829751910182855af1903d15610ff9573d928311610fe55790610f4f93929160405192610f4288601f19601f8401160185610d37565b83523d868885013e611004565b805191821591848315610fc1575b505050905015610f6a5750565b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152fd5b91938180945001031261022e578201519081151582036102ac575080388084610f5d565b634e487b7160e01b85526041600452602485fd5b90610f4f9392506060915b919290156110665750815115611018575090565b3b156110215790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b8251909150156110795750805190602001fd5b60405162461bcd60e51b81529081906110959060048301610d6f565b0390fd5b919082018092116110a657565b634e487b7160e01b600052601160045260246000fd5b919082039182116110a657565b6001600160a01b039081166000818152601360209081526040822054600954929490939192168061111b575b508352601290526040822054908181106111165761111392506110bc565b90565b505090565b92826024929460405193848092633792def360e01b82528860048301525afa91821561119357859261115e575b506012929161115691611099565b9290916110f5565b9091508281813d831161118c575b6111768183610d37565b81010312611188575190611156611148565b8480fd5b503d61116c565b6040513d87823e3d90fd5b6009546001600160a01b039081169190821561125357604051633792def360e01b81529116600482018190526020918281602481875afa9081156112475760009161125b575b501561125357819060246040518095819363a318021760e01b835260048301525afa9081156112475760009161121b575b50905090565b82813d8311611240575b61122f8183610d37565b810103126102ac5750518038611215565b503d611225565b6040513d6000823e3d90fd5b505050600090565b908382813d8311611281575b6112718183610d37565b810103126102ac575051386111e4565b503d611267565b818102929181159184041417156110a657565b81156112a5570490565b634e487b7160e01b600052601260045260246000fd5b6009549091906001600160a01b031615611301576112d88261119e565b918215611253576112e8906110c9565b90811561125357611113926112fc91611288565b61129b565b5050600090565b60018060a01b0316600052600d602052611113604060002054600f60205260406000205490611099565b60405162461bcd60e51b815260206004820152601960248201527f5665737465723a206e6f6e2d7472616e736665727261626c65000000000000006044820152606490fd5b1561137e57565b60405162461bcd60e51b815260206004820152602260248201527f5665737465723a206275726e2066726f6d20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b156113d557565b60405162461bcd60e51b815260206004820152601d60248201527f5665737465723a2062616c616e6365206973206e6f7420656e6f7567680000006044820152606490fd5b6001600160a01b031661142e811515611377565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020600093838552600d825261146b81604087205410156113ce565b838552600d82526114808160408720546110bc565b848652600d8352604086205561149881600a546110bc565b600a55604051908152a3565b9190801561179c576114b583611885565b60018060a01b03926114ce8285600654168330916117e1565b838116936114dd85151561183a565b6114e983600a54611099565b600a55600090858252602091600d83526040966115098689842054611099565b818352600d85528883205580827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef868b518a8152a380828460075416806116e6575b50505060ff600c5416806116d9575b611606575b50505061156b826110c9565b61157483611308565b116115b7575092516001600160a01b0390931683526020830152907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c90604090a1565b60849085519062461bcd60e51b825260048201526024808201527f5665737465723a206d6178207665737461626c6520616d6f756e7420657863656044820152631959195960e21b6064820152fd5b838360095416936008541660448a5180968193637aeceb1f60e11b835286600484015260248301525afa9283156116cf5790829189939461169a575b508152600d84522054116116585738808061155f565b60649085519062461bcd60e51b825280600483015260248201527f5665737465723a20696e73756666696369656e74206365632062616c616e63656044820152fd5b8580929550819394503d83116116c8575b6116b58183610d37565b8101031261022e57908791519238611642565b503d6116ab565b88513d84823e3d90fd5b508260095416151561155a565b828252600e8752868b83205491600d82528c8a61170682872054826112bb565b91858311611719575b505050505061154b565b61175561174a7f659523c479d006050ebc0d0e48fea36d1b2c5d45b2f31402ac6f8671fc84cc049761177e956110bc565b8095819430916117e1565b61176088151561183a565b61176c82600b54611099565b600b55878752600e8552862054611099565b858552600e83528d8520558c51908152a38082388681808a8e61170f565b60405162461bcd60e51b815260206004820152601760248201527f5665737465723a20696e76616c6964205f616d6f756e740000000000000000006044820152606490fd5b6040516323b872dd60e01b60208201526001600160a01b03928316602482015292909116604483015260648083019390935291815260a081019181831067ffffffffffffffff841117610d5957610eb292604052610eb4565b1561184157565b606460405162461bcd60e51b815260206004820152602060248201527f5665737465723a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b61188e81611962565b6001600160a01b0380831660008181526011602052604080822042905590949093929190831561195a57836118c29161141a565b808552600f6020526118d78385872054611099565b908552600f602052838520556006541690813b156104ea578251632770a7eb60e21b81523060048201526024810191909152929081908490604490829084905af1801561194e5761192757505050565b67ffffffffffffffff831161193a575052565b634e487b7160e01b81526041600452602490fd5b509051903d90823e3d90fd5b505050505050565b6001600160a01b03811660008181526011602052604090205461198590426110bc565b90600052600d602052604060002054918215611253576119b9916119ab6119b092611308565b611288565b6005549061129b565b8181106119c4575090565b905090565b6111139060018060a01b038116600052600f602052611a016119fb6040600020546010602052604060002054906110bc565b91611962565b90611099565b611a7d917f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d491611a3681611885565b611a3f816119c9565b9384809360018060a01b03808516806000526010602052611a6584604060002054611099565b90600052601060205260406000205560085416610e71565b604080516001600160a01b039290921682526020820192909252a190565b33600052601460205260ff6040600020541615611ab457565b60405162461bcd60e51b81526020600482015260116024820152702b32b9ba32b91d103337b93134b23232b760791b6044820152606490fdfea26469706673582212204ec2e325de603c91d8517820fdaa605484edead3ee87bf9d525ddac83ce788e764736f6c63430008130033",
|
|
"devdoc": {
|
|
"events": {
|
|
"Approval(address,address,uint256)": {
|
|
"details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance."
|
|
},
|
|
"Transfer(address,address,uint256)": {
|
|
"details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero."
|
|
}
|
|
},
|
|
"kind": "dev",
|
|
"methods": {},
|
|
"stateVariables": {
|
|
"totalSupply": {
|
|
"details": "Returns the amount of tokens in existence."
|
|
}
|
|
},
|
|
"version": 1
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
},
|
|
"storageLayout": {
|
|
"storage": [
|
|
{
|
|
"astId": 10,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "_status",
|
|
"offset": 0,
|
|
"slot": "0",
|
|
"type": "t_uint256"
|
|
},
|
|
{
|
|
"astId": 888,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "gov",
|
|
"offset": 0,
|
|
"slot": "1",
|
|
"type": "t_address"
|
|
},
|
|
{
|
|
"astId": 2907,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "name",
|
|
"offset": 0,
|
|
"slot": "2",
|
|
"type": "t_string_storage"
|
|
},
|
|
{
|
|
"astId": 2909,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "symbol",
|
|
"offset": 0,
|
|
"slot": "3",
|
|
"type": "t_string_storage"
|
|
},
|
|
{
|
|
"astId": 2912,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "decimals",
|
|
"offset": 0,
|
|
"slot": "4",
|
|
"type": "t_uint8"
|
|
},
|
|
{
|
|
"astId": 2914,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "vestingDuration",
|
|
"offset": 0,
|
|
"slot": "5",
|
|
"type": "t_uint256"
|
|
},
|
|
{
|
|
"astId": 2916,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "esToken",
|
|
"offset": 0,
|
|
"slot": "6",
|
|
"type": "t_address"
|
|
},
|
|
{
|
|
"astId": 2918,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "pairToken",
|
|
"offset": 0,
|
|
"slot": "7",
|
|
"type": "t_address"
|
|
},
|
|
{
|
|
"astId": 2920,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "claimableToken",
|
|
"offset": 0,
|
|
"slot": "8",
|
|
"type": "t_address"
|
|
},
|
|
{
|
|
"astId": 2923,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "rewardTracker",
|
|
"offset": 0,
|
|
"slot": "9",
|
|
"type": "t_address"
|
|
},
|
|
{
|
|
"astId": 2926,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "totalSupply",
|
|
"offset": 0,
|
|
"slot": "10",
|
|
"type": "t_uint256"
|
|
},
|
|
{
|
|
"astId": 2928,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "pairSupply",
|
|
"offset": 0,
|
|
"slot": "11",
|
|
"type": "t_uint256"
|
|
},
|
|
{
|
|
"astId": 2930,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "needCheckStake",
|
|
"offset": 0,
|
|
"slot": "12",
|
|
"type": "t_bool"
|
|
},
|
|
{
|
|
"astId": 2934,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "balances",
|
|
"offset": 0,
|
|
"slot": "13",
|
|
"type": "t_mapping(t_address,t_uint256)"
|
|
},
|
|
{
|
|
"astId": 2939,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "pairAmounts",
|
|
"offset": 0,
|
|
"slot": "14",
|
|
"type": "t_mapping(t_address,t_uint256)"
|
|
},
|
|
{
|
|
"astId": 2944,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "cumulativeClaimAmounts",
|
|
"offset": 0,
|
|
"slot": "15",
|
|
"type": "t_mapping(t_address,t_uint256)"
|
|
},
|
|
{
|
|
"astId": 2949,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "claimedAmounts",
|
|
"offset": 0,
|
|
"slot": "16",
|
|
"type": "t_mapping(t_address,t_uint256)"
|
|
},
|
|
{
|
|
"astId": 2953,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "lastVestingTimes",
|
|
"offset": 0,
|
|
"slot": "17",
|
|
"type": "t_mapping(t_address,t_uint256)"
|
|
},
|
|
{
|
|
"astId": 2958,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "cumulativeRewardDeductions",
|
|
"offset": 0,
|
|
"slot": "18",
|
|
"type": "t_mapping(t_address,t_uint256)"
|
|
},
|
|
{
|
|
"astId": 2963,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "bonusRewards",
|
|
"offset": 0,
|
|
"slot": "19",
|
|
"type": "t_mapping(t_address,t_uint256)"
|
|
},
|
|
{
|
|
"astId": 2967,
|
|
"contract": "contracts/staking/Vester.sol:Vester",
|
|
"label": "isHandler",
|
|
"offset": 0,
|
|
"slot": "20",
|
|
"type": "t_mapping(t_address,t_bool)"
|
|
}
|
|
],
|
|
"types": {
|
|
"t_address": {
|
|
"encoding": "inplace",
|
|
"label": "address",
|
|
"numberOfBytes": "20"
|
|
},
|
|
"t_bool": {
|
|
"encoding": "inplace",
|
|
"label": "bool",
|
|
"numberOfBytes": "1"
|
|
},
|
|
"t_mapping(t_address,t_bool)": {
|
|
"encoding": "mapping",
|
|
"key": "t_address",
|
|
"label": "mapping(address => bool)",
|
|
"numberOfBytes": "32",
|
|
"value": "t_bool"
|
|
},
|
|
"t_mapping(t_address,t_uint256)": {
|
|
"encoding": "mapping",
|
|
"key": "t_address",
|
|
"label": "mapping(address => uint256)",
|
|
"numberOfBytes": "32",
|
|
"value": "t_uint256"
|
|
},
|
|
"t_string_storage": {
|
|
"encoding": "bytes",
|
|
"label": "string",
|
|
"numberOfBytes": "32"
|
|
},
|
|
"t_uint256": {
|
|
"encoding": "inplace",
|
|
"label": "uint256",
|
|
"numberOfBytes": "32"
|
|
},
|
|
"t_uint8": {
|
|
"encoding": "inplace",
|
|
"label": "uint8",
|
|
"numberOfBytes": "1"
|
|
}
|
|
}
|
|
}
|
|
} |