Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General review and remarks #439

Closed
QGarchery opened this issue Aug 24, 2023 · 6 comments
Closed

General review and remarks #439

QGarchery opened this issue Aug 24, 2023 · 6 comments
Assignees

Comments

@QGarchery
Copy link
Contributor

QGarchery commented Aug 24, 2023

    • Reverting on 0 assets in supply collateral and withdraw collateral, but it is possible to supply 0 assets
    • What's the reasoning behind choosing when to add the msg.sender to an event ? Can you explain how this reasoning applies to CreateMarket, Withdraw and SetAuthorization ?
@QGarchery QGarchery self-assigned this Aug 24, 2023
@MerlinEgalite
Copy link
Contributor

  1. Can be helpful for analytics to understand who is submitting an action on behalf of someone else.

@QGarchery
Copy link
Contributor Author

  1. Can be helpful for analytics to understand who is submitting an action on behalf of someone else.

Ok it makes sense then, I was thinking that it was useful in cases of callbacks

@MathisGD
Copy link
Contributor

Reverting on 0 assets in supply collateral and withdraw collateral, but it is possible to supply 0 assets

see #155, and to me it is fine because the storage still changes (increase in the number of shares).

it is possible to supply 0 assets

Btw I don't think so , but borrow yes

@QGarchery
Copy link
Contributor Author

see #155, and to me it is fine because the storage still changes (increase in the number of shares).

Ok but why would this situation be ok ? In this scenario funds are not moved, so it seems like it's only enabling manipulations

@MathisGD
Copy link
Contributor

manipulations.. you are borrowing (mobilizing collateral) but not even receiving any funds it seems ok. I mean it happens for each borrow in some sense with the rounding.

@MathisGD
Copy link
Contributor

Feel free to re-open #155 because it is the only remaining discussion of this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants