aave-ui icon indicating copy to clipboard operation
aave-ui copied to clipboard

Deposit matic in the history shows change of usage as collateral instead of deposit

Open foodaka opened this issue 3 years ago • 3 comments

Background: When a user deposits matic into the pool, it should show up in their history. This currently happens however, it is shown as a change of usage as collateral. I feel this is a bit confusing for the user because they did a deposit but it shows up as usage as collateral

Screen Shot 2021-10-27 at 11 59 29 AM

foodaka avatar Oct 27 '21 10:10 foodaka

This is happens for network native tokens when the deposit/withdraw goes through WethGateway contract, so the msg.sender is the wethgateway instead of the user, and this is why it doesn't show the deposits and withdraws with native token and only the change of colateral

sendra avatar Nov 11 '21 09:11 sendra

@sendra ok i get it now, should we just close this out for now then? I think this is also related to https://github.com/aave/aave-ui/issues/204

foodaka avatar Dec 03 '21 11:12 foodaka

No let's keep it open, it's a bit related as in "if the user would deposit weth directly it would show up here", but it's mostly a bug on thegraph where the weth-gateway would need special handling as even after #204 is implemented, eth despoists won't show up.

sakulstra avatar Dec 03 '21 11:12 sakulstra