protocol-v2 icon indicating copy to clipboard operation
protocol-v2 copied to clipboard

Populate additional fields in Price struct to be compatible with Pyth SDK

Open partiallysorted opened this issue 2 years ago • 0 comments

Added the following to initialize:

    price_oracle.magic = MAGIC;
    price_oracle.ver = VERSION;
    price_oracle.atype = AccountType::Price;

Added the following to set_price:

    price_oracle.curr_slot = clock.slot;
    price_oracle.valid_slot = clock.slot;

partiallysorted avatar Jun 25 '22 18:06 partiallysorted