lindy-labs / opus_contracts

Opus Source Code
https://opus.money
Other
0 stars 0 forks source link

feat: only trove owner can deposit #541

Closed tserg closed 8 months ago

tserg commented 8 months ago

Only allow trove owner to deposit.

This prevents another a non-trove owner user from depositing collateral to:

  1. lower the threshold of the trove (by depositing a collateral with lower threshold than the trove) see issue; or
  2. cause the trove to receive redistributions (whether ordinary or exceptional) - see issue.
tserg commented 8 months ago

Oh, ok, not yet, as the PR wasn't marked for review 😂

No worries, I think it is good for review! The changes here are independent of the other open PRs so there should not be any merge conflicts.

milancermak commented 8 months ago

Ok, lets gooooo