Gonçalo Pestana

Results 89 issues of Gonçalo Pestana

As a follow up from the Kusama incident and our previous discussions, this PR fixes the knee jerk reaction of EPM to transition to the emergency phase. There were 2...

A0-please_review
B0-silent
C1-low
D9-needsaudit 👮

This PR creates an integration test crate for EPM and staking that is intended to test as accurately as possible protocol edge cases and critical states. Another goal of the...

A0-please_review
I5-tests
B0-silent
C1-low

This PR refactors the current `elections-phragmen` pallet to use an [`NposSolver`](https://paritytech.github.io/substrate/master/frame_election_provider_support/trait.NposSolver.html) instead of hardcoding one flavor of phragmen. In addition, it implements an [approval voting](https://en.wikipedia.org/wiki/Approval_voting) election scheme where each voter...

A0-please_review
C1-low
D1-audited 👍
B1-note_worthy
T0-node

Currently, there are a few staking related runtime APIs exposed by the clients (e.g. https://github.com/paritytech/substrate/pull/13119). However, the current runtime APIs are i) not exhaustive and ii) not general/unified. We should...

U3-nice_to_have

This PR refactors the implementation of the `ElectionDataProvider` bounds and implements a dynamic nomination quota per voter, based on the account's balance and an arbitrary curve. Instead of a fixed...

A0-please_review
C1-low
D9-needsaudit 👮
B1-note_worthy
T2-API

https://github.com/paritytech/substrate/pull/13040

A0-please_review
B0-silent
C1-low
D5-nicetohaveaudit ⚠️

Companion for https://github.com/paritytech/substrate/pull/12970

A0-please_review
C3-medium
D9-needsaudit 👮
T1-runtime
B1-note_worthy

Companion for https://github.com/paritytech/substrate/pull/13453 Cumulus companion: https://github.com/paritytech/cumulus/pull/2217

A0-please_review
C1-low
D5-nicetohaveaudit ⚠️
T0-node
B1-note_worthy

This PR adds the stake-tracker pallet without integrating it with the staking and bags lists pallets. The stake-tracker pallet implements the `OnStakingUpdate` trait to listen to staking events and multiplexes...

A0-please_review
B0-silent
C1-low
D3-trivial 🧸
T1-runtime

This PR refactors the staking ledger logic to encapsulate all reads and mutations of `Ledger`, `Bonded`, `Payee` and stake locks within the `StakingLedger` struct implementation. With these changes, all the...

A0-please_review
B0-silent
C1-low
D3-trivial 🧸
T1-runtime