620 txs
625 calls
constructor
constructor(address _owner, address _tokenAddress, address _validSigner)
functions
accessTokenValidity
viewfunction accessTokenValidity() view returns (uint256)
auctionDuration
viewfunction auctionDuration() view returns (uint256)
auctionDurationIncrease
viewfunction auctionDurationIncrease() view returns (uint256)
auctionId
viewfunction auctionId() view returns (uint256)
auctions
viewfunction auctions(uint256) view returns (uint256 auctionAmount, uint256 startTime, uint256 endTime, uint256 referralFee, uint256 deployerFee, uint256 bidFee, uint256 bidCount, address highestBidder, bool ended)
bidFee
viewfunction bidFee() view returns (uint256)
deployerFee
viewfunction deployerFee() view returns (uint256)
isValidSigner
viewfunction isValidSigner(bytes signature, address wallet, uint256 timestamp, uint256 _auctionId) view returns (bool)
newAuctionIsAllowed
viewfunction newAuctionIsAllowed() view returns (bool)
owner
viewfunction owner() view returns (address)
paused
viewfunction paused() view returns (bool)
referralFee
viewfunction referralFee() view returns (uint256)
startingAmount
viewfunction startingAmount() view returns (uint256)
tokenAddress
viewfunction tokenAddress() view returns (address)
totalReferralRewardsCollected
viewfunction totalReferralRewardsCollected() view returns (uint256)
validSigner
viewfunction validSigner() view returns (address)
endAuction
nonpayablefunction endAuction()
pause
nonpayablefunction pause()
placeBid
nonpayablefunction placeBid(tuple accessToken, address _referral)
renounceOwnership
nonpayablefunction renounceOwnership()
setAccessTokenValidity
nonpayablefunction setAccessTokenValidity(uint256 _accessTokenValidity)
setAuctionDuration
nonpayablefunction setAuctionDuration(uint256 _auctionDuration)
setAuctionDurationIncrease
nonpayablefunction setAuctionDurationIncrease(uint256 _auctionDurationIncrease)
setBidFee
nonpayablefunction setBidFee(uint256 _bidFee)
setDeployerFee
nonpayablefunction setDeployerFee(uint256 _deployerFee)
setNewAuctionIsAllowed
nonpayablefunction setNewAuctionIsAllowed()
setNewAuctionIsNotAllowed
nonpayablefunction setNewAuctionIsNotAllowed()
setReferralFee
nonpayablefunction setReferralFee(uint256 _referralFee)
setStartingAmount
nonpayablefunction setStartingAmount(uint256 _startingAmount)
setValidSigner
nonpayablefunction setValidSigner(address _validSigner)
startAuction
nonpayablefunction startAuction()
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
unpause
nonpayablefunction unpause()
withdraw
nonpayablefunction withdraw()
withdrawExcess
nonpayablefunction withdrawExcess(uint256 _amount)
events
AuctionCreated
event AuctionCreated(uint256 indexed auctionId, uint256 auctionAmount, uint256 startTime, uint256 endTime, uint256 referralFee, uint256 deployerFee, uint256 bidFee)
AuctionDurationIncreaseUpdated
event AuctionDurationIncreaseUpdated(uint256 oldIncrease, uint256 newIncrease)
AuctionDurationUpdated
event AuctionDurationUpdated(uint256 oldDuration, uint256 newDuration)
AuctionEnded
event AuctionEnded(uint256 indexed auctionId, address indexed winner, uint256 amount)
BidFeeUpdated
event BidFeeUpdated(uint256 oldAmount, uint256 newAmount)
BidPlaced
event BidPlaced(uint256 indexed auctionId, address indexed bidder, address indexed referral, uint256 endTime, uint256 auctionAmount, uint256 bidCount)
DeployerFeeUpdated
event DeployerFeeUpdated(uint256 oldAmount, uint256 newAmount)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Paused
event Paused(address account)
ReferralFeeUpdated
event ReferralFeeUpdated(uint256 oldAmount, uint256 newAmount)
StartingAmountUpdated
event StartingAmountUpdated(uint256 oldAmount, uint256 newAmount)
Unpaused
event Unpaused(address account)
errors
AddressEmptyCode
error AddressEmptyCode(address target)
AddressInsufficientBalance
error AddressInsufficientBalance(address account)
ECDSAInvalidSignature
error ECDSAInvalidSignature()
ECDSAInvalidSignatureLength
error ECDSAInvalidSignatureLength(uint256 length)
ECDSAInvalidSignatureS
error ECDSAInvalidSignatureS(bytes32 s)
EnforcedPause
error EnforcedPause()
ExpectedPause
error ExpectedPause()
FailedInnerCall
error FailedInnerCall()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
ReentrancyGuardReentrantCall
error ReentrancyGuardReentrantCall()
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
creation bytecode
0x608060405261025860045561012c60055568056bc75e2d631000006006819055678ac7230489e800006007819055600855600955600b805460ff19169055603c600c553480156200004f57600080fd5b50604051620022d3380380620022d383398101604081905262000072916200016d565b826001600160a01b038116620000a257604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b620000ad8162000100565b506000805460ff60a01b1916905560018055600280546001600160a01b039384166001600160a01b0319909116179055600b80549190921661010002610100600160a81b031990911617905550620001b7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200016857600080fd5b919050565b6000806000606084860312156200018357600080fd5b6200018e8462000150565b92506200019e6020850162000150565b9150620001ae6040850162000150565b90509250925092565b61210c80620001c76000396000f3fe6080604052600436106102085760003560e01c8063627ada0511610118578063a497e674116100a0578063d733ac121161006f578063d733ac121461061d578063e14a211514610632578063e755ddd714610648578063f2fde38b14610668578063fe67a54b1461068857600080fd5b8063a497e674146105b1578063a76d13cd146105d1578063bcf95290146105e7578063caadca2a146105fd57600080fd5b8063738baed9116100e7578063738baed9146105285780638456cb591461054857806384ae2bc61461055d5780638da5cb5b146105735780639d76ea581461059157600080fd5b8063627ada05146104be5780636b64c769146104de578063713494d7146104f3578063715018a61461051357600080fd5b80633a21fbe71161019b5780634e4c8ab91161016a5780634e4c8ab91461037d578063544f113b146103a7578063571a26a0146103bd5780635c975abb1461047f5780635e56974a1461049e57600080fd5b80633a21fbe71461031d5780633ccfd60b1461033d5780633f4ba83a14610352578063457755cb1461036757600080fd5b80631764daae116101d75780631764daae146102955780631cc7d743146102b557806326018265146102f25780633404d2ca1461030857600080fd5b8063013869bf146102145780630cbf54c81461023657806310782f8f1461025f57806312d8b6591461027557600080fd5b3661020f57005b600080fd5b34801561022057600080fd5b5061023461022f366004611e2f565b61069d565b005b34801561024257600080fd5b5061024c60045481565b6040519081526020015b60405180910390f35b34801561026b57600080fd5b5061024c60035481565b34801561028157600080fd5b50610234610290366004611e64565b610764565b3480156102a157600080fd5b506102346102b0366004611e2f565b610794565b3480156102c157600080fd5b50600b546102da9061010090046001600160a01b031681565b6040516001600160a01b039091168152602001610256565b3480156102fe57600080fd5b5061024c600c5481565b34801561031457600080fd5b50610234610809565b34801561032957600080fd5b50610234610338366004611e2f565b61081d565b34801561034957600080fd5b5061023461088f565b34801561035e57600080fd5b50610234610945565b34801561037357600080fd5b5061024c60085481565b34801561038957600080fd5b50600b546103979060ff1681565b6040519015158152602001610256565b3480156103b357600080fd5b5061024c60065481565b3480156103c957600080fd5b506104306103d8366004611e2f565b600d60205260009081526040902080546001820154600283015460038401546004850154600586015460068701546007909701549596949593949293919290916001600160a01b03811690600160a01b900460ff1689565b60408051998a5260208a0198909852968801959095526060870193909352608086019190915260a085015260c08401526001600160a01b031660e0830152151561010082015261012001610256565b34801561048b57600080fd5b50600054600160a01b900460ff16610397565b3480156104aa57600080fd5b506102346104b9366004611e2f565b610955565b3480156104ca57600080fd5b506103976104d9366004611e7f565b6109eb565b3480156104ea57600080fd5b50610234610af1565b3480156104ff57600080fd5b5061023461050e366004611e2f565b610c1f565b34801561051f57600080fd5b50610234610c94565b34801561053457600080fd5b50610234610543366004611f12565b610ca6565b34801561055457600080fd5b50610234610d19565b34801561056957600080fd5b5061024c60075481565b34801561057f57600080fd5b506000546001600160a01b03166102da565b34801561059d57600080fd5b506002546102da906001600160a01b031681565b3480156105bd57600080fd5b506102346105cc366004611e2f565b610d29565b3480156105dd57600080fd5b5061024c600a5481565b3480156105f357600080fd5b5061024c60055481565b34801561060957600080fd5b50610234610618366004611e2f565b610dbf565b34801561062957600080fd5b50610234610e05565b34801561063e57600080fd5b5061024c60095481565b34801561065457600080fd5b50610234610663366004611e2f565b610e1c565b34801561067457600080fd5b50610234610683366004611e64565b610e30565b34801561069457600080fd5b50610234610e6b565b6106a5610f32565b600081116106ef5760405162461bcd60e51b81526020600482015260126024820152710626964466565206d757374206265203e20360741b60448201526064015b60405180910390fd5b806008546007546107009190611f7b565b111561071e5760405162461bcd60e51b81526004016106e690611f8e565b600980549082905560408051828152602081018490527f027f19d929f7a6554e110435954265aa711aac47f5b57a9cab2e2064c3abd26991015b60405180910390a15050565b61076c610f32565b600b80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b61079c610f32565b6007546009546107ac9190611fdc565b8111156107cb5760405162461bcd60e51b81526004016106e690611f8e565b600880549082905560408051828152602081018490527f0c0af956806bcfbf1b1c5e4329ea7035e662c1e2fda26ea42f58ebb514f306ff9101610758565b610811610f32565b600b805460ff19169055565b610825610f32565b6000811161088a5760405162461bcd60e51b815260206004820152602c60248201527f41636365737320746f6b656e2076616c6964697479206d75737420626520677260448201526b06561746572207468616e20360a41b60648201526084016106e6565b600c55565b610897610f32565b61089f610f5f565b600080546040516001600160a01b039091169047908381818185875af1925050503d80600081146108ec576040519150601f19603f3d011682016040523d82523d6000602084013e6108f1565b606091505b50509050806109395760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064016106e6565b5061094360018055565b565b61094d610f32565b610943610f89565b61095d610f32565b600081116109ad5760405162461bcd60e51b815260206004820152601a60248201527f7374617274696e67416d6f756e74206d757374206265203e203000000000000060448201526064016106e6565b600680549082905560408051828152602081018490527f4ccb4817dce85ff59507ca2c693ef8fdd6354419e5ed2a6ef9496d979d98e9da9101610758565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052605481018290526000908190607401604051602081830303815290604052805190602001209050600081604051602001610a7491907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b6040516020818303038152906040528051906020012090506000610ace828a8a8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610fde92505050565b600b5461010090046001600160a01b039081169116149998505050505050505050565b610af961100a565b610b01610f5f565b600b5460ff161515600114610b585760405162461bcd60e51b815260206004820152601760248201527f4e65772061756374696f6e206e6f7420616c6c6f77656400000000000000000060448201526064016106e6565b6003546000818152600d60205260409020901580610b8657506007810154600160a01b900460ff1615156001145b610bcb5760405162461bcd60e51b815260206004820152601660248201527541756374696f6e20616c72656164792061637469766560501b60448201526064016106e6565b60038054906000610bdb83611fef565b9091555050600354600254600454610c1592916001600160a01b0316904290610c049082611f7b565b600654600754600854600954611035565b6109396000611269565b610c27610f32565b600854600954610c379190611fdc565b811115610c565760405162461bcd60e51b81526004016106e690611f8e565b600780549082905560408051828152602081018490527fe6a16ded5057640d8831f18cd4885a75642c76b3fde5215975c3d9735027fa209101610758565b610c9c610f32565b6109436000611644565b610cae61100a565b610cb6610f5f565b610cc08233611694565b610d035760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21030b1b1b2b9b9903a37b5b2b760611b60448201526064016106e6565b610d0c81611269565b610d1560018055565b5050565b610d21610f32565b610943611739565b610d31610f32565b60008111610d815760405162461bcd60e51b815260206004820152601b60248201527f61756374696f6e4475726174696f6e206d757374206265203e2030000000000060448201526064016106e6565b600480549082905560408051828152602081018490527f9702db1e67fa6b64b8288101859f3b327a978f15d66e12ad769e5bbf30814d289101610758565b610dc7610f32565b600580549082905560408051828152602081018490527fa0c8ba418e7f434a532cdc1be7da4ac9ca7e416e31946164f008fd1d7f79772f9101610758565b610e0d610f32565b600b805460ff19166001179055565b610e24610f32565b610e2d8161177c565b50565b610e38610f32565b6001600160a01b038116610e6257604051631e4fbdf760e01b8152600060048201526024016106e6565b610e2d81611644565b610e7361100a565b610e7b610f5f565b6003546000908152600d602052604090206007810154600160a01b900460ff1615610ee05760405162461bcd60e51b8152602060048201526015602482015274105d58dd1a5bdb88185b1c9958591e48195b991959605a1b60448201526064016106e6565b42816002015410610f275760405162461bcd60e51b8152602060048201526011602482015270105d58dd1a5bdb881b9bdd08195b991959607a1b60448201526064016106e6565b610939600354611862565b6000546001600160a01b031633146109435760405163118cdaa760e01b81523360048201526024016106e6565b600260015403610f8257604051633ee5aeb560e01b815260040160405180910390fd5b6002600155565b610f916119f3565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080600080610fee8686611a1d565b925092509250610ffe8282611a6a565b50909150505b92915050565b600054600160a01b900460ff16156109435760405163d93c066560e01b815260040160405180910390fd5b6040516370a0823160e01b81523360048201526000906001600160a01b038916906370a0823190602401602060405180830381865afa15801561107c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a09190612008565b90508481116110ff5760405162461bcd60e51b815260206004820152602560248201527f496e73756666696369656e742062616c616e636520746f20737461727420617560448201526431ba34b7b760d91b60648201526084016106e6565b6040518061012001604052808681526020018881526020018781526020018581526020018481526020018381526020016000815260200160006001600160a01b0316815260200160001515815250600d60008b8152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506101008201518160070160146101000a81548160ff0219169083151502179055509050506003547f917078eaf87f60386d361a6928e725fa447886fbebd42eb9a3cccddddf5218f786898988888860405161125696959493929190958652602086019490945260408501929092526060840152608083015260a082015260c00190565b60405180910390a2505050505050505050565b6003546000908152600d60205260409020600181015442108015906112915750428160020154115b80156112a957506007810154600160a01b900460ff16155b6112ea5760405162461bcd60e51b815260206004820152601260248201527141756374696f6e206e6f742061637469766560701b60448201526064016106e6565b6007810154336001600160a01b03909116036113535760405162461bcd60e51b815260206004820152602260248201527f596f752061726520616c7265616479207468652068696768657374206269646460448201526132b960f11b60648201526084016106e6565b60058101546002546040516370a0823160e01b81523360048201526001600160a01b039091169060009082906370a0823190602401602060405180830381865afa1580156113a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113c99190612008565b9050828110156114125760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064016106e6565b604051636eb1769f60e11b81523360048201523060248201526000906001600160a01b0384169063dd62ed3e90604401602060405180830381865afa15801561145f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114839190612008565b9050838110156114ce5760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b60448201526064016106e6565b6114e36001600160a01b038416333087611b23565b336001600160a01b038716036114f857600095505b846006015460000361150c57838555611542565b60085460075460095461151f9190611fdc565b6115299190611fdc565b85600001600082825461153c9190611f7b565b90915550505b6001600160a01b038616156115895760075461156a906001600160a01b038516908890611b90565b600754600a600082825461157e9190611f7b565b909155506115899050565b6007850180546001600160a01b031916331790556006850180549060006115af83611fef565b91905055506005544286600201546115c79190611fdc565b10156115e0576005546115da9042611f7b565b60028601555b600354600286015486546006880154604080519384526020840192909252908201526001600160a01b0388169133917f8b8b96bf317ce3b1dbdc9f6a0534d994c53fc6a3c1c0d90a8af70d6019cd19f49060600160405180910390a4505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006116c26116a66060850185612021565b6116b36020870187611e64565b866020013587604001356109eb565b6116ce57506000611004565b6001600160a01b0382166116e56020850185611e64565b6001600160a01b0316146116fb57506000611004565b600c5461170c906020850135611f7b565b42111561171b57506000611004565b60035483604001351461173057506000611004565b50600192915050565b61174161100a565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610fc13390565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156117c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e99190612008565b905081811161183a5760405162461bcd60e51b815260206004820181905260248201527f496e73756666696369656e742062616c616e636520746f20776974686472617760448201526064016106e6565b610d1561184f6000546001600160a01b031690565b6002546001600160a01b03169084611b90565b6000818152600d60205260409020811580159061188157506003548211155b6118c15760405162461bcd60e51b8152602060048201526011602482015270105d58dd1a5bdb881b9bdd08199bdd5b99607a1b60448201526064016106e6565b6007810154600160a01b900460ff16156119155760405162461bcd60e51b8152602060048201526015602482015274105d58dd1a5bdb88185b1c9958591e48195b991959605a1b60448201526064016106e6565b4281600201541061195c5760405162461bcd60e51b8152602060048201526011602482015270105d58dd1a5bdb881b9bdd08195b991959607a1b60448201526064016106e6565b60078101805460ff60a01b198116600160a01b179091556001600160a01b0316156119a757600254600782015482546001600160a01b03928316926119a5928492911690611b90565b505b600781015481546040519081526001600160a01b039091169083907fd2aa34a4fdbbc6dff6a3e56f46e0f3ae2a31d7785ff3487aa5c95c642acea5019060200160405180910390a35050565b600054600160a01b900460ff1661094357604051638dfc202b60e01b815260040160405180910390fd5b60008060008351604103611a575760208401516040850151606086015160001a611a4988828585611bc6565b955095509550505050611a63565b50508151600091506002905b9250925092565b6000826003811115611a7e57611a7e61206f565b03611a87575050565b6001826003811115611a9b57611a9b61206f565b03611ab95760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115611acd57611acd61206f565b03611aee5760405163fce698f760e01b8152600481018290526024016106e6565b6003826003811115611b0257611b0261206f565b03610d15576040516335e2f38360e21b8152600481018290526024016106e6565b6040516001600160a01b038481166024830152838116604483015260648201839052611b8a9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611c95565b50505050565b6040516001600160a01b03838116602483015260448201839052611bc191859182169063a9059cbb90606401611b58565b505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115611c015750600091506003905082611c8b565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015611c55573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611c8157506000925060019150829050611c8b565b9250600091508190505b9450945094915050565b6000611caa6001600160a01b03841683611cf8565b90508051600014158015611ccf575080806020019051810190611ccd9190612085565b155b15611bc157604051635274afe760e01b81526001600160a01b03841660048201526024016106e6565b6060611d0683836000611d0d565b9392505050565b606081471015611d325760405163cd78605960e01b81523060048201526024016106e6565b600080856001600160a01b03168486604051611d4e91906120a7565b60006040518083038185875af1925050503d8060008114611d8b576040519150601f19603f3d011682016040523d82523d6000602084013e611d90565b606091505b5091509150611da0868383611daa565b9695505050505050565b606082611dbf57611dba82611e06565b611d06565b8151158015611dd657506001600160a01b0384163b155b15611dff57604051639996b31560e01b81526001600160a01b03851660048201526024016106e6565b5080611d06565b805115611e165780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b600060208284031215611e4157600080fd5b5035919050565b80356001600160a01b0381168114611e5f57600080fd5b919050565b600060208284031215611e7657600080fd5b611d0682611e48565b600080600080600060808688031215611e9757600080fd5b853567ffffffffffffffff80821115611eaf57600080fd5b818801915088601f830112611ec357600080fd5b813581811115611ed257600080fd5b896020828501011115611ee457600080fd5b602092830197509550611efa9188019050611e48565b94979396509394604081013594506060013592915050565b60008060408385031215611f2557600080fd5b823567ffffffffffffffff811115611f3c57600080fd5b830160808186031215611f4e57600080fd5b9150611f5c60208401611e48565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561100457611004611f65565b6020808252602e908201527f726566657272616c466565202b206465706c6f7965724665652063616e6e6f7460408201526d206578636565642062696446656560901b606082015260800190565b8181038181111561100457611004611f65565b60006001820161200157612001611f65565b5060010190565b60006020828403121561201a57600080fd5b5051919050565b6000808335601e1984360301811261203857600080fd5b83018035915067ffffffffffffffff82111561205357600080fd5b60200191503681900382131561206857600080fd5b9250929050565b634e487b7160e01b600052602160045260246000fd5b60006020828403121561209757600080fd5b81518015158114611d0657600080fd5b6000825160005b818110156120c857602081860181015185830152016120ae565b50600092019182525091905056fea2646970667358221220d0873b33e6c223e6a6517c5919f0ba44ece692d8042272f74f80ad6f0f346a5f64736f6c63430008140033000000000000000000000000e20968f84a535be7d7a97d3a1a5760d89d6c4ce00000000000000000000000004ed4e862860bed51a9570b96d89af5e1b0efefed000000000000000000000000fc3e125d9ed91d28b26f5a6fedf4a5b4e3f86e21