Closed code423n4 closed 2 years ago
0x1f8b
Gas saving.
It's possible to optimize the structures struct ChainlinkResponse and TellorResponse from PriceFeed to use less storage slots.
Use the following structure:
struct ChainlinkResponse { int256 answer; uint256 timestamp; uint80 roundId; bool success; uint8 decimals; } struct TellorResponse { uint256 value; uint256 timestamp; bool ifRetrieve; bool success; }
@LilYeti : Duplicate #5 #6
Duplicate of #224
Handle
0x1f8b
Vulnerability details
Impact
Gas saving.
Proof of Concept
It's possible to optimize the structures struct ChainlinkResponse and TellorResponse from PriceFeed to use less storage slots.
Tools Used
Recommended Mitigation Steps
Use the following structure: