How do I renounce my Solana OFT's Freeze Authority?
How do I renounce my Solana OFT's Freeze Authority?
Why is sending an OFT to Solana more expensive than expected?
Why is sending an OFT to Solana more expensive than expected?
Solana has the concept of ‘rent’ which now actually refers to the amount needed to satisfy the minimum balance required to be rent-exempt. Any account created on Solana requires this ‘rent’ amount. The majority of the message ‘fee’ when sending an OFT to Solana is to pay for this ‘rent’. This is specified either via enforced options or in extra options as the message Breakdown:
value.More specifically, the ‘rent’ applies to token accounts that need to be created when an address receives any token on Solana. The ‘rent’ amount varies according to the size in bytes of the account that needs to be created.Solana has two token account standards: SPL and Token-2022. SPL token accounts have a fixed size of 165 bytes, this results in a required rent amount of 0.00203928 SOL. For Token-2022, token accounts can vary in size depending on which token extensions are enabled.Given a crosschain transfer from a chain to Solana (that sets the CU limit (message.gas) to 200_000), the following is a breakdown of how much SOL is needed to execute lzReceive on Solana:- Base fee =
3 signatures × 5,000 lamports = 15,000 lamports = 0.000015 SOL - Priority fee =
200_000 CU × 1 lamport per CU = 200,000 lamports = 0.0002 SOL
lzReceive execution for a Solana OFT. Note that the rent is not needed when the receiving address already has a token account.