change drops contract name

This commit is contained in:
owen05
2021-05-28 12:42:23 +08:00
parent 0fdc266d2b
commit a63f7ff0a4
5 changed files with 41 additions and 18 deletions

View File

@@ -23,7 +23,7 @@ interface IDropsNft {
function mint(address account, uint256 id, uint256 amount, bytes memory data) external;
}
contract BaseDrops is InitializableMintableERC20, ReentrancyGuard {
contract DODODrops is InitializableMintableERC20, ReentrancyGuard {
using SafeMath for uint256;
using Address for address;
using UniversalERC20 for IERC20;
@@ -267,6 +267,10 @@ contract BaseDrops is InitializableMintableERC20, ReentrancyGuard {
// ================= View ===================
function getSellingStage() public view returns (uint256 stageLen) {
stageLen = _SELLING_TIME_INTERVAL_.length;
}
function getSellingInfo() public view returns (uint256 curPrice, uint256 sellAmount, uint256 index) {
uint256 curBlockTime = block.timestamp;
if(curBlockTime >= _SELLING_TIME_INTERVAL_[0] && _SELLING_TIME_INTERVAL_[0] != 0) {