Lunar vs. Solana: What Sets Them Apart
While developing and interacting with dApps on Lunar is very similar to Solana, there are some key differences that users and developers should be aware of. These differences ensure that Lunar provides enhanced functionality and interoperability while maintaining familiarity for Solana users.
Native Token
ETH as the Native Token: On Lunar, the native token is ETH, which uses 9 decimal places instead of the standard Ethereum 18. This provides higher precision and aligns with Lunar’s design philosophy. Users can obtain ETH on Lunar by:
Bridging from Ethereum: Transfer ETH directly from Ethereum mainnet.
Bridging from Solana: Transfer SOL or USDC via supported bridging tools.
Wrapped Tokens: Similar to Solana, Lunar supports wrapped versions of its native token for both SPL Token and SPL Token 2022 standards. These tokens also have 9 decimal places and share the same addresses as Solana:
SPL Token:
So11111111111111111111111111111111111111112
SPL Token 2022:
9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP
These wrapped tokens maintain compatibility across ecosystems, allowing seamless interaction with Solana-based applications.
Priority Fees
Fee Payments: Priority fees on Lunar are paid in ETH but follow the same logic as Solana. While libraries such as
@solana/web3.js
may display fees as micro-lamports, the actual calculation uses ETH with the same precision:1 micro-lamport = 10^-6 lamports = 10^-15 SOL = 1 Kwei
Fee Calculation Recommendations: To ensure accurate fee payments and minimize costs:
Use
getRecentPriorityFees
to fetch the most up-to-date fee information.Avoid relying on default values due to differences in USD pricing between micro-lamports and Kwei.
Wallets
Lunar supports a variety of compatible wallets for storing and transacting with ETH and SPL tokens.
dApps
Building and Deploying dApps: The process for building and deploying programs on Lunar is identical to Solana. Developers should:
Ensure any hardcoded program addresses are updated to match Lunar.
Follow Lunar’s deployment guide for detailed instructions.
Interoperability: dApps built for Solana can seamlessly operate on Lunar, provided they account for the differences in token standards and priority fees.
By addressing these differences, Lunar enhances usability while maintaining compatibility with Solana’s development ecosystem, offering a seamless transition for developers and users alike.
Last updated