437 txs
441 calls
constructor
No constructor.
functions
dcbAgreement
viewfunction dcbAgreement() view returns (address token, uint32 startDate, uint32 endDate, uint256 totalTokenOnSale, uint256 hardcap, uint256 secondRoundCap, uint256 totalInvestFund)
durations
viewfunction durations(uint256) view returns (uint32)
factory
viewfunction factory() view returns (address)
getInfo
viewfunction getInfo() view returns (uint256, uint256, uint256, uint256, uint256)
getParticipants
viewfunction getParticipants() view returns (address[])
merkleRoot
viewfunction merkleRoot() view returns (bytes32)
roundsMultipliers
viewfunction roundsMultipliers(uint256) view returns (uint256)
saleToken
viewfunction saleToken() view returns (address)
userInvestment
viewfunction userInvestment(address) view returns (uint256)
VERSION
viewfunction VERSION() view returns (uint8)
vesting
viewfunction vesting() view returns (address)
fundAgreement
nonpayablefunction fundAgreement(uint256 _investFund, uint256 _allocation, uint256 _refundFee, bool _hasWhitelisted, bytes32[] _merkleProof) returns (bool)
initialize
nonpayablefunction initialize(tuple p)
setMerkleRoot
nonpayablefunction setMerkleRoot(bytes32 _merkleRoot)
setParams
nonpayablefunction setParams(tuple p)
setRoundsMultipliers
nonpayablefunction setRoundsMultipliers(uint256[2] _multipliers)
setToken
nonpayablefunction setToken(address _token)
events
CreateAgreement
event CreateAgreement((uint32 startDate, address factoryAddr, address vestingAddr, address paymentToken, address saleTokenAddr, uint256 totalTokenOnSale, uint256 hardcap, uint256 secondRoundCap, uint32[3] durations))
EditAgreement
event EditAgreement((uint32 startDate, address factoryAddr, address vestingAddr, address paymentToken, address saleTokenAddr, uint256 totalTokenOnSale, uint256 hardcap, uint256 secondRoundCap, uint32[3] durations) p)
Initialized
event Initialized(uint8 version)
NewInvestment
event NewInvestment(address wallet, uint256 amount)
errors
AmountExceedsAllocation
error AmountExceedsAllocation()
HardcapAchieved
error HardcapAchieved()
IDONotOpen
error IDONotOpen()
InvalidDuration
error InvalidDuration()
InvalidInput
error InvalidInput()
InvalidProof
error InvalidProof()
InvalidTokensReceived
error InvalidTokensReceived()
MerkleRootAlreadySet
error MerkleRootAlreadySet()
MerkleRootNotSet
error MerkleRootNotSet()
NotManager
error NotManager()
TokenNotReceived
error TokenNotReceived()
UserNotWhitelisted
error UserNotWhitelisted(address user)
creation bytecode
0x3d602d80600a3d3981f3363d3d373d3d3d363d736475550db62f447a7487bd7a132228003d20be6d5af43d82803e903d91602b57fd5bf3