Skip to content

Commit

Permalink
feat: use sync method from cdp mngr to inspect coll an debt figures f…
Browse files Browse the repository at this point in the history
…or cdp id
  • Loading branch information
petrovska-petro committed Feb 14, 2024
1 parent 9d360d7 commit 390a7d9
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions scripts/cdp_management_lens.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,8 @@ def main(msig_address=r.badger_wallets.treasury_vault_multisig):
cdps_safe_owned = safe.ebtc.sorted_cdps.getCdpsOf(safe)
for cdp_id in cdps_safe_owned:
C.print(f"[green]Inspecting cdp id: {cdp_id}\n[/green]")
(
cdp_id_debt,
cdp_id_coll,
_,
_,
_,
_,
) = safe.ebtc.cdp_manager.Cdps(cdp_id)
cdp_id_coll = safe.ebtc.cdp_manager.getSyncedCdpCollShares(cdp_id)
cdp_id_debt = safe.ebtc.cdp_manager.getSyncedCdpDebt(cdp_id)
icr = safe.ebtc.cdp_manager.getSyncedICR(cdp_id, feed_price)

# increase global vars
Expand Down

0 comments on commit 390a7d9

Please sign in to comment.