Hi, can someone here help me?
I want to implement maintenance functionality such as oracle calls and pool initialization. Can you please explain or show somewhere how to do it? Tried to figure it out from txs. But it’s still unclear for me.
The easiest way to do the pools maintenance is to properly send 3 transactions in the following order:
Read the derivative data from the pool
Call the oracle to push the data to the Opium Protocol and make underlying pool’s derivative executable
Execute currently active LONG position
Initialize pool epoch
#0 Read the data
You need to get pool.derivative() structure and also pool.getDerivativeParams() to compose them into standard Opium.Derivative structure
USDT Protection pool didn’t have getDerivativeParams, so use [‘950000000000000000’, ‘2500’]
#1 Call the oracle
Added oracle addresses and types to attached file, some of them though are Optimistic Oracles and can’t be called automatically, only through this interface
I have one addition for you.
Phases calculation is not finished. There is one more thing.
From the staking contract you should call methods.idleStakingTimeLimit(), which returns you staking limit for idle phase. That means that until endTime - idleStakingTimeLimit users can still stake into pool, but not unstake.
And check this ABI, seems like you have it unfinished as well
Hello, I appreciate your interest in my work. @Haytham_Allos please, welcome to contribute and help, it will be fantastic @alirun by the way, wanted to ask if I can apply for developer grant you have. If I understood it correctly, I can do almost whatever I want based on opium, right?
I have added new pools, thank you for the provided info.
New links
main: Oh My Opium
realt: RealT Opium UI