Skip to content

CORE-152. Available liquidity at target price#103

Merged
oskin1 merged 1 commit into
core-150_amm-aggregationfrom
core-152-avaliable-liquidity
Jun 25, 2024
Merged

CORE-152. Available liquidity at target price#103
oskin1 merged 1 commit into
core-150_amm-aggregationfrom
core-152-avaliable-liquidity

Conversation

@Bromel777

Copy link
Copy Markdown
Contributor

…arget price in cfmm/balance pools.


@linear

linear Bot commented Jun 24, 2024

Copy link
Copy Markdown

@Bromel777 Bromel777 force-pushed the core-152-avaliable-liquidity branch from 8f246e7 to 86009b4 Compare June 24, 2024 16:08
… price in cfmm/balance pools.

--------------

Co-authored-by: AOranov <a.oranov@spectrumlabs.fi>
@Bromel777 Bromel777 force-pushed the core-152-avaliable-liquidity branch from 86009b4 to 47e33ef Compare June 24, 2024 16:09
/// How much (approximately) execution of this fragment will cost.
fn marginal_cost_hint(&self) -> Self::U;

fn available_liquidity(&self, max_price_impact: Side<Ratio<u128>>) -> (u128, u128);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is this tuple in return position? Why u128?

Comment on lines +542 to +551
println!(
"{:?}",
<u128>::try_from(
(total_fee_mult.clone() * BigNumber::from(100000))
.value
.to_int()
.value()
)
.unwrap()
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

.

@oskin1 oskin1 merged commit 7b05b96 into core-150_amm-aggregation Jun 25, 2024
@oskin1 oskin1 deleted the core-152-avaliable-liquidity branch June 25, 2024 10:18
oskin1 pushed a commit that referenced this pull request Jun 25, 2024
… price in cfmm/balance pools. (#103)

--------------

Co-authored-by: AOranov <a.oranov@spectrumlabs.fi>
oskin1 pushed a commit that referenced this pull request Jul 2, 2024
… price in cfmm/balance pools. (#103)

--------------

Co-authored-by: AOranov <a.oranov@spectrumlabs.fi>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants