You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, layerzero team. I have been working on OFT implementation between EVM and Solana side.
I am sure EVM OFT should be fine, but I am wondering if there may be some issues regarding decimal conversion calculation on the Solana side.
I guess, shared_decimals should be 18, and decimals should be 6.
That's because SPL tokens almost have 6 as its decimals, while EVM tokens almost have 18.
But according to the present implementation, it always return error because of below contraint. require!(decimals >= shared_decimals, OftError::InvalidDecimals);
And I was not sure about amountLD and amoundSD calculation inside lz_receive and send instruction.
Hope you let me know, what I had implemented incorrectly.
The text was updated successfully, but these errors were encountered:
Hello, layerzero team. I have been working on OFT implementation between EVM and Solana side.
I am sure EVM OFT should be fine, but I am wondering if there may be some issues regarding decimal conversion calculation on the Solana side.
I guess,
shared_decimals
should be 18, anddecimals
should be 6.That's because SPL tokens almost have 6 as its decimals, while EVM tokens almost have 18.
But according to the present implementation, it always return error because of below contraint.
require!(decimals >= shared_decimals, OftError::InvalidDecimals);
And I was not sure about
amountLD
andamoundSD
calculation insidelz_receive
andsend
instruction.Hope you let me know, what I had implemented incorrectly.
The text was updated successfully, but these errors were encountered: