63 txs
64 calls
constructor
constructor(address _owner, address _BBITS)
functions
BBITS
viewfunction BBITS() view returns (address)
count
viewfunction count() view returns (uint256)
duration
viewfunction duration() view returns (uint256)
getEntryInfoForId
viewfunction getEntryInfoForId(uint256 _round, uint256 _entryId) view returns (tuple entry)
owner
viewfunction owner() view returns (address)
paused
viewfunction paused() view returns (bool)
rewardPercentage
viewfunction rewardPercentage() view returns (uint256)
round
viewfunction round(uint256) view returns (uint256 startedAt, uint256 settledAt, uint256 userReward, uint256 adminReward, uint256 entriesCount, uint256 rewardedCount)
status
viewfunction status() view returns (uint8)
totalRewardsPerRound
viewfunction totalRewardsPerRound() view returns (uint256)
approvePosts
nonpayablefunction approvePosts(uint256[] _entryIds)
depositBBITS
nonpayablefunction depositBBITS(uint256 _amount)
renounceOwnership
nonpayablefunction renounceOwnership()
setDuration
nonpayablefunction setDuration(uint256 _newDuration)
setPaused
nonpayablefunction setPaused(bool _setPaused)
setRewardPercentage
nonpayablefunction setRewardPercentage(uint256 _newRewardPercentage)
settleCurrentRound
nonpayablefunction settleCurrentRound()
setTotalRewardsPerRound
nonpayablefunction setTotalRewardsPerRound(uint256 _newTotalRewardsPerRound)
startNextRound
nonpayablefunction startNextRound()
submitPost
nonpayablefunction submitPost(string _link)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
events
End
event End(uint256 _roundId, uint256 _numberOfEntries, uint256 _userReward)
NewEntry
event NewEntry(uint256 _roundId, uint256 indexed _entryId, address _user, string _link)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Paused
event Paused(address account)
Start
event Start(uint256 _roundId)
Unpaused
event Unpaused(address account)
errors
AmountZero
error AmountZero()
EnforcedPause
error EnforcedPause()
ExpectedPause
error ExpectedPause()
IndexOutOfBounds
error IndexOutOfBounds()
InsufficientRewards
error InsufficientRewards()
InvalidPercentage
error InvalidPercentage()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
ReentrancyGuardReentrantCall
error ReentrancyGuardReentrantCall()
RoundActive
error RoundActive()
RoundExpired
error RoundExpired()
WrongStatus
error WrongStatus()
creation bytecode
0x60a060405234801561001057600080fd5b50604051611c74380380611c7483398101604081905261002f91610127565b60016000819055805460ff19169055816001600160a01b03811661006d57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b610076816100b5565b506001600160a01b0316608052506001805460ff60a81b19169055600060025562093a80600355683782dace9d90000000600455612328600555610161565b600180546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038116811461012457600080fd5b50565b6000806040838503121561013a57600080fd5b82516101458161010f565b60208401519092506101568161010f565b809150509250929050565b608051611adc610198600039600081816102be01528181610493015281816105e30152818161115901526112750152611adc6000f3fe608060405234801561001057600080fd5b50600436106101775760003560e01c80635c975abb116100d8578063b1cce8361161008c578063dab9f83211610066578063dab9f83214610374578063f2fde38b14610387578063f6be71d11461039a57600080fd5b8063b1cce83614610343578063bb476be11461034c578063ca1fe8091461036c57600080fd5b8063715018a6116100bd578063715018a6146103055780638da5cb5b1461030d578063a59977461461033057600080fd5b80635c975abb146102a35780635efa7b5e146102b957600080fd5b806334d5f37b1161012f5780633c3ccc44116101145780633c3ccc441461027f57806352d472eb1461028757806353d252341461029057600080fd5b806334d5f37b146101fc57806335a83b7c1461026c57600080fd5b80630fb5a6b4116101605780630fb5a6b4146101ad57806316c38b3c146101b6578063200d2ed2146101c957600080fd5b806306661abd1461017c5780630965367414610198575b600080fd5b61018560025481565b6040519081526020015b60405180910390f35b6101ab6101a6366004611468565b6103ad565b005b61018560035481565b6101ab6101c436600461148f565b6103f6565b6001546101ef907501000000000000000000000000000000000000000000900460ff1681565b60405161018f91906114e2565b61023f61020a366004611468565b600660205260009081526040902080546001820154600283015460038401546004850154600590950154939492939192909186565b604080519687526020870195909552938501929092526060840152608083015260a082015260c00161018f565b6101ab61027a366004611468565b610416565b6101ab610520565b61018560055481565b6101ab61029e366004611468565b610699565b60015460ff16604051901515815260200161018f565b6102e07f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161018f565b6101ab6106a6565b600154610100900473ffffffffffffffffffffffffffffffffffffffff166102e0565b6101ab61033e366004611523565b6106b8565b61018560045481565b61035f61035a366004611595565b61093b565b60405161018f91906115b7565b6101ab610add565b6101ab610382366004611665565b610bb3565b6101ab6103953660046116c8565b610d59565b6101ab6103a8366004611468565b610dbf565b6103b5610dcc565b6127108111156103f1576040517f1f3b85d300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600555565b6103fe610dcc565b8061040e5761040b610e25565b50565b61040b610ea3565b61041e610efc565b80600003610458576040517fcbca5aa200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018290527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906323b872dd906064016020604051808303816000875af11580156104f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051591906116fe565b5061040b6001600055565b610528610efc565b610530610dcc565b6000600180547501000000000000000000000000000000000000000000900460ff1690811115610562576105626114b3565b14610599576040517f8e78f0cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600480546040517f70a0823100000000000000000000000000000000000000000000000000000000815230928101929092529073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa15801561062a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064e919061171b565b11610685576040517fadc2dbfe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61068d610f3f565b6106976001600055565b565b6106a1610dcc565b600455565b6106ae610dcc565b6106976000610fe1565b6106c0610efc565b6106c861105f565b60018080547501000000000000000000000000000000000000000000900460ff16908111156106f9576106f96114b3565b14610730576040517f8e78f0cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60035460025460009081526006602052604090205461074f9042611763565b1115610787576040517f9e6d804f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000604051806080016040528060001515815260200184848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250938552505033602080850191909152426040948501526002548352600680825293832090930180546001808201835591845292849020855160049094020180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016931515939093178355928401519394508493919283019161085391508261184f565b50604082810151600283810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909316929092179091556060909301516003909201919091559054600090815260066020529081206004018054916108cf83611969565b9190505550600660006002548152602001908152602001600020600401547fe226ed7543842feb996aa243d91d48de6747c998dd1f9b86756dba240b193d4260025433868660405161092494939291906119a1565b60405180910390a2506109376001600055565b5050565b61097e604051806080016040528060001515815260200160608152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b6000838152600660208190526040909120015482106109c9576040517f4e23d03500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838152600660208190526040909120018054839081106109ed576109ed611a12565b60009182526020918290206040805160808101909152600490920201805460ff16151582526001810180549293919291840191610a29906117ab565b80601f0160208091040260200160405190810160405280929190818152602001828054610a55906117ab565b8015610aa25780601f10610a7757610100808354040283529160200191610aa2565b820191906000526020600020905b815481529060010190602001808311610a8557829003601f168201915b5050509183525050600282015473ffffffffffffffffffffffffffffffffffffffff1660208201526003909101546040909101529392505050565b610ae5610efc565b610aed610dcc565b60018080547501000000000000000000000000000000000000000000900460ff1690811115610b1e57610b1e6114b3565b14610b55576040517f8e78f0cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600354600254600090815260066020526040902054610b749042611763565b11610bab576040517fcb25950200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61068d61109c565b610bbb610efc565b610bc3610dcc565b60018080547501000000000000000000000000000000000000000000900460ff1690811115610bf457610bf46114b3565b14610c2b576040517f8e78f0cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060005b81811015610d255760025460009081526006602081905260409091200154848483818110610c5f57610c5f611a12565b9050602002013510610c9d576040517f4e23d03500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600660006002548152602001908152602001600020600601858584818110610cc957610cc9611a12565b9050602002013581548110610ce057610ce0611a12565b6000918252602090912060049091020180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055600101610c2f565b5060025460009081526006602052604081206005018054839290610d4a908490611a41565b90915550506001600055505050565b610d61610dcc565b73ffffffffffffffffffffffffffffffffffffffff8116610db6576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b61040b81610fe1565b610dc7610dcc565b600355565b60015473ffffffffffffffffffffffffffffffffffffffff610100909104163314610697576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610dad565b610e2d61142c565b600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390a1565b610eab61105f565b600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833610e78565b600260005403610f38576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600055565b4260066000600260008154610f5390611969565b918290555081526020810191909152604001600020556001805481907fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff1675010000000000000000000000000000000000000000008202179055507ff06a29c94c6f4edc1085072972d9441f7603e81c8535a308f214285d0653c850600254604051610e9991815260200190565b6001805473ffffffffffffffffffffffffffffffffffffffff8381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60015460ff1615610697576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600254600090815260066020526040812060050154819080156113835760006127106005546004546110ce9190611a54565b6110d89190611a6b565b90506110e48282611a6b565b9350806004546110f49190611763565b6002546000908152600660205260408120600401549194505b8181101561127257600660006002548152602001908152602001600020600601818154811061113e5761113e611a12565b600091825260209091206004909102015460ff161561126a577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60066000600254815260200190815260200160002060060183815481106111bc576111bc611a12565b600091825260209091206004918202016002015460405160e084901b7fffffffff0000000000000000000000000000000000000000000000000000000016815273ffffffffffffffffffffffffffffffffffffffff90911691810191909152602481018990526044016020604051808303816000875af1158015611244573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126891906116fe565b505b60010161110d565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6112d460015473ffffffffffffffffffffffffffffffffffffffff6101009091041690565b6112de8689611a54565b6004546112eb9190611763565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff909216600483015260248201526044016020604051808303816000875af115801561135b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137f91906116fe565b5050505b600280546000908152600660209081526040808320426001918201558454845281842085018890558454845281842060030187905580547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff169055925480835291839020600401548351928352908201529081018490527ff3c036e4a7fb63b29e6e18c536a312f7812592a7d677739d8d071c2ed81c9a1d9060600160405180910390a1505050565b60015460ff16610697576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006020828403121561147a57600080fd5b5035919050565b801515811461040b57600080fd5b6000602082840312156114a157600080fd5b81356114ac81611481565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b602081016002831061151d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b6000806020838503121561153657600080fd5b823567ffffffffffffffff8082111561154e57600080fd5b818501915085601f83011261156257600080fd5b81358181111561157157600080fd5b86602082850101111561158357600080fd5b60209290920196919550909350505050565b600080604083850312156115a857600080fd5b50508035926020909101359150565b6000602080835283511515602084015260208401516080604085015280518060a086015260005b818110156115fa5782810184015186820160c0015283016115de565b50600085820160c00152604086015173ffffffffffffffffffffffffffffffffffffffff811660608701529250606095909501516080850152505050601f919091017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160160c00190565b6000806020838503121561167857600080fd5b823567ffffffffffffffff8082111561169057600080fd5b818501915085601f8301126116a457600080fd5b8135818111156116b357600080fd5b8660208260051b850101111561158357600080fd5b6000602082840312156116da57600080fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146114ac57600080fd5b60006020828403121561171057600080fd5b81516114ac81611481565b60006020828403121561172d57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8181038181111561177657611776611734565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600181811c908216806117bf57607f821691505b6020821081036117f8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f82111561184a576000816000526020600020601f850160051c810160208610156118275750805b601f850160051c820191505b8181101561184657828155600101611833565b5050505b505050565b815167ffffffffffffffff8111156118695761186961177c565b61187d8161187784546117ab565b846117fe565b602080601f8311600181146118d0576000841561189a5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555611846565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b8281101561191d578886015182559484019460019091019084016118fe565b508582101561195957878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361199a5761199a611734565b5060010190565b84815273ffffffffffffffffffffffffffffffffffffffff8416602082015260606040820152816060820152818360808301376000818301608090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01601019392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b8082018082111561177657611776611734565b808202811582820484141761177657611776611734565b600082611aa1577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea2646970667358221220b95fff8ffcc3188cf79f4d8a67f52c4bb5433f522aaafea73b1c2cca1d4fff5864736f6c634300081900330000000000000000000000004fcfb1b0a8b44fe0a7c0dcfa4ef36d48d758c64d000000000000000000000000553c1f87c2ef99cca23b8a7ffaa629c8c2d27666