test-contracts-sovryn
Version:
Smart contracts for the Sovryn protocol and external integrations.
375 lines (374 loc) • 14.9 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "LiquidityMiningStorage",
"sourceName": "contracts/farm/LiquidityMiningStorage.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "admin",
"type": "address"
}
],
"name": "AdminAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "admin",
"type": "address"
}
],
"name": "AdminRemoved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"constant": true,
"inputs": [],
"name": "SOV",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_admin",
"type": "address"
}
],
"name": "addAdmin",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "admins",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "bonusEndBlock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "endBlock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "isOwner",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "lockedSOV",
"outputs": [
{
"internalType": "contract ILockedSOV",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "poolInfoList",
"outputs": [
{
"internalType": "contract IERC20",
"name": "poolToken",
"type": "address"
},
{
"internalType": "uint96",
"name": "allocationPoint",
"type": "uint96"
},
{
"internalType": "uint256",
"name": "lastRewardBlock",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "accumulatedRewardPerShare",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_admin",
"type": "address"
}
],
"name": "removeAdmin",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "rewardTokensPerBlock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "startBlock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "totalAllocationPoint",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "totalUsersBalance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "unlockedImmediatelyPercent",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "userInfoMap",
"outputs": [
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "rewardDebt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "accumulatedReward",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "wrapper",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x608060405260006100176001600160e01b0361006616565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006a565b3390565b6106ae806100796000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063787b4026116100a2578063a1a6690f11610071578063a1a6690f146102b5578063ac210cc7146102bd578063f2f46b3b146102c5578063f2fde38b146102cd578063f729a404146102f357610116565b8063787b4026146102435780638da5cb5b1461029d5780638f32d59b146102a55780639a13ba29146102ad57610116565b806329d0fa3e116100e957806329d0fa3e14610189578063429b62e51461019157806348cd4cb1146101cb5780635f02c145146101d3578063704802751461021d57610116565b8063083c63231461011b57806308dcb360146101355780631785f53c146101595780631aed655314610181575b600080fd5b6101236102fb565b60408051918252519081900360200190f35b61013d610301565b604080516001600160a01b039092168252519081900360200190f35b61017f6004803603602081101561016f57600080fd5b50356001600160a01b0316610310565b005b6101236103b0565b6101236103b6565b6101b7600480360360208110156101a757600080fd5b50356001600160a01b03166103bc565b604080519115158252519081900360200190f35b6101236103d1565b6101ff600480360360408110156101e957600080fd5b50803590602001356001600160a01b03166103d7565b60408051938452602084019290925282820152519081900360600190f35b61017f6004803603602081101561023357600080fd5b50356001600160a01b0316610403565b6102606004803603602081101561025957600080fd5b50356104a7565b604080516001600160a01b0390951685526bffffffffffffffffffffffff9093166020850152838301919091526060830152519081900360800190f35b61013d6104f8565b6101b7610507565b61012361052b565b610123610531565b61013d610537565b61013d610546565b61017f600480360360208110156102e357600080fd5b50356001600160a01b0316610555565b6101236105a9565b60055481565b600c546001600160a01b031681565b610318610507565b610358576040805162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b604482015290519081900360640190fd5b6001600160a01b038116600081815260016020908152604091829020805460ff19169055815192835290517fa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f9281900390910190a150565b60045481565b60025481565b60016020526000908152604090205460ff1681565b60035481565b600a60209081526000928352604080842090915290825290208054600182015460029092015490919083565b61040b610507565b61044b576040805162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b604482015290519081900360640190fd5b6001600160a01b038116600081815260016020818152604092839020805460ff1916909217909155815192835290517f44d6d25963f097ad14f29f06854a01f575648a1ef82f30e562ccd3889717e3399281900390910190a150565b600781815481106104b457fe5b60009182526020909120600390910201805460018201546002909201546001600160a01b0382169350600160a01b9091046bffffffffffffffffffffffff16919084565b6000546001600160a01b031690565b600080546001600160a01b031661051c6105af565b6001600160a01b031614905090565b600b5481565b60095481565b6006546001600160a01b031681565b600d546001600160a01b031681565b61055d610507565b61059d576040805162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b604482015290519081900360640190fd5b6105a6816105b3565b50565b600e5481565b3390565b6001600160a01b0381166105f85760405162461bcd60e51b81526004018080602001828103825260268152602001806106546026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a265627a7a72315820b31dbdc5d863710899aea15ee23176bb37e9a069acdbd0d5f49cd4a4fdb51c8864736f6c63430005110032",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063787b4026116100a2578063a1a6690f11610071578063a1a6690f146102b5578063ac210cc7146102bd578063f2f46b3b146102c5578063f2fde38b146102cd578063f729a404146102f357610116565b8063787b4026146102435780638da5cb5b1461029d5780638f32d59b146102a55780639a13ba29146102ad57610116565b806329d0fa3e116100e957806329d0fa3e14610189578063429b62e51461019157806348cd4cb1146101cb5780635f02c145146101d3578063704802751461021d57610116565b8063083c63231461011b57806308dcb360146101355780631785f53c146101595780631aed655314610181575b600080fd5b6101236102fb565b60408051918252519081900360200190f35b61013d610301565b604080516001600160a01b039092168252519081900360200190f35b61017f6004803603602081101561016f57600080fd5b50356001600160a01b0316610310565b005b6101236103b0565b6101236103b6565b6101b7600480360360208110156101a757600080fd5b50356001600160a01b03166103bc565b604080519115158252519081900360200190f35b6101236103d1565b6101ff600480360360408110156101e957600080fd5b50803590602001356001600160a01b03166103d7565b60408051938452602084019290925282820152519081900360600190f35b61017f6004803603602081101561023357600080fd5b50356001600160a01b0316610403565b6102606004803603602081101561025957600080fd5b50356104a7565b604080516001600160a01b0390951685526bffffffffffffffffffffffff9093166020850152838301919091526060830152519081900360800190f35b61013d6104f8565b6101b7610507565b61012361052b565b610123610531565b61013d610537565b61013d610546565b61017f600480360360208110156102e357600080fd5b50356001600160a01b0316610555565b6101236105a9565b60055481565b600c546001600160a01b031681565b610318610507565b610358576040805162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b604482015290519081900360640190fd5b6001600160a01b038116600081815260016020908152604091829020805460ff19169055815192835290517fa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f9281900390910190a150565b60045481565b60025481565b60016020526000908152604090205460ff1681565b60035481565b600a60209081526000928352604080842090915290825290208054600182015460029092015490919083565b61040b610507565b61044b576040805162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b604482015290519081900360640190fd5b6001600160a01b038116600081815260016020818152604092839020805460ff1916909217909155815192835290517f44d6d25963f097ad14f29f06854a01f575648a1ef82f30e562ccd3889717e3399281900390910190a150565b600781815481106104b457fe5b60009182526020909120600390910201805460018201546002909201546001600160a01b0382169350600160a01b9091046bffffffffffffffffffffffff16919084565b6000546001600160a01b031690565b600080546001600160a01b031661051c6105af565b6001600160a01b031614905090565b600b5481565b60095481565b6006546001600160a01b031681565b600d546001600160a01b031681565b61055d610507565b61059d576040805162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b604482015290519081900360640190fd5b6105a6816105b3565b50565b600e5481565b3390565b6001600160a01b0381166105f85760405162461bcd60e51b81526004018080602001828103825260268152602001806106546026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a265627a7a72315820b31dbdc5d863710899aea15ee23176bb37e9a069acdbd0d5f49cd4a4fdb51c8864736f6c63430005110032",
"linkReferences": {},
"deployedLinkReferences": {}
}