-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: Chainlink interface #94
base: main
Are you sure you want to change the base?
Conversation
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
1 similar comment
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
1 similar comment
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
* Users should deploy an instance of this contract to wrap every price feed id that they need to use. | ||
*/ | ||
contract PragmaAggregatorV3 { | ||
bytes32 public feedId; |
Check warning
Code scanning / Slither
State variables that could be declared immutable
*/ | ||
contract PragmaAggregatorV3 { | ||
bytes32 public feedId; | ||
IPragma public pragmaInterface; |
Check warning
Code scanning / Slither
State variables that could be declared immutable
function updateFeeds(bytes[] calldata priceUpdateData) public payable { | ||
// Update the prices to the latest available values and pay the required fee for it. The `priceUpdateData` data | ||
// should be retrieved from the Theoros SDK, you can find additional information on https://docs.pragmaoracle.com/ | ||
uint256 fee = pragmaInterface.getUpdateFee(priceUpdateData); | ||
pragmaInterface.updateDataFeeds{value: fee}(priceUpdateData); | ||
|
||
// refund remaining eth | ||
payable(msg.sender).call{value: address(this).balance}(""); | ||
} |
Check failure
Code scanning / Slither
Functions that send Ether to arbitrary destinations
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
1 similar comment
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
1 similar comment
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
Resolves #76
Addition