ebtc-protocol / ebtc-multisig

eBTC's EVM multisig operations.
GNU Affero General Public License v3.0
0 stars 0 forks source link

Feat/cli cdp management #19

Closed petrovska-petro closed 5 months ago

petrovska-petro commented 5 months ago

close #7

run, sample:

brownie run scripts/cdp_management_lens.py --network sepolia-fork main 0x491657f0b1e70fB175B3d079b26EcC962AfFEA6C
sajanrajdev commented 5 months ago

@petrovska-petro seems like this PR includes the changes from the UniV3 helpers. Do you want to rebase to that branch or perhaps claw back the UniV3 changes?

sajanrajdev commented 5 months ago

Review

Introduces a script that using an address as input, outputs all of the active CDPs owned by the address with the following details for each: CDP ID, Collateral, Debt, ICR, cdp collateral vs total cdp's owned (%) and cdp debt vs total cdp's owned (%). In addition, it outputs the current ICR and price as observed by the system in real time.

LGTM

Will just wait on fixes to wrong base before approving.

petrovska-petro commented 5 months ago

@sajanrajdev base has being changed