-
Notifications
You must be signed in to change notification settings - Fork 31
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
Updated OSTPrime contract and tests. #533
Conversation
… less than the available balance
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.
Phew, big one. Nice work! 💯
I added my comments.
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.
Nice 🙌 🚀
Some feedback inline.
|
||
let brandedTokenAddress, ostPrime, callerAddress, amount; | ||
|
||
async function initialize(){ |
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.
This is used in both wrap
and unwrap
, can be extracted out.
Also the config of OSTPrime.
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.
LGTM 🎢 🚋 💯
Just one comment:
is there still value in writing unit test scenario where it tests wrapping of max possible amount i.e balance - gas
?
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.
✅ 🎊
@deepesh-kn what is your confidence level now?
My confidence level is very good. |
This is the same as one of the existing test. |
LGTM |
fixes: #417
Claim
event is renamed toTokenUnwrapped
.Redeem
event is renamed toTokenWrapped
.-
uint256 _totalSupply
andaddress _utilityToken
params are removed from both the events as it is not needed.initialize
function can be called only once.claim
function is renamed tounwrap
.redeem
function is renamed towrap
.wrap
andunwrap
functions are modified.Please note: The unit tests for UtilityToken and EIP20Token is not covered in this. They are the separate tests.