solana-mobile / Minty-fresh

An open source mobile first implementation of NFT minting on solana
https://solanamobile.com/
Apache License 2.0
45 stars 18 forks source link

Estimate Mint Cost + Check User Balance #306

Closed Funkatronics closed 1 year ago

Funkatronics commented 1 year ago

addressing #135

Work Completed

Initially I tried to estimate the transaction cost. Its not a perfect estimate, I think I would need to account for all of the account rent that is needed for the created accounts (which constant for a given account size).

If we don't like the added complexity here we can change the the implementation to simply check if the users balance is >0

ankur2136 commented 1 year ago

There is no need to check this every time user mints. Can be just checked when user connects the wallet, at the app launch time and when mint fails/succeeds. This is unnecessarily adding more complexity in the flow to mint