Using a commission in our automated market maker to reward liquidity providers
Tracking Liquidity in the Automated Market Maker
Using Liquidity Provider Tokens (LP tokens) to keep track of who provided liquidity to the Automated Market Maker (AMM)
Adding Liquidity to the AMM
Adding/removing liquidity from the Automated Market Maker
Trading the Automated Market Maker
This post is part of a series on DeFi. Here is the previous post, and this is the first post in the series. We've seen how buying and selling from the Automated Market Maker (AMM) alters the token price. Now let's see what it looks like when we have multiple people (counterparties) buying from and … Continue reading Trading the Automated Market Maker
Refactoring the Ruby Automated Market Maker
This is the second in a series of blog posts about DeFi. The first post is here. In the last post, we implemented the buy method of our Automated Market Maker (AMM) like this: # Counterparty pays `amount` eth for some tokens def buy(amount) ether = amount.to_f @ether_reserve += ether new_token_reserve = @konst / @ether_reserve … Continue reading Refactoring the Ruby Automated Market Maker