Verified contractPartialMIT
StablesPool
Address0xa249ee8255df0aa00a15262b16bca3efd66c3e4c
- Balance
0 ETH
- Transactions
15,166
- Compiler
solc 0.6.12
- Same code
Only this contract
Details
- Compiler
- solc 0.6.12+commit.27d51765
- Language
- solidity
- Optimization
- Yes, 999,999 runs
- EVM version
- istanbul
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 11,461,836
- Creation transaction
- 0xdd1bbfda30…995690ad4b
Read12
- BLOCKS_PER_WEEK() → (uint256)
- bsd() → (address)
- epochBsdPerBlock(uint256) → (uint256)
- epochEndBlocks(uint256) → (uint256)
- epochTotalRewards(uint256) → (uint256)
- getGeneratedReward(uint256,uint256) → (uint256)
- governance() → (address)
- pendingBasisDollar(uint256,address) → (uint256)
- poolInfo(uint256) → (address,uint256,uint256)
- poolLength() → (uint256)
- startBlock() → (uint256)
- userInfo(uint256,address) → (uint256,uint256,uint256)
Write6
- deposit(uint256,uint256)
- emergencyWithdraw(uint256)
- governanceRecoverUnsupported(address,uint256,address)
- setGovernance(address)
- updatePool(uint256)
- withdraw(uint256,uint256)
Events4
- Deposit(address,uint256,uint256)
- EmergencyWithdraw(address,uint256,uint256)
- RewardPaid(address,uint256)
- Withdraw(address,uint256,uint256)
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "_bsd",
"type": "address",
"internalType": "address"
},
{
"name": "_startBlock",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_lpTokens",
"type": "address[]",
"internalType": "address[]"
}
],
"stateMutability": "nonpayable"
},
{
"name": "Deposit",
"type": "event",
"inputs": [
{
"name": "user",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "pid",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "EmergencyWithdraw",
"type": "event",
"inputs": [
{
"name": "user",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "pid",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "RewardPaid",
"type": "event",
"inputs": [
{
"name": "user",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Withdraw",
"type": "event",
"inputs": [
{
"name": "user",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "pid",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "BLOCKS_PER_WEEK",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "bsd",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"stateMutability": "view"
},
{
"name": "deposit",
"type": "function",
"inputs": [
{
"name": "_pid",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "emergencyWithdraw",
"type": "function",
"inputs": [
{
"name": "_pid",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "epochBsdPerBlock",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "epochEndBlocks",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "epochTotalRewards",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "getGeneratedReward",
"type": "function",
"inputs": [
{
"name": "_from",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_to",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "governance",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "governanceRecoverUnsupported",
"type": "function",
"inputs": [
{
"name": "_token",
"type": "address",
"internalType": "contract IERC20"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "to",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "pendingBasisDollar",
"type": "function",
"inputs": [
{
"name": "_pid",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_user",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "poolInfo",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "lpToken",
"type": "address",
"internalType": "contract IERC20"
},
{
"name": "lastRewardBlock",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "accBsdPerShare",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "poolLength",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "setGovernance",
"type": "function",
"inputs": [
{
"name": "_governance",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "startBlock",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "updatePool",
"type": "function",
"inputs": [
{
"name": "_pid",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "userInfo",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "rewardDebt",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "accumulatedStakingPower",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "withdraw",
"type": "function",
"inputs": [
{
"name": "_pid",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.