terra-money / fcd-classic

Terra ETL + RestFul API Server
https://fcd.terra.dev/swagger
MIT License
63 stars 42 forks source link

Fix/tax cap rate fallback #89

Closed maruf0011 closed 4 years ago

maruf0011 commented 4 years ago

Add fallback for tax cap and tax rate if collector stopped for long time. In col-4 tx data doesn't contains the tax_rate and tax_cap info. FCD need to get those info from /treasury/tax_rate?height= and /treasury/tax_cap/{denom}?height=. LCD keeps data of last 1000 height. so those data will be unavailable if collector stopped for long time. in that case it will use current tax_rate and tax_caps from lcd.