understand does a pool created on curve.fi has the option or api or I can call a function of a smart contract to set exchange rate that I want to set right now? like a synth, yes and gold-pegged token is an example to describe the logic which I’m trying to achieve
the definition of free market mechanisms are clear for me, but I’m looking for a knowledge how to create a such pool that I’m needed
no ser you cannot manually change the exchange rate of your pool.
you want to know how to deploy a pool?
but then how can I implement my gold-pegged coin? theoretically I have backend services which are track cost 1 gram of gold and at some moment when I get information that the price went a bit higher on a specific CEX I needed to adjust the exchange rate in my pool otherwise I’m going to lose some money from arbitragers who will abuse my pool because the exchange rate reacts too slow and the price of my token doesn’t follow the price of real gold, any chance or any mechanism on DEX can help me?
what do you want to pair your gold backed coin with?
You want the amm to update the spot price the moment a trade happens offchain?
This is of course impossible to do. The oracle update woile be frontrun always and you’ll need to compete to update the oracle, and you’ll have to pay a higher transaction cost (maybe even equal to the mev profit) to beat arbitrageurs . Curve doesn’t do amms where spot prices are determined by an external oracle. It’s an automatic market maker that is based on a constant function. AMMs which rely on external oracles are kind of sort of lending protocols (see gmx).
We have some research ongoing which might be useful here though
got it, thanks, just for understanding is it possible to write in a smart contact a function to adjust exchange rate by passing new rate via arguments?
usdc or usdt, any stablecoin which costs 1usd so I can use it as base and adjust exchange rate to keep price of my token following the price of gold
I don’t like amm to so do, I have backend services which do this work, I just need to adjust exchange rate in my pool
This is not a property of the amm but a peoperty of the asset. The amm doesn’t set rates, market participants do. I get the feeling some basics is missing but anyway at curve you cannot set (spot) prices for assets
Обсуждают сегодня