Degdango
Searchโ€ฆ
๐ŸŽ
45,048 $ONE Gift
Grand price of 45048 $ONE

After the successful mint of all 2851 Degdango, one lucky holder from Degdango Family will receive 10% of total treasury balance i.e. 45,048 $ONE. Including the person who minted the last NFT.
The complete amount will be directly transfer to the holder's wallet from smart contract treasure.
โ€‹

The grant price will be gifted from smart contract to random Degdango holder. The holder will chosen randomly from the code and winner cannot be the owner.
โ€‹
reward.sol
// Some c function mint() public payable {
uint256 supply = totalSupply();
require(!paused, "Contract is paused!");
require(supply + 1 <= maxSupply, "Max supply reached!");
require(msg.sender != owner(), "Owner can not mint!");
require(msg.value >= dynamicPrice(supply) , "Not enough funds!");
address payable giftAddress = payable(msg.sender);
uint256 giftValue = 0;
if(supply > 0) {
giftAddress = payable(ownerOf(randomNum(supply, block.timestamp, supply + 1) + 1));
// After Every Mint 12% of toal mint amount will randomly gifted to holder
// At the complete mint, one random holder will receie 45048 $ONE
giftValue = supply + 1 == maxSupply ? address(this).balance * 10 / 100 : msg.value * 12 / 100;
}
_safeMint(msg.sender, supply + 1);
โ€‹
if(supply > 0) {
(bool success, ) = payable(giftAddress).call{value: giftValue}("");
require(success, "Could not send value!");
}
}
โ€‹
As the smart contract need to gift the 10 % of total price money, so the Owner of the contract cannot withdraw any amount from smart contract until all the NFTs are minted unless 45 days are passed from the contract creation.
withdraw.sol
uint256 public headStart = block.timestamp + 45 days;
function withdraw() public payable onlyOwner {
uint256 supply = totalSupply();
require(supply == maxSupply || block.timestamp >= headStart, "Can not withdraw funds within 45 days!");
(bool s, ) = payable(msg.sender).call{value: address(this).balance}("");
require(s);
}
โ€‹

Well it's quite difficult to not get all NFTs minted in 45 Days. But incase such situation happens, still the treasure balance will be maintained by the owner and it will be kept secure until all the NFTs get minted.
Also everyone can see all the transaction happing on the blockchain, as it's open to all also we are verifying the contract to harmony scan so everyone is able to see the all transaction.
โ€‹
Contract address:- 0xc9fc5ea0498e4723341be1b90622e320d7c96626
Copy link
On this page
What is 45,048 $ONE Grant price?
How the Grant price work?
What if all 2851 NFTs does not get minted in 45 Days.