Double2Win episode — Innovation #2: 6T+ on-chain NFT collection!

Double
4 min readJul 5, 2023

--

Today, please allow us to shill once — a massive number 6T+. While most shills in crypto have no substance backing them up, our shill is backed up by our innovation in NFT craftsmanship. 6T+ is the number of unique animated images that the Double Down Club (DDC) NFT collection can offer. As far as we know, there is NO NFT collection in the market that could even remotely offer a trillion (T) unique images. More impressively, the 6T+ unique images are generated entirely on-chain by 1 smart contract which was created in only 1 transaction — a true technological marvel! Such an achievement requires innovation and excellence in all 3 areas of product, design and engineering!

Double Down Club (DDC) — a Utility NFT with Strong Market Demand

Double Down Club (DDC) is a non-fungible token (NFT/ERC721) that is designed like a club membership. To supply capital into Double, capital providers must hold DDC (or have DDC delegation). Double offers amazing value to capital providers — double the ROI while at the same time significantly reduce the risk of impermanent loss, and hence DDC has strong market demand! The market demand of DDC will be significantly higher than the initial supply/allocation of 20,000 DDC by design. To meet the market demand, new DDC must be minted and only existing DDC holders can mint/breed new DDC.

DDC NFT — Craftsmanship

Like many other elegant designs in Double, the DDC’s NFT has been crafted with incredible attention to detail, so that holders feel a deep sense of pride in owning and displaying it! DDC design has three ambitious goals that push the boundaries of what’s possible in the world of NFTs.

  • First, eliminate off-chain dependency & overhead and store NFT images completely on-chain. This required us to get creative and generate all NFT images entirely using smart contracts.
  • Second, generate the entire NFT collection via only 1 smart contract created in 1 TX, e.g. no further transaction after the contract is deployed. The gas limit per block limits the number of traits and selections you can squeeze into 1 smart contract.
  • Third, support over 1 million unique NFTs. It’s a lofty goal, but we knew we had to aim high to meet the growing demand for DDCs in the market.

The third goal can be achieved without even using any smart contract storage with one elegant design — use background color to differentiate each NFT, and generate the background color in (h,s,l) by hashing the NFT tokenId, then compute colors of other traits based on the background color. This design offers 361*101*101 = 3,682,561 unique selections since h is from [0,360], s is from [0,100], and l is from [0,100].

While the idea may seem straightforward, bringing it to life required an incredible amount of experimentation and skillful algorithm design. Generating a beautiful image for each of the 3.6+ million unique colors required meticulous color calculations that needed to perfectly contrast with each background. On top of this — implementing the algorithm in Solidity, a programming language that only supports integers, was a challenge in and of itself. Our team worked tirelessly to engineer a solution that would allow for floating point math, including complex operations such as calculating the power of 2.4 in an integer format. The result is a stunning collection of NFTs that demonstrate the incredible dedication and expertise of our team.

The second goal is achieved by encoding traits of DDC NFT using simple SVG strings and a design pattern that eliminates the need to store repeated tags. This required a non-intuitive approach to designing NFT images, but the result is a staggering 6,387,788,723,405 unique selections across all traits. Let’s break that number down — currently, there are 31 selections for the top left logo trait, 31 selections for the top right logo trait, 19 selections for the bottom left logo trait, 19 selections for the bottom right logo trait, and 5 selections for the animation trait (which might be also the first to implement animation using svg). The design offers 31*31*19*19*5 = 1,734,605 unique selections. Adding all trait designs together, the full design offers 3,682,561*1,734,605 = 6,387,788,723,405 unique selections!

Even more impressive is that the total gas amount required to deploy the smart contract is less than 13M, well under the Ethereum gas limit per block of 15M/30M. You can see these stunning NFT images on Double’s homepage, where they are randomly updated every minute.

100 DDC — Up For Grabs

So why not join the club? Become a part of a passionate community that’s as excited about innovation as they are about great design. With the Double Down Club (DDC), you’ll have a unique NFT that is visually stunning and has a powerful utility. As a DDC holder, you can either supply capital into Double, again double the ROI and reduce impermanent loss significantly, or delegate your DDC to other capital providers. More importantly, only existing DDC holders can mint/breed new DDC to meet strong market demand in the near future!

DDC has no cap but has an initial allocation of 20,000. 10,000 (50%) will be allocated to the insiders (investors, team, etc) and 10,000 (50%) will be allocated to the community. 100 DDC out of the 10,000 community allocation on Celo L1 chain will be distributed via the Double Down to Genesis program. To win 1 of the 100 DDC, users can deposit any token into Double, however, they need to deposit enough token amount to be ranked as the top 100 wallets according to the program rules. Don’t miss out on this opportunity to be part of something truly special!

--

--

Double
Double

Written by Double

Essential Liquidity Infra for L1, ETH L2 & BTC L2 - solve liquidity challenges for token projects & attract massive capital into blockchain & AMM ecosystems.