Lay3rLabs / example-avs-oracle

MIT License
2 stars 0 forks source link

Add oracle price verifier contract #2

Closed ethanfrey closed 3 weeks ago

ethanfrey commented 1 month ago

We defined the contract here: https://github.com/Lay3rLabs/lay3r-contracts/issues/37

Let's copy this contract over here in this repo and adjust (contract or WASI components) as needed to ensure they use the same API

This should import any dependencies from https://github.com/Lay3rLabs/avs-toolkit and include good documention

gangov commented 4 weeks ago

note to self:

        let (median, slashable_operators, is_threshold_met) =
            process_votes(&all_votes, total_power, &config)?;

        for operator in slashable_operators {

note: this should only be if is_threshold_met is true (move it down a bit).

gangov commented 4 weeks ago

note to self:

        let (median, slashable_operators, is_threshold_met) =
            process_votes(&all_votes, total_power, &config)?;

        for operator in slashable_operators {

note: this should only be if is_threshold_met is true (move it down a bit).

fixed in 4a2d89a80f72