Skip to content

feat: implement Liquidity functions with tests#103

Merged
GoSTEAN merged 2 commits intoskill-mind:mainfrom
emarc99:feat-liquidity
May 29, 2025
Merged

feat: implement Liquidity functions with tests#103
GoSTEAN merged 2 commits intoskill-mind:mainfrom
emarc99:feat-liquidity

Conversation

@emarc99
Copy link
Contributor

@emarc99 emarc99 commented May 14, 2025

Copy link
Collaborator

Choose a reason for hiding this comment

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

why did you remove this swap_exact_tokens_for_tokens() and this function get_swap_rate()

Copy link
Collaborator

Choose a reason for hiding this comment

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

I can't see your test file

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'll add test soon.
  • I commented out those functions because scarb complains of missing traits implementation.

@emarc99 emarc99 marked this pull request as draft May 15, 2025 08:02
@emarc99
Copy link
Contributor Author

emarc99 commented May 15, 2025

@GoSTEAN I read your project README and I figured you wanted a real ERC20 tokens minted to liquidity providers when they add liquidity. But, my current implementation just mints internal LP tokens whose balance are managed by the contract.

As there is no pool, pair and factory contracts in the repo to (dynamically) deploy LP token contract per pool , I am working on a simple way to achieve this while meeting InheritX project's objectives.

Then tests will easily be applied!

@GoSTEAN
Copy link
Collaborator

GoSTEAN commented May 27, 2025

@emarc99 How is this going?

@emarc99
Copy link
Contributor Author

emarc99 commented May 27, 2025

Going quite well. To ensure compatibility, I am working on below issue simultaneously. Would love to be assigned to that as well when this is merged;

@GoSTEAN
Copy link
Collaborator

GoSTEAN commented May 27, 2025

Just finish with one first please

@GoSTEAN
Copy link
Collaborator

GoSTEAN commented May 27, 2025

@emarc99 can this be done by tomorrow? Because you have held this for so long (2 weeks)

@emarc99
Copy link
Contributor Author

emarc99 commented May 27, 2025

On it right now. I'll open the PR by tomorrow morning at the latest, after I reviewed it.

@emarc99
Copy link
Contributor Author

emarc99 commented May 28, 2025

Apologies for the delay, I was trying out something I ultimately just concluded is not required right now.

@emarc99
Copy link
Contributor Author

emarc99 commented May 29, 2025

Opening PR any moment, looking at any more tests that can be added....

@emarc99 emarc99 changed the title feat: implement Liquidity function feat: implement Liquidity functions with tests May 29, 2025
@emarc99 emarc99 marked this pull request as ready for review May 29, 2025 15:34
@GoSTEAN
Copy link
Collaborator

GoSTEAN commented May 29, 2025

Opening PR any moment, looking at any more tests that can be added....

Your TG handle

@emarc99
Copy link
Contributor Author

emarc99 commented May 29, 2025

TG: emarc99

@GoSTEAN GoSTEAN merged commit a6f09f3 into skill-mind:main May 29, 2025
1 check passed
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.

Feature: Create Liquidity Functions and Test Cases

2 participants