Skip to content

[Data Source] Get user stakes #45

@FrancoAguzzi

Description

@FrancoAguzzi

Depending on what the user role is

A stakes list should be taken either from Staking or from Delegate contract.
These user stakes should be get by calling respective Smart-Contract "getUserStakeIds" function.
After this, "stakes(stakeId)" function should be called for each individual stake.
After that, the following data structure should be mounted by a function in the edge of our dApp and Smart-Contract data:

{
  id: string;
  keyper: Address;
  amount: number;
  status: LockStatus;
  unlockDate: number;
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions