lindy-labs / opus_contracts

Opus Source Code
https://opus.money
Other
0 stars 0 forks source link

feat[periphery]: improve trove helper #588

Closed tserg closed 4 months ago

tserg commented 4 months ago

Following @kseikyo 's request for the return data of frontend_data_provider.get_trove_assets_info() to include the trove ID and trove owner address, I have added a new TroveInfo type with this information.

I have updated the devnet deployment addresses and devnet dump file as well (I had to redeploy devnet as I did not have the original state file). Once approved, I will redeploy the frontend data provider on Sepolia (upgrade would not work since we now need to pass the abbot address into the constructor).

tserg commented 4 months ago

I have added the following members to TroveInfo struct and verified it is working on devnet:

  1. health
  2. max_forge_amt
  3. is_liquidatable
  4. is_absorbable

Ready for another round of review.