How can I convert Ethereum uint256 variables into Solana Rust?
Should I use u64 and 9 decimals in Solana Rust instead of 18 decimals in Ethereum?
According to Solana's doc, a lamport has a value of 0.000000001 SOL. That is 9 decimals.
So it seems 9 decimals is the standard in Solana, in contrast to 18 decimals in Ethereum.
u64 in Rust has the maximum value of 18,446,744,073,709,551,615...
u128 in Rust has the maximum value of 2^128 - 1
Somehow Rust Solana does not have u256! Strange
and if I use 9 decimals for all calculations, then I should make sure 18,446,744,073 is big enough for all my Solana Rust u64 variables' maximum values, right? Is this the correct strategy? Thank you!