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
In Govern, the intended use is to deposit and withdraw tokens via the finance menu. This uses the deposit and withdraw function in Govern.sol that emit Deposited(msg.sender, _token, _amount, _reference) and Withdrawn(_token, _to, _from, _amount, _reference) events for the subgraph. This updates the balances in the UI.
Problems with the deposit functionality:
using deposit is counterintuitive compared to directly sending funds to the DAO o
users might not know about it because this is not clearly communicated or send funds accidentally to the wrong address (e.g., GovernQueue.sol) so that funds are lost irretrievably
money transfers requiring an external contract call usually don't allow interaction with the deposit function such as
heueristik
changed the title
UX/UI problems related to receiving and sending payments
Govern UI: Problems related to receiving and sending payments
Jan 4, 2022
heueristik
changed the title
Govern UI: Problems related to receiving and sending payments
Console: Problems related to receiving and sending payments
Jan 6, 2022
Status Quo:
withdraw
&deposit
In Govern, the intended use is to deposit and withdraw tokens via the finance menu. This uses the
deposit
andwithdraw
function inGovern.sol
that emitDeposited(msg.sender, _token, _amount, _reference)
andWithdrawn(_token, _to, _from, _amount, _reference)
events for the subgraph. This updates the balances in the UI.Problems with the
deposit
functionality:using
deposit
is counterintuitive compared to directly sending funds to the DAO oGovernQueue.sol
) so that funds are lost irretrievablymoney transfers requiring an external contract call usually don't allow interaction with the
deposit
function such asProblems with the
withdraw
functionality:External contract calls have the problem that
Depositied
andWithdrawn
eventBecause of the optimistic scheduling, the UX can become worse if ERC-20
allowances
are not set correctly (see #514).Possible Solutions
deposit
Withdrawn
eventAlternatively, deprecate
withdraw
anddeposit
and rely on external APIs (e.g., Zapper.fi) to display balances correctly.The text was updated successfully, but these errors were encountered: