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

Aptos: Add to liquidswap pool (WIP) #451

Draft
wants to merge 39 commits into
base: master
Choose a base branch
from
Draft

Conversation

nicomiicro
Copy link
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
@cloudflare-workers-and-pages
Copy link

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
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
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!

packages/aptos-contracts/README.md Outdated Show resolved Hide resolved
packages/aptos-contracts/README.md Outdated Show resolved Hide resolved
packages/aptos-contracts/Move.toml Outdated Show resolved Hide resolved
packages/aptos-contracts/sources/test_coin.move Outdated Show resolved Hide resolved
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
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
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
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
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
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
Collaborator

Choose a reason for hiding this comment

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

packages/aptos/src/ecosystem.ts Outdated Show resolved Hide resolved
packages/aptos/src/client.ts Show resolved Hide resolved
apps/ui/src/config/pools.ts Show resolved Hide resolved
apps/ui/src/config/tokens.ts Show resolved Hide resolved
apps/ui/src/config/tokens.ts Show resolved Hide resolved
apps/attestation/README.md Outdated Show resolved Hide resolved
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
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
Collaborator

Choose a reason for hiding this comment

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

wormat
wormat previously approved these changes Oct 20, 2022
@nicomiicro
Copy link
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