Skip to content

AB#3125: Add support for unifiBTC and unifiUSD#52

Merged
9inpachi merged 6 commits intomainfrom
AB#3125/unifi-usd-and-btc
Jan 19, 2025
Merged

AB#3125: Add support for unifiBTC and unifiUSD#52
9inpachi merged 6 commits intomainfrom
AB#3125/unifi-usd-and-btc

Conversation

@9inpachi
Copy link
Collaborator

@9inpachi 9inpachi commented Jan 17, 2025

What this PR does / why we need it:

Updated the nucleus contracts to be able to work with any UniFi token.

Which issue(s) does this PR fixes:

Fixes AB#3125

@@ -37,7 +54,8 @@ export class NucleusAccountantHandler {
* @returns The viem contract.
*/
public getContract() {

Choose a reason for hiding this comment

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

Is there a possibility for runtime error in case NUCLEUS_CONTRACT_ADDRESSES doesn't exist?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, if the contract doesn't exist for the selected chain. We can put checks in place and throw more sophisticated errors for all the handlers but that for now can be shelved I think as it's working fine at the moment.

@9inpachi 9inpachi merged commit f7546e5 into main Jan 19, 2025
1 check passed
Copy link
Contributor

@guestn guestn left a comment

Choose a reason for hiding this comment

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

lgtm

@guestn guestn deleted the AB#3125/unifi-usd-and-btc branch January 19, 2025 13:13
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.

3 participants