PortalToBlockchainOrganization / CryptoCount

Tezos blockchain asset exit mockups, fiat gain and FMV tax reconciliation and reconnaissance tool.
https://cryptocount.co
Apache License 2.0
6 stars 1 forks source link

get reward method optimization #2

Closed HenrikMoe closed 3 years ago

HenrikMoe commented 3 years ago

tzkt has a new api endpoint - https://api.tzkt.io/v1/rewards/delegators/{address}?cycle

integration will be more efficient and lower code quantity

HenrikMoe commented 3 years ago

endpint ends up returning data about the baker and does not give data for actual received rewards for the delgator. Original get rewards is optimal. One adjustment made for weird payload values where a subset of the reward payout values are scaled down by 10,000 units.