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

Debt Repayer Front end Contract Base #54

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ProblematicP
Copy link
Contributor

Notable things
-Want to move base test and some interfaces into a common folder so all smart contracts in this repo can use it easily. Probably belongs in another pr.
-Want to use muldiv to multiply and divide rounding up but feel like overkill to import OZ for just this so doing the +1 method. Unsure how robust it is. Need to write an extreme test case to test it.
-Can prob user IERC20 instead of IUSDToken for erc related functions
-e2e tests not done yet

Copy link

vercel bot commented Nov 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
liquidity-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 2:25am

Copy link
Contributor

@noisekit noisekit left a comment

Choose a reason for hiding this comment

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

  1. Replace BaseTest inheritance with independent library functions

  2. Remove boolean _isContract argument from function. Either call it in test, or create separate helper to generate contract (dont believe we need this now anyway)

  3. remove _ethBalance argument and deal eth in test after creating address

  4. expectNoCall is no more explicit than expectCall with 0 count. Any additional helper function we add require to learn their syntax and if we can get away with using ONLY standard forge library - we should totally do that even if it leads to a bit of extra copypaste

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.

2 participants