Degdango
Searchโ€ฆ
๐ŸŽ
NFT Rewards
NFT that rewards Holder.

โ€‹
In Degdango NFT Collection we introduced completely new and very first rewarding system for holders.
After each Degdango mint, 12% of total minting price will be randomly Gifted to prior Degdango holder.
i.e. if Degdango #1000 is minted for 135 $ONE, 12 % of 135 (16.2 $ONE) will be randomly gifted to one of the prior 999 holders. These all rewards will be managed by the smart contract deployed on Harmony Blockchain.
โ€‹
Also owner will not receive any gift from smart contrast as Owner cannot mint any NFT.
โ€‹
nftRewards.sol
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
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!");
}
}
Copy link