Skip to content

Aptos: Add to liquidswap pool (WIP)#451

Draft
nicomiicro wants to merge 39 commits intomasterfrom
aptos/contracts
Draft

Aptos: Add to liquidswap pool (WIP)#451
nicomiicro wants to merge 39 commits intomasterfrom
aptos/contracts

Conversation

@nicomiicro
Copy link
Copy Markdown
Contributor

@nicomiicro nicomiicro commented Oct 20, 2022

Notion ticket: https://www.notion.so/exsphere/Aptos-integration-f6daa06ac05b48f490528c38a50ffd88

  • Creates a fake USDC in Aptos and a liquidswap pool with this USDC and our attested swimUSD
  • Updates UI config
  • Fixed a bug on token balance query method

Checklist

  • Github project and label have been assigned
  • Tests have been added or are unnecessary
  • Docs have been updated or are unnecessary
  • Preview deployment works (visit the Cloudflare preview URL)
  • Manual testing in #product-testing completed or unnecessary
  • New i18n strings do not contain any security vulnerabilities (e.g. should not allow translator to update email/url)
  • When fetching new translations from external sources, do a sanity check (e.g. get people who speak the language to check, shove all new translations into Google translate)

@nicomiicro nicomiicro added the feature New feature or request label Oct 20, 2022
@nicomiicro nicomiicro self-assigned this Oct 20, 2022
@nicomiicro nicomiicro requested a review from wormat October 20, 2022 04:26
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Oct 20, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: c706d96
Status: ✅  Deploy successful!
Preview URL: https://9549dba7.swim-ui.pages.dev
Branch Preview URL: https://aptos-contracts-2tlh.swim-ui.pages.dev

View logs

@nicomiicro
Copy link
Copy Markdown
Contributor Author

I'm unsure on how to update src/core/selectors/swapTokenOptions.test.ts. Why do we have a different way to "disable" pools in there?

Copy link
Copy Markdown
Collaborator

@wormat wormat left a comment

Choose a reason for hiding this comment

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

Cool!

Comment thread packages/aptos-contracts/README.md Outdated
Comment thread packages/aptos-contracts/README.md Outdated
Comment thread packages/aptos-contracts/Move.toml Outdated
Comment thread packages/aptos-contracts/sources/test_coin.move Outdated
displayName: "Aptos USDC",
isStakingPool: false,
isStableSwap: true, // TODO is it?
isLegacyPool: false, // TODO, not legacy, not evm though, do we need a type here?
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We'll be removing this property from the SDK. Can you expand on the question here though?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I was wondering if a boolean is enough now that we introduce another pool type, since we filter with this in a few different places, but I guess I will figure out soon.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The SDK won't have any legacy support, so this is purely a UI question. I don't have the full context so can't give an opinion beyond that.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

oh so this flag is going to be removed then?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

From the SDK, yes. We'll be adding it to the UI pool type.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Comment thread packages/aptos/src/ecosystem.ts Outdated
Comment thread packages/aptos/src/client.ts
Comment thread apps/ui/src/config/pools.ts
Comment thread apps/ui/src/config/tokens.ts
Comment thread apps/ui/src/config/tokens.ts
@swim-io swim-io deleted a comment from wormat Oct 20, 2022
Comment thread apps/attestation/README.md Outdated
displayName: "Aptos USDC",
isStakingPool: false,
isStableSwap: true, // TODO is it?
isLegacyPool: false, // TODO, not legacy, not evm though, do we need a type here?
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

From the SDK, yes. We'll be adding it to the UI pool type.

displayName: "Aptos USDC",
isStakingPool: false,
isStableSwap: true, // TODO is it?
isLegacyPool: false, // TODO, not legacy, not evm though, do we need a type here?
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@nicomiicro nicomiicro requested a review from wormat October 20, 2022 14:33
wormat
wormat previously approved these changes Oct 20, 2022
@nicomiicro
Copy link
Copy Markdown
Contributor Author

@wormat I'll need your help with the publishing of the two packages 🙏

@nicomiicro nicomiicro changed the title Aptos: pool contract and UI config Aptos: Add to liquidswap pool (WIP) Oct 26, 2022
@nicomiicro nicomiicro marked this pull request as draft October 26, 2022 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants