0 txs
0 calls
constructor
No constructor.
functions
calculateRewards
viewfunction calculateRewards(address[] _winners, uint256 _prizePool) view returns (uint256[])
getDistributionType
purefunction getDistributionType() pure returns (string)
tournamentConfigs
viewfunction tournamentConfigs(address) view returns (bool isInitialized)
validateDistribution
viewfunction validateDistribution() view returns (bool)
initializeTournamentConfig
nonpayablefunction initializeTournamentConfig(bytes _config)
updateTournamentConfig
nonpayablefunction updateTournamentConfig(address tournament, bytes _config)
events
ConfigurationUpdated
event ConfigurationUpdated(address indexed tournament, uint256[] weights)
TournamentConfigured
event TournamentConfigured(address indexed tournament, uint256[] weights)
errors
ArrayLengthMismatch
error ArrayLengthMismatch()
InvalidWeights
error InvalidWeights()
NotTournamentOwner
error NotTournamentOwner()
NoWinnersProvided
error NoWinnersProvided()
TournamentAlreadyConfigured
error TournamentAlreadyConfigured()
TournamentNotConfigured
error TournamentNotConfigured()
ZeroScore
error ZeroScore(address participant)
creation bytecode
0x608080604052346015576108d2908161001b8239f35b600080fdfe6080604052600436101561001257600080fd5b60003560e01c80634da0e77c146104ff57806391277dfa146104bd5780639a6e9b1314610498578063a83e3c3b146102c3578063be721f3d146102425763c635a00b1461005e57600080fd5b3461023d57604036600319011261023d576004356001600160401b03811161023d573660238201121561023d5780600401356100a161009c826106ff565b610688565b916024602084848152019260051b8201019036821161023d57602401915b81831061021d578360243590336000526000602052604060002060ff6001820154161561020c578151156101fb5780549151918083106101f4575b61010661009c846106ff565b92808452610116601f19916106ff565b0136602085013760009160009085155b8383106101a1575050508382109081610197575b50610152575b6040518061014e8482610716565b0390f35b82039182116101815761017161014e9261016b836107bf565b516107f6565b61017a826107bf565b5282610140565b634e487b7160e01b600052601160045260246000fd5b905015158461013a565b9091936101ae8584610803565b90549060031b1c8088029088820414831715610181576001916127106101eb92046101d9888a6107e2565b526101e487896107e2565b51906107f6565b94019190610126565b50816100fa565b6305568ffd60e31b60005260046000fd5b633890a11b60e11b60005260046000fd5b82356001600160a01b038116810361023d578152602092830192016100bf565b600080fd5b3461023d57600036600319011261023d57604061025e81610688565b90600d82526c1d1bdc1e0b5dd95a59da1d1959609a1b6020830152805180926020825280519081602084015260005b8281106102ac5750506000828201840152601f01601f19168101030190f35b60208282018101518783018701528694500161028d565b3461023d57602036600319011261023d576004356001600160401b03811161023d576102f66103059136906004016106ad565b60208082518301019101610750565b80511561034057600090815b81518310156103515761032483836107e2565b5190811561034057600191610338916107f6565b920191610311565b63108cef9d60e31b60005260046000fd5b612710036103405733600052600060205260ff6001604060002001541661048757604080519081016001600160401b03811182821017610471576040528181526020810190600182523360005260006020526040600020905180519060018060401b03821161047157600160401b8211610471578254828455808310610448575b5060200182600052602060002060005b838110610434578686600187019051151560ff801983541691161790557fd9775cadc4d12c72ea0af9e2da8b2d2a087c6cdaa5f8cb66ca96ba25deaef1c76040518061042f339482610716565b0390a2005b6001906020845194019381840155016103e2565b8360005282602060002091820191015b81811061046557506103d2565b60008155600101610458565b634e487b7160e01b600052604160045260246000fd5b6383e8504760e01b60005260046000fd5b3461023d57600036600319011261023d5760206104b361081b565b6040519015158152f35b3461023d57602036600319011261023d576001600160a01b036104de610672565b166000526000602052602060ff600160406000200154166040519015158152f35b3461023d57604036600319011261023d57610518610672565b6024356001600160401b03811161023d576105379036906004016106ad565b33600052600060205260ff600160406000200154161561020c578060208061056493518301019101610750565b9081511561034057600091825b81518410156105a05761058484836107e2565b5190811561034057600191610598916107f6565b930192610571565b612710839103610340573360009081526020819052604090208251906001600160401b03821161047157600160401b8211610471578054828255808310610649575b506020840190600052602060002060005b838110610635576040516001600160a01b038616907fd35501c3ccba4d01f26d86302a9657b22f1dced04d06482aa42142206f0a8b4b908061042f8a82610716565b6001906020845194019381840155016105f3565b8160005282602060002091820191015b81811061066657506105e2565b60008155600101610659565b600435906001600160a01b038216820361023d57565b6040519190601f01601f191682016001600160401b0381118382101761047157604052565b81601f8201121561023d578035906001600160401b038211610471576106dc601f8301601f1916602001610688565b928284526020838301011161023d57816000926020809301838601378301015290565b6001600160401b0381116104715760051b60200190565b602060408183019282815284518094520192019060005b81811061073a5750505090565b825184526020938401939092019160010161072d565b60208183031261023d578051906001600160401b03821161023d57019080601f8301121561023d57815161078661009c826106ff565b9260208085848152019260051b82010192831161023d57602001905b8282106107af5750505090565b81518152602091820191016107a2565b8051156107cc5760200190565b634e487b7160e01b600052603260045260246000fd5b80518210156107cc5760209160051b010190565b9190820180921161018157565b80548210156107cc5760005260206000200190600090565b336000526000602052604060002060ff600182015416158015610893575b61088d57600080918054905b81841061085d57505061271091500361034057600190565b90916108698483610803565b90549060031b1c90811561034057600191610883916107f6565b9301929190610845565b50600090565b5080541561083956fea2646970667358221220317fd9da00a433b26b65fea6f47f8e3d9578859f5eda0116fbd9af8a793dc32464736f6c634300081b0033