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

feat(smart-contracts): replace udt by governanceToken in Unlock contract #14688

Merged
merged 11 commits into from
Oct 11, 2024

Conversation

clemsos
Copy link
Member

@clemsos clemsos commented Sep 27, 2024

Description

This replaces UDT with governanceToken in contracts

Issues

Fixes #14658
Refs #

Checklist:

  • 1 PR, 1 purpose: my Pull Request applies to a single purpose
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the docs to reflect my changes if applicable
  • I have added tests (and stories for frontend components) that prove my fix is effective or that my feature works
  • I have performed a self-review of my own code
  • If my code involves visual changes, I am adding applicable screenshots to this thread

Release Note Draft Snippet

@@ -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;
Copy link
Member

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?

@@ -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())
Copy link
Member

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?

Copy link
Member

@julien51 julien51 left a 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!

clemsos and others added 2 commits October 4, 2024 20:46
Co-authored-by: Julien Genestoux <julien.genestoux@gmail.com>
@clemsos clemsos merged commit 82946f8 into master Oct 11, 2024
13 checks passed
@clemsos clemsos deleted the rename-udt-governance-token branch October 11, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename UDT for "governance token"
2 participants