Skip to content
Unverified Commit aa353283 authored by Dónal Murray's avatar Dónal Murray Committed by GitHub
Browse files

[pallet_broker] Fix `adapt_price` behaviour at zero (#3636)



This fixes the behaviour of `Linear` which is the default implementation
of the `AdaptPrice` trait in the broker pallet. Previously if cores were
offered but not sold in only one sale, the price would be set to zero
and due to the logic being purely multiplicative, the price would stay
at 0 indefinitely.

This could be further paired with a configurable minimum in the broker
pallet itself, which will be a future PR.

This affects the Rococo and Westend Coretime chains, but Kusama has a
different implementation so this isn't required for the Kusama launch. I
actually thought I opened this a while ago.

---------

Co-authored-by: default avatarBastian Köcher <[email protected]>
parent 8dc6048d
Pipeline #453949 canceled with stages
in 20 minutes and 51 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment