2026-05-20 - Currency Project

From Izara Wiki
Jump to navigation Jump to search

Development - Izara Currency

old:

Service - Currencies


Overview

  • Shared project where users can create currency tables used in Izara Market, Izara Supply, Izara Accounting etc
  • A table is a list of conversions from one currency to another
  • Currencies are not limited to standards, anyone can create any currency, so external projects must allow for table returning not found result
  • Each currency table has RBAC

Currency Calcs

  • Currency functions allow an extra layer on top of currency tables to calculate rate
  • Can dig data from multiple tables
  • Can perform functions on values to return single value
  • Calcs are a handler service same as currencyTableStandard so requests get sent to currencyTable and Manager chooses if handled by tableStandard or calc
  • Can request directly from currencyTable or currencyCalc

Oracles

  • Digging currency rates from outside sources, eg central banks for accounting purposes
  • Try using shared currencyTable structure, but have hardcoded per oracle flows that update it

Historical rates

  • Changes need to be recorded in graph so can extract historical rates
  • This might be required for eg accounting transactions that require a rate on a specific timestamp

notes

  • maintaining historical rates may use large resources for eg oracles that update regularly
  • perhaps build resourceUse for data/logic costs per currencyTable
  • also have setting whether historical rates are stored per currencyTable