Skip to content

[RAO] Calculation of the return_per_1000 in DelegateInfo RPC is incorrect #992

@gztensor

Description

@gztensor

The return_per_1000 in DelegateInfo RPC has hardcoded parameter

The 18% delegate take is hardcoded as 1 - 18% = 0.82 in get_delegate_by_existing_account. If it changes, the DelegateInfo::return_per_1000 will be inaccurate. Change it to read the delegate take from Delegates state map.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions