GIP-0016: Revert when not enough precision to assign a delegation share

A delegation pool holds tokens deposited by delegators as well as rewards. When rewards start accruing, delegating a very-very small amount of new tokens by a delegator could lead to zero shares being assigned even if the tokens deposited were accepted.

Specification

Revert in any condition when no shares are assigned by adding a check in the delegate() function right after the amount of shares is calculated for the amount of tokens received.

Implementation

See @graphprotocol/contracts#491

Backwards Compatibility

The proposal is fully backwards compatible.

Validation

Audits

The implementation was audited by Consensys Diligence.

Testnet

The implementation has not yet been deployed to Testnet.

1 Like

This GIP was implemented on 03/25/2022 as part of GGP-0007 and is now live

1 Like