0 txs
1 call
constructor
No constructor.
functions
entryAmount
viewfunction entryAmount() view returns (uint256)
hasClaimedPrize
viewfunction hasClaimedPrize(address) view returns (bool)
isLotteryOpen
viewfunction isLotteryOpen() view returns (bool)
mpsFoundation
viewfunction mpsFoundation() view returns (address)
owner
viewfunction owner() view returns (address)
participants
viewfunction participants(uint256) view returns (address)
proxiableUUID
viewfunction proxiableUUID() view returns (bytes32)
UPGRADE_INTERFACE_VERSION
viewfunction UPGRADE_INTERFACE_VERSION() view returns (string)
usdtToken
viewfunction usdtToken() view returns (address)
enter
nonpayablefunction enter(address[] upwardRefferals)
initialize
nonpayablefunction initialize(address initialOwner)
provideEntery
nonpayablefunction provideEntery(address userAddress, address[] upwardRefferals)
renounceOwnership
nonpayablefunction renounceOwnership()
setFeesAddress
nonpayablefunction setFeesAddress(address _fees)
setLotteryStatus
nonpayablefunction setLotteryStatus(bool status)
setMpsFoundationAddress
nonpayablefunction setMpsFoundationAddress(address _mpsFoundation)
setUSDT
nonpayablefunction setUSDT(address _usdtToken)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
upgradeToAndCall
payablefunction upgradeToAndCall(address newImplementation, bytes data) payable
withdrawPrize
nonpayablefunction withdrawPrize(uint256 prizeAmount, address userAddress)
withdrawUSDT
nonpayablefunction withdrawUSDT(uint256 amount)
events
Initialized
event Initialized(uint64 version)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
ParticipantEntered
event ParticipantEntered(address indexed participant, address[], address lottery, uint256 amount)
Upgraded
event Upgraded(address indexed implementation)
errors
AddressEmptyCode
error AddressEmptyCode(address target)
ERC1967InvalidImplementation
error ERC1967InvalidImplementation(address implementation)
ERC1967NonPayable
error ERC1967NonPayable()
FailedInnerCall
error FailedInnerCall()
InvalidInitialization
error InvalidInitialization()
NotInitializing
error NotInitializing()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
UUPSUnauthorizedCallContext
error UUPSUnauthorizedCallContext()
UUPSUnsupportedProxiableUUID
error UUPSUnsupportedProxiableUUID(bytes32 slot)
creation bytecode
0x60a060405230608052348015610013575f80fd5b50608051611ab261003a5f395f81816112280152818161125101526113950152611ab25ff3fe608060405260043610610129575f3560e01c80637f5debd5116100a8578063a98ad46c1161006d578063a98ad46c1461031a578063ad3cb1cc14610339578063c4d66de814610376578063cabc0f4314610395578063cfa355d5146103b5578063f2fde38b146103d4575f80fd5b80637f5debd5146102755780638da5cb5b14610294578063991def3c146102a8578063a341c7f2146102bd578063a52c98b0146102dc575f80fd5b80634f1ef286116100ee5780634f1ef286146101ee57806350c1b9231461020157806352d1902d14610220578063715018a614610242578063736e4f5714610256575f80fd5b80632375ed3d1461013457806335c1d349146101555780633ea521ef14610191578063490ddcd8146101b0578063491540ac146101cf575f80fd5b3661013057005b5f80fd5b34801561013f575f80fd5b5061015361014e3660046116c8565b6103f3565b005b348015610160575f80fd5b5061017461016f366004611707565b610568565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561019c575f80fd5b506101536101ab366004611707565b61058f565b3480156101bb575f80fd5b506101536101ca366004611739565b610622565b3480156101da575f80fd5b506101536101e9366004611788565b610706565b6101536101fc3660046117b5565b610730565b34801561020c575f80fd5b5061015361021b366004611788565b61074b565b34801561022b575f80fd5b50610234610775565b604051908152602001610188565b34801561024d575f80fd5b50610153610790565b348015610261575f80fd5b50610153610270366004611788565b6107a3565b348015610280575f80fd5b5061015361028f366004611871565b610815565b34801561029f575f80fd5b50610174610a6f565b3480156102b3575f80fd5b5061023460035481565b3480156102c8575f80fd5b506101536102d73660046118a8565b610a9d565b3480156102e7575f80fd5b5061030a6102f6366004611788565b60056020525f908152604090205460ff1681565b6040519015158152602001610188565b348015610325575f80fd5b50600454610174906001600160a01b031681565b348015610344575f80fd5b50610369604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018891906118e5565b348015610381575f80fd5b50610153610390366004611788565b610ac3565b3480156103a0575f80fd5b5060025461030a90600160a01b900460ff1681565b3480156103c0575f80fd5b50600254610174906001600160a01b031681565b3480156103df575f80fd5b506101536103ee366004611788565b610bf8565b600254600160a01b900460ff166104455760405162461bcd60e51b8152602060048201526011602482015270131bdd1d195c9e481a5cc818db1bdcd959607a1b60448201526064015b60405180910390fd5b600480546003546040516323b872dd60e01b8152339381019390935230602484015260448301526001600160a01b0316906323b872dd906064016020604051808303815f875af115801561049b573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104bf9190611917565b6104db5760405162461bcd60e51b815260040161043c90611932565b5f80546001810182559080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5630180546001600160a01b031916331790556105238282610c35565b60035460405133917fba0b64ac21ddf0ba0cfd1843291cb81c255998f068141cee3b9f88285912d0589161055c9186918691309161195b565b60405180910390a25050565b5f8181548110610576575f80fd5b5f918252602090912001546001600160a01b0316905081565b6105976111eb565b6004546001600160a01b031663a9059cbb6105b0610a6f565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303815f875af11580156105fa573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061061e9190611917565b5050565b61062a6111eb565b600254600160a01b900460ff166106775760405162461bcd60e51b8152602060048201526011602482015270131bdd1d195c9e481a5cc818db1bdcd959607a1b604482015260640161043c565b5f80546001810182559080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5630180546001600160a01b0319166001600160a01b0385169081179091556003546040517fba0b64ac21ddf0ba0cfd1843291cb81c255998f068141cee3b9f88285912d058916106f9918691869130919061195b565b60405180910390a2505050565b61070e6111eb565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b61073861121d565b610741826112c1565b61061e82826112c9565b6107536111eb565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b5f61077e61138a565b505f80516020611a5d83398151915290565b6107986111eb565b6107a15f6113d3565b565b6107ab6111eb565b6001600160a01b0381166107f35760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015260640161043c565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146108655760405162461bcd60e51b815260206004820152601360248201527213db9b1e48189858dad95b99081dd85b1b195d606a1b604482015260640161043c565b6001600160a01b0381165f9081526005602052604090205460ff16156108d95760405162461bcd60e51b815260206004820152602360248201527f5072697a6520616c726561647920636c61696d656420666f722074686973207560448201526239b2b960e91b606482015260840161043c565b6108eb82670de0b6b3a76400006119cd565b91505f60646108fb84600a6119cd565b61090591906119e4565b90505f6109128285611a03565b6004805460405163a9059cbb60e01b81526001600160a01b038781169382019390935260248101849052929350169063a9059cbb906044016020604051808303815f875af1158015610966573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098a9190611917565b6109a65760405162461bcd60e51b815260040161043c90611932565b6004546001600160a01b031663a9059cbb6109bf610a6f565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018590526044016020604051808303815f875af1158015610a09573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a2d9190611917565b610a495760405162461bcd60e51b815260040161043c90611932565b50506001600160a01b03165f908152600560205260409020805460ff1916600117905550565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610aa56111eb565b60028054911515600160a01b0260ff60a01b19909216919091179055565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f81158015610b085750825b90505f8267ffffffffffffffff166001148015610b245750303b155b905081158015610b32575080155b15610b505760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610b7a57845460ff60401b1916600160401b1785555b610b8386611443565b610b8b611454565b6002805460ff60a01b1916600160a01b179055674563918244f400006003558315610bf057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610c006111eb565b6001600160a01b038116610c2957604051631e4fbdf760e01b81525f600482015260240161043c565b610c32816113d3565b50565b670de0b6b3a76400008115801590610c7a57505f83838281610c5957610c59611a16565b9050602002016020810190610c6e9190611788565b6001600160a01b031614155b15610d3a576004546001600160a01b031663a9059cbb84845f81610ca057610ca0611a16565b9050602002016020810190610cb59190611788565b6064610cc28560326119cd565b610ccc91906119e4565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af1158015610d14573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d389190611917565b505b600182118015610d7a57505f83836001818110610d5957610d59611a16565b9050602002016020810190610d6e9190611788565b6001600160a01b031614155b15610e3d576004546001600160a01b031663a9059cbb84846001818110610da357610da3611a16565b9050602002016020810190610db89190611788565b6064610dc58560146119cd565b610dcf91906119e4565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af1158015610e17573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e3b9190611917565b505b600282118015610e7d57505f83836002818110610e5c57610e5c611a16565b9050602002016020810190610e719190611788565b6001600160a01b031614155b15610f40576004546001600160a01b031663a9059cbb84846002818110610ea657610ea6611a16565b9050602002016020810190610ebb9190611788565b6064610ec885600a6119cd565b610ed291906119e4565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af1158015610f1a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f3e9190611917565b505b600382118015610f8057505f83836003818110610f5f57610f5f611a16565b9050602002016020810190610f749190611788565b6001600160a01b031614155b15611043576004546001600160a01b031663a9059cbb84846003818110610fa957610fa9611a16565b9050602002016020810190610fbe9190611788565b6064610fcb8560056119cd565b610fd591906119e4565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af115801561101d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110419190611917565b505b60048211801561108357505f8383600481811061106257611062611a16565b90506020020160208101906110779190611788565b6001600160a01b031614155b1561114957600480546001600160a01b03169063a9059cbb90859085908181106110af576110af611a16565b90506020020160208101906110c49190611788565b60646110d18560056119cd565b6110db91906119e4565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af1158015611123573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111479190611917565b505b6004546002546001600160a01b039182169163a9059cbb9116606461116f85600a6119cd565b61117991906119e4565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af11580156111c1573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e59190611917565b50505050565b336111f4610a6f565b6001600160a01b0316146107a15760405163118cdaa760e01b815233600482015260240161043c565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806112a357507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166112975f80516020611a5d833981519152546001600160a01b031690565b6001600160a01b031614155b156107a15760405163703e46dd60e11b815260040160405180910390fd5b610c326111eb565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611323575060408051601f3d908101601f1916820190925261132091810190611a2a565b60015b61134b57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161043c565b5f80516020611a5d833981519152811461137b57604051632a87526960e21b81526004810182905260240161043c565b611385838361145c565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146107a15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b61144b6114b1565b610c32816114fa565b6107a16114b1565b61146582611502565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156114a9576113858282611565565b61061e6115d9565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff166107a157604051631afcd79f60e31b815260040160405180910390fd5b610c006114b1565b806001600160a01b03163b5f0361153757604051634c9c8ce360e01b81526001600160a01b038216600482015260240161043c565b5f80516020611a5d83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f80846001600160a01b0316846040516115819190611a41565b5f60405180830381855af49150503d805f81146115b9576040519150601f19603f3d011682016040523d82523d5f602084013e6115be565b606091505b50915091506115ce8583836115f8565b925050505b92915050565b34156107a15760405163b398979f60e01b815260040160405180910390fd5b60608261160d5761160882611657565b611650565b815115801561162457506001600160a01b0384163b155b1561164d57604051639996b31560e01b81526001600160a01b038516600482015260240161043c565b50805b9392505050565b8051156116675780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b5f8083601f840112611690575f80fd5b50813567ffffffffffffffff8111156116a7575f80fd5b6020830191508360208260051b85010111156116c1575f80fd5b9250929050565b5f80602083850312156116d9575f80fd5b823567ffffffffffffffff8111156116ef575f80fd5b6116fb85828601611680565b90969095509350505050565b5f60208284031215611717575f80fd5b5035919050565b80356001600160a01b0381168114611734575f80fd5b919050565b5f805f6040848603121561174b575f80fd5b6117548461171e565b9250602084013567ffffffffffffffff81111561176f575f80fd5b61177b86828701611680565b9497909650939450505050565b5f60208284031215611798575f80fd5b6116508261171e565b634e487b7160e01b5f52604160045260245ffd5b5f80604083850312156117c6575f80fd5b6117cf8361171e565b9150602083013567ffffffffffffffff808211156117eb575f80fd5b818501915085601f8301126117fe575f80fd5b813581811115611810576118106117a1565b604051601f8201601f19908116603f01168101908382118183101715611838576118386117a1565b81604052828152886020848701011115611850575f80fd5b826020860160208301375f6020848301015280955050505050509250929050565b5f8060408385031215611882575f80fd5b823591506118926020840161171e565b90509250929050565b8015158114610c32575f80fd5b5f602082840312156118b8575f80fd5b81356116508161189b565b5f5b838110156118dd5781810151838201526020016118c5565b50505f910152565b602081525f82518060208401526119038160408501602087016118c3565b601f01601f19169190910160400192915050565b5f60208284031215611927575f80fd5b81516116508161189b565b6020808252600f908201526e151c985b9cd9995c8819985a5b1959608a1b604082015260600190565b606080825281018490525f8560808301825b8781101561199b576001600160a01b036119868461171e565b1682526020928301929091019060010161196d565b506001600160a01b0395909516602084015250506040015292915050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176115d3576115d36119b9565b5f826119fe57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156115d3576115d36119b9565b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215611a3a575f80fd5b5051919050565b5f8251611a528184602087016118c3565b919091019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122097dd18b67ceebabe5e480bcb995300691a444ecf3630366fc72c9ae31a8a78fd64736f6c63430008180033