Limits amount of rETH to be swapped for stETH to ~800 (uses CG's spot to estimate amount of rETH to add)
Modifies the top-up portion of the script so that the original CDP is adjusted in order to borrow the eBTC required for the top-ups. It first tops-up collateral and then borrows more debt while preserving the target ICR (200%) - LGTM (Note: For the future, we should incorporate the adjustCdpWithColl function so that we can do this two actions in one transaction).
Simulations show effective pool creation, eBTC borrowing and minting of positions (seeding) - LGTM
Passing target ICR to function as 2e18 (200%) as expected by functions - LGTM
adjustCdpWithColl
function so that we can do this two actions in one transaction).Originally posted by @sajanrajdev in https://github.com/ebtc-protocol/ebtc-multisig/pull/38#pullrequestreview-1953059240