Closed AlphaGergedan closed 1 week ago
We should store as u64. Decimals will represent the real value but as I remember we represent the amount of a token without decimal.
You can check this
@AlphaGergedan
So 1e9
lamports equals 1 SOL?. One lamport is the smallest unit in solana right, so we can store lamports (the smallest unit in solana)?.
Yes but we are gonna work with spl tokens so u32 or u64 are better. If we worked with native token than then lamport is logical. @AlphaGergedan
We use
f32
for the values stored in the investor data account:Shouldn't we use
u64
for these to represent the num. of lamports in solana? @DogukanGun