Get Long Term Order Details
How to get details of placed Long Term Order?
There is an external function available in the pool contract, that returns the details of the order placed. You need to have the orderId
of the order you want to fetch.
This is how the function prototype looks like:
Details of the response parameters:
orderId
- The order of the IDexpirationBlock
- The block at which the order will completesalesRate
- Per block sales rate of the ordersellTokenIndex
- The index of the token being soldbuyTokenIndex - The index of the token being bought
boughtAmount - The actual token amount bought so far.
To get the estimated amount of the tokens if cancel/withdrawn been called right now, you can call Cancel Long Term Order or Withdraw Long Term Order respectively in callStatic way.
Last updated