-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
59f5298
to
6a5cea5
Compare
bed0e86
to
2ee1b3f
Compare
2ee1b3f
to
dbab858
Compare
dbab858
to
61d6d64
Compare
1fa58d0
to
9b60090
Compare
68cacdb
to
dfadbcf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Replace BaseTest inheritance with independent library functions
-
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) -
remove
_ethBalance
argument and deal eth in test after creating address -
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
a83da03
to
bd0a044
Compare
Notable things
-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