Skip to content

Sc 847 Task remove not needed safety check from buy and sell in#699

Merged
Zitzak merged 18 commits intodevfrom
sc-847-task-remove-not-needed-safety-check-from-buy-and-sell-in
Dec 13, 2024
Merged

Sc 847 Task remove not needed safety check from buy and sell in#699
Zitzak merged 18 commits intodevfrom
sc-847-task-remove-not-needed-safety-check-from-buy-and-sell-in

Conversation

@FHieser
Copy link
Contributor

@FHieser FHieser commented Dec 5, 2024

Removing an unnecessary check from the RedeemingBondingCurveBase
The removed code checks if enough collateral tokens are stored in the contract to do a sell operation.
This is useless in case of a transfer for example as the transfer would fail anyway in case
that there are not enough tokens in the contract.
With this removal we leave it to the PaymentProcessorLogic to fail/handle in case there is not enough collateral to transfer

@FHieser FHieser requested a review from Zitzak December 5, 2024 09:35
@linear
Copy link

linear bot commented Dec 5, 2024

@FHieser
Copy link
Contributor Author

FHieser commented Dec 5, 2024

@Zitzak could you rereview pls?

@marvinkruse marvinkruse self-requested a review December 6, 2024 01:12
Copy link
Member

@marvinkruse marvinkruse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned in the other PR: please do not merge this unless I reviewed it, at least until we are all fully used to the Inverter Standard. I'll make sure to quickly review once I'm asked to look at it.

HEBERGEE1

This comment was marked as spam.

@Zitzak Zitzak requested a review from marvinkruse December 12, 2024 07:42
@marvinkruse
Copy link
Member

Can be merged from my side. Please remember to choose a good title for the commit and not just take the PRs name.
For example something like Fix: Remove redeemed amount from balance check or so.

@Zitzak Zitzak merged commit baefd2a into dev Dec 13, 2024
@Zitzak Zitzak deleted the sc-847-task-remove-not-needed-safety-check-from-buy-and-sell-in branch December 13, 2024 16:33
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

Successfully merging this pull request may close these issues.

4 participants