Skip to content

Fix Oracle Mock's inconsistencies #88

Description

@0xsomewherecat

Issue:
ChainlinkMock was deemed frozen even though its price was updated right before the PriceFeed#fetchPrice was called.

Cause:
Chainlink uses roundData to return its prices and timestamp. The current implementation misses to update the roundData when its price is updated via the setLastPrice function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions