allartprotocol / unity-solana-wallet

The First Open-Source Unity-Solana Wallet with NFT support
282 stars 128 forks source link

1 SOL = 1000000000 ? How to make 1SOL = 1 and add decimal numbers ? #27

Closed MaciejProkopowicz closed 2 years ago

MaciejProkopowicz commented 2 years ago

Hey there,

I have played with transactions and I thought it is not working but later actually realized that 1SOL = 1000000000. How to make it more natural I mean like 1SOL = 1 and if I want to send less it would be nice to use decimals as well so 0.25SOL = 0.25 etc. At this moment decimals are not accepted.

image

Thanks in advance for help !

vuckovic95 commented 2 years ago

You can look at TransferScreen.cs and play with the functionalities :) It's open source

MaciejProkopowicz commented 2 years ago

Thank you ! Definitely I will.

I see this program requires a lot of tweaking to work as expected and be user friendly but at least we know where to start.

Cheers !