Uncategorized

Verifying the Representation of Staked or Locked Assets

In DeFi, assets are often staked or locked in smart contracts. This test checks how MetaMask represents these assets. The user delegates or stakes a token (e.g., staking ETH for stETH) through a supported DApp. The test involves observing the wallet’s display afterwards. The original asset (ETH) balance should decrease, and a new asset representing the staked position (stETH) should appear in the asset list with the appropriate balance. The wallet must recognize this new token and display its value correctly. This provides users with a clear picture of their total portfolio value, including assets that are earning yield but are not immediately liquid. The app acts as a viewer for on-chain state, and its accuracy is crucial for financial decision-making. The integration with various DeFi protocols is a complex task, with information available at metamask.