Problem: getCurrentTierInfo(...) function for minted capped crowdsale strategy strongly depends on block.timestamp, so, it changes not continuously. This leads returning of incorrect data for a tier until new block will be issued.
Solution: Instead, the suggestion is to add a function, that will calculate the current tier index (by iterating through getTierStartAndEndDates data for every tier) and then will call getCrowdsaleTier function with this index
Note:
The number of tiers can be retieved with getTiersLength function
Problem:
getCurrentTierInfo(...)
function for minted capped crowdsale strategy strongly depends onblock.timestamp
, so, it changes not continuously. This leads returning of incorrect data for a tier until new block will be issued.Solution: Instead, the suggestion is to add a function, that will calculate the current tier index (by iterating through getTierStartAndEndDates data for every tier) and then will call getCrowdsaleTier function with this index
Note: The number of tiers can be retieved with getTiersLength function