-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
feat(smart-contracts): replace udt
by governanceToken
in Unlock contract
#14688
Conversation
@@ -81,8 +81,8 @@ contract Unlock is UnlockInitializable, UnlockOwnable { | |||
// The WETH token address, used for value calculations | |||
address public weth; | |||
|
|||
// The UDT token address, used to mint tokens on referral | |||
address public udt; |
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.
We should probably keep that and mark it as deprecated in favor of governanceToken
to avoid breaking 3rd parties?
smart-contracts/test/UPToken/swap.js
Outdated
@@ -52,7 +52,7 @@ describe('Swapper UP / UDT', () => { | |||
assert.equal(await swap.up(), await up.getAddress()) | |||
}) | |||
it('up is properly set', async () => { | |||
assert.equal(await swap.udt(), await udt.getAddress()) | |||
assert.equal(await swap.governanceToken(), await udt.getAddress()) |
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.
Thatr's probably not right?
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.
Let's keep the udt()
signature for compatinbility!
…col/unlock into rename-udt-governance-token
Co-authored-by: Julien Genestoux <julien.genestoux@gmail.com>
Description
This replaces UDT with
governanceToken
in contractsIssues
Fixes #14658
Refs #
Checklist:
Release Note Draft Snippet