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

dex/{networks,testing}: Add simnet USDC #2640

Merged
merged 1 commit into from
Mar 26, 2024
Merged

Conversation

martonp
Copy link
Collaborator

@martonp martonp commented Dec 26, 2023

This adds the usdc.eth and usdc.polygon assets to simnet and gets rid of dextt.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need separate contract TestToken and contract TestUSDC? Can't they be the same contract on simnet?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, it's not necessary. I added a parameter to the TestToken contract so that the decimals can be 6 like the actual contract.

Copy link
Member

@buck54321 buck54321 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we even need the dextt token any more?

constructor() {
_name = "TestToken";
_symbol = "TST";
constructor(bool usdc) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not constructor(uint8 decimals)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to have the correct _name and _symbol.. there's no point though.

@martonp
Copy link
Collaborator Author

martonp commented Jan 26, 2024

Do we even need the dextt token any more?

True, if no one needs it I'll just remove it.

@buck54321
Copy link
Member

I'd really like to get rid of the dextt token. We can just call it usdc.polygon. It's existence causes a lot of headaches.

@martonp
Copy link
Collaborator Author

martonp commented Mar 24, 2024

@buck54321 Got rid of it.

This adds the usdc.eth and usdc.polygon assets to simnet and gets rid of
dextt.
@buck54321 buck54321 merged commit 239d33b into decred:master Mar 26, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants