Manages open pnl oracle requests for a gToken vault
LINK_FEE_BALANCE_DIVIDER
uint256 LINK_FEE_BALANCE_DIVIDER
MIN_ANSWERS
MIN_REQUESTS_START
uint256 MIN_REQUESTS_START
MAX_REQUESTS_START
uint256 MAX_REQUESTS_START
MIN_REQUESTS_EVERY
uint256 MIN_REQUESTS_EVERY
MAX_REQUESTS_EVERY
uint256 MAX_REQUESTS_EVERY
MIN_REQUESTS_COUNT
uint256 MIN_REQUESTS_COUNT
MAX_REQUESTS_COUNT
uint256 MAX_REQUESTS_COUNT
gToken
contract IGToken gToken
requestsStart
uint256 requestsStart
requestsEvery
uint256 requestsEvery
requestsCount
uint256 requestsCount
oracles
job
minAnswers
nextEpochValues
int256[] nextEpochValues
nextEpochValuesRequestCount
uint256 nextEpochValuesRequestCount
nextEpochValuesLastRequest
uint256 nextEpochValuesLastRequest
lastRequestId
uint256 lastRequestId
requestIds
mapping(bytes32 => uint256) requestIds
requests
mapping(uint256 => struct IGTokenOpenPnlFeed.Request) requests
requestAnswers
mapping(uint256 => int256[]) requestAnswers
constructor
constructor(uint256 _LINK_FEE_BALANCE_DIVIDER, address _linkToken, contract IGToken _gToken, address[] _oracles, bytes32 _job, uint256 _minAnswers) public
onlyGTokenOwner
modifier onlyGTokenOwner()
onlyGTokenManager
modifier onlyGTokenManager()
onlyGTokenAdmin
modifier onlyGTokenAdmin()
updateRequestsStart
function updateRequestsStart(uint256 newValue) public
updateRequestsEvery
function updateRequestsEvery(uint256 newValue) public
updateRequestsCount
function updateRequestsCount(uint256 newValue) public
updateRequestsInfoBatch
function updateRequestsInfoBatch(uint256 newRequestsStart, uint256 newRequestsEvery, uint256 newRequestsCount) external
updateMinAnswers
function updateMinAnswers(uint256 newValue) external
updateOracle
function updateOracle(uint256 _index, address newValue) external
updateOracles
function updateOracles(address[] newValues) external
updateJob
function updateJob(bytes32 newValue) external
resetNextEpochValueRequests
function resetNextEpochValueRequests() external
forceNewEpoch
function forceNewEpoch() external
newOpenPnlRequestOrEpoch
function newOpenPnlRequestOrEpoch() external
fulfill
function fulfill(bytes32 requestId, int256 value) external