feature_image

When a token is sold, Polygods can quickly determine whether it was the floor price of the NFT thanks to the priority queue. If it was, they put the money into a mapping to keep it while Chainlink Verifiable Random Function is called for a random number (VRF).

Polygods NFT - How launching on Polygon helps them punish paperhands!

The premier NFT collection called Polygods is debuting on Polygon.

A unique mechanism behind the smart contract developed by Polygods is based on game theory. By making the process of selling tokens at or below floor gamified for both present and future holders, it creates an economic experiment.

What is Polygods?
A premier NFT collection with exquisite art and complex programming is called Polygods. They were able to develop an original and cutting-edge NFT collection on Polygon using Chainlink, Polygon, and 0xCord.

As new features are implemented and the Polygods market develops, Polygods will keep trying new things. If you want to realize your potential by grasping one of these rising suns, then ride your individual Polygod into the future you can purchase one right HERE.

What is so good about this project?
The team has managed to implement a function deemed impossible by other teams by incorporating Chainlink Verifiable Random function for randomness.

The Paperhand NGMI Tax has a 35% chance to send all the funds from a NFT sale to the Polygods contract instead of the seller if the sale is done at the floor price, at a price lower than you bought it for or if you accept a bid that is equal to or lower than the floor price.

A marketplace mechanism was incorporated into the smart contract by the Polygods team. The original CryptoPunks smart contract served as an inspiration for this mechanism. However, in order to put this mechanism into place, they had to constantly be aware of the exact floor price. They put in place a priority queue for this.

When a token is sold, Polygods can quickly determine whether it was the floor price of the NFT thanks to the priority queue. If it was, they put the money into a mapping to keep it while Chainlink Verifiable Random Function is called for a random number (VRF).

When the results are available, the number is entered into the function below to decide whether the money will be given to the smart contract as a sacrifice or the paperhander will get away with it.


function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal override {
  PendingWithdrawal memory pendingWithdrawal = holdingWithdrawals[requestId];
  address seller = pendingWithdrawal.seller;
  int256 value = pendingWithdrawal.value;

  // transform the result to a number between 1 and 100 inclusively
  uint256 result = (randomWords[0] % 100) + 1;
  if (result > 35){
      // Credit us the royalty fee, give the rest to the seller
      int256 royaltyFee = (value * _percentageRoyalty) / _percentageTotal;
      int256 sellerProceeds = value - royaltyFee;

      pendingWithdrawals[_admin] += royaltyFee;
      pendingWithdrawals[seller] += sellerProceeds;
  } else {
      pendingWithdrawals[_admin] += value;
  }
  emit RandomResult(result);
}

The Polygods smart contract fairly determines the Paperhand NGMI tax's randomness (35 percent chance) using Chainlink VRF. A smart contract can obtain a verifiably random number from an external source using Chainlink VRF. It is the only workable option for a tax that can be proven to be fair.

In order to provide a random number and a cryptographic proof, Chainlink VRF combines block data that is not yet known at the time the request is made with the oracle node's pre-committed private key.

The cryptographic proof must be legitimate in order for the Polygods smart contract to accept the input of a random number, and this can only be done if the VRF procedure is tamper-proof.

We think this project has potential in the current state of the market, people will refrain from carelessly selling their NFTs for scraps, which in turn will reward them with a suprise once the market picks up and they will be able to make a big chunk of profit.

Written By

Petrache Ionut

Jul 15, 2022