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

Automated Market Making strategy #21

Merged
merged 20 commits into from
Sep 22, 2020
Merged

Automated Market Making strategy #21

merged 20 commits into from
Sep 22, 2020

Conversation

tiero
Copy link
Collaborator

@tiero tiero commented Sep 1, 2020

Before this commit the pricing could only be updated manually. This implements a package marketmaking that defines the intrefaces for automated market making formulas.

By default a market when created uses an AMM called BalancedReserves. If the operator wanst to use a pluggable strategy can call the RPC UpdateMarketStrategy. in order to change the price of the market the operator (or most likely external price feed bots) will call the rpc UpdateMarketPrice

This closes #23

This may close #45 and fix #44

Please @sekulicd @altafan review

@tiero tiero changed the title Market Making strategy enum WIP: Market Making strategy enum Sep 1, 2020
@tiero tiero changed the title WIP: Market Making strategy enum WIP: Automated Market Making strategy Sep 3, 2020
@tiero tiero changed the title WIP: Automated Market Making strategy Automated Market Making strategy Sep 18, 2020
pkg/marketmaking/market_making.go Outdated Show resolved Hide resolved
pkg/marketmaking/market_making.go Outdated Show resolved Hide resolved
pkg/marketmaking/market_making.go Outdated Show resolved Hide resolved
pkg/marketmaking/market_making.go Outdated Show resolved Hide resolved
pkg/marketmaking/formula/mathutil.go Outdated Show resolved Hide resolved
pkg/marketmaking/formula/feeutil.go Outdated Show resolved Hide resolved
Co-authored-by: Pietralberto Mazza <pietro@vulpem.com>
@tiero tiero merged commit c0d5597 into tdex-network:master Sep 22, 2020
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.

Rethink FundMarket FundMarket must recognize txs duplicate Automated Market Making
3 participants