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

chore: impr ffee #2738

Merged
merged 1 commit into from
Oct 2, 2023
Merged

chore: impr ffee #2738

merged 1 commit into from
Oct 2, 2023

Conversation

stackchain
Copy link
Member

No description provided.

@github-actions github-actions bot added the chore label Oct 2, 2023
@stackchain stackchain marked this pull request as ready for review October 2, 2023 00:05
@stackchain stackchain added this to the 5.0.0 milestone Oct 2, 2023

export const milkTokenId = {
mainnet: '8a1cfae21368b8bebbbed9800fec304e95cce39a2a57dc35e2e3ebaa.4d494c4b',
preprod: '8a1cfae21368b8bebbbed9800fec304e95cce39a2a57dc35e2e3ebaa.4d494c4b',
Copy link
Member Author

Choose a reason for hiding this comment

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

  • get id preprod

@stackchain stackchain requested review from jorbuedo and SorinC6 October 2, 2023 00:06
@@ -30,8 +30,8 @@ export const getBuyAmount = (
return {
tokenId,
quantity: asQuantity(
BigNumber(sell.quantity)
.dividedToIntegerBy(BigNumber(limit))
new BigNumber(sell.quantity)
Copy link
Contributor

Choose a reason for hiding this comment

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

From their docs, new is optional

x = new BigNumber(123.4567)                // '123.4567'
// 'new' is optional
y = BigNumber(x)                           // '123.4567'

But we can add them if you like them

Copy link
Member Author

Choose a reason for hiding this comment

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

TS complains after BN 9.1

Copy link
Contributor

Choose a reason for hiding this comment

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

Uh, ok, I hadn't noticed anything but probably didn't do any install yet since 9.1 4 days ago

sellAmount: Balance.Amount
buyAmount: Balance.Amount
milkBalance: Balance.Quantity
sellInPrimaryTokenValue: Balance.Amount
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we get these from finding a pool between sell token and ada?

Copy link
Member Author

Choose a reason for hiding this comment

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

these are received from the order + some metadata that it still don't have such as the sell/buy value in primary when they are not the primary. iUSD/DJED -> iUSD/ADA + DJED/ADA (based on what's selling)

@stackchain stackchain merged commit dec7825 into develop Oct 2, 2023
5 checks passed
@stackchain stackchain deleted the chore/imp-ffee branch October 2, 2023 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants