lindy-labs / opus_contracts

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

fix: rectify shrine assets in frontend data provider #583

Closed tserg closed 5 months ago

tserg commented 6 months ago

When calling frontend_data_provider.get_trove_assets_info(), the total amount of yang deposited in Shrine should be used to calculate the ShrineAssetInfo struct instead of the trove's balance.

Additionally, I used this as an opportunity test the upgradable component and added an upgrade script for both devnet and sepolia. I have tested the devnet script, and will execute the sepolia script after review.

tserg commented 5 months ago

Note: The devnet dump file needs to be updated.