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

Upgrade to Vyper 0.1.0b11 #43

Closed
ghost opened this issue Aug 25, 2019 · 5 comments
Closed

Upgrade to Vyper 0.1.0b11 #43

ghost opened this issue Aug 25, 2019 · 5 comments

Comments

@ghost
Copy link

ghost commented Aug 25, 2019

And use @nonreentrant('lock') decorator for addLiquidity, removeLiquidity and swapTokens

@ghost ghost assigned blimp666 Aug 25, 2019
@blimp666
Copy link
Contributor

After an upgrade to 0.1.0b11 we will not be able to verify the contract at etherscan (it supports vyper only up to b9 version). Is it ok?

@ghost
Copy link
Author

ghost commented Aug 25, 2019

Ah yes, that was the reason. I remember now. Stay at b9.

@ghost ghost closed this as completed Aug 25, 2019
@ghost ghost unassigned blimp666 Aug 25, 2019
@blimp666
Copy link
Contributor

blimp666 commented Sep 5, 2019

Newer Vyper versions up to 0.1.0b12 were recently added at etherscan.io

@blimp666 blimp666 reopened this Sep 5, 2019
@ghost
Copy link
Author

ghost commented Sep 5, 2019 via email

@blimp666
Copy link
Contributor

blimp666 commented Sep 5, 2019

Yes, you're right, now I see that tests are red with b12 - it fails with Cannot call public functions via 'self' (due to this change vyperlang/vyper@b1c7955 as a part of vyperlang/vyper#1199 ). However tests are green with b11, b11 includes performance and stability fixes, and I think it would be useful to upgrade at least to b11.

As for b12, there are some bugfixes too, but it seems now we can't call public methods internally. As far as I understand it, if we want to use b12, we just should have private methods (like tokenExchangeRateAfterFees) and public wrappers to them. It should not affect a transaction cost, however it will increase a contract size a bit. I guess it shouldn't take long to make our contract compatible with b12.

@ghost ghost assigned blimp666 and unassigned blimp666 Sep 6, 2019
@ghost ghost closed this as completed Sep 6, 2019
This issue was closed.
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

No branches or pull requests

1 participant