bafnetwork / bafnetwork/baf-badges

Find a way to calculate storage deposit required for minting

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
enhancement low-priority
Dominant language
TypeScript
Stars
6
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Currently, we use a [way-too-large constant](https://github.com/bafnetwork/baf-badges/blob/5dcb954c59c9f438578bdf28611b34dbf8e262e3/utils/badge.ts#L14) to set the storage deposit the minter pays to mint an NFT.

Tasks:
- [ ] figure out a way to calculate the gas necessary, and use it instead of the constant in `utils/badge.ts`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in utils/badge.ts at the oversized storage-deposit constant and trace how minting an NFT uses it. Determine how the required gas or storage deposit can be calculated, then verify that minting uses the calculated value instead of the constant.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.