Skip to content

Conversation

@LesterEvSe
Copy link
Collaborator

No description provided.

@LesterEvSe LesterEvSe self-assigned this Dec 25, 2025
@LesterEvSe LesterEvSe added the bug Something isn't working label Dec 25, 2025
@apoelstra
Copy link

3db6ee9 adds a unit test but also weakens the code (I guess because the unit test would be impossible otherwise, and actually the contract is secure?)

For e2621fe see my comments on #21 -- I think (though I didn't try) that you can significantly simplify this code. Having said this, I'm still confused as to why we are working with confidential assets at all. The contract code should have a detailed comment explaining this.

609873b is a merge commit (and a merge commit with nontrivial changes in it).

@LesterEvSe LesterEvSe force-pushed the fix/contracts-options branch from 609873b to 4372c6b Compare December 25, 2025 16:55
@LesterEvSe LesterEvSe force-pushed the fix/contracts-options branch from 4372c6b to 85fcc73 Compare December 26, 2025 10:04
@LesterEvSe LesterEvSe force-pushed the fix/contracts-options branch from 85fcc73 to 6c101e4 Compare December 26, 2025 14:44
@LesterEvSe LesterEvSe force-pushed the fix/contracts-options branch from 29893cc to ef23dfe Compare December 26, 2025 15:07
@LesterEvSe
Copy link
Collaborator Author

LesterEvSe commented Dec 26, 2025

3db6ee9 adds a unit test but also weakens the code (I guess because the unit test would be impossible otherwise, and actually the contract is secure?)

Yes, you understood correctly. The reason is described in this comment. This removes the hard coding.

For e2621fe see my comments on #21 -- I think (though I didn't try) that you can significantly simplify this code. Having said this, I'm still confused as to why we are working with confidential assets at all. The contract code should have a detailed comment explaining this.

Okay, after reading roconnor's and your comments, I made some improvements to the code. I also added an explanation of why confidential assets are needed and referred to roconnor's explanation here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Options contract funding path lets reissuance tokens escape contract

2 participants