From 126d03c09d64499967e40fa9d662b2b6df916994 Mon Sep 17 00:00:00 2001 From: yorhodes Date: Tue, 5 Oct 2021 12:07:48 -0700 Subject: [PATCH] Add helpful comments --- packages/cli/src/commands/releasegold/admin-revoke.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/cli/src/commands/releasegold/admin-revoke.ts b/packages/cli/src/commands/releasegold/admin-revoke.ts index bbb08edd016..da962d865dd 100644 --- a/packages/cli/src/commands/releasegold/admin-revoke.ts +++ b/packages/cli/src/commands/releasegold/admin-revoke.ts @@ -117,6 +117,7 @@ export default class AdminRevoke extends ReleaseGoldBaseCommand { ) } + // rescue any cUSD balance const stabletoken = await this.kit.contracts.getStableToken() const cusdBalance = await stabletoken.balanceOf(this.contractAddress) if (cusdBalance.isGreaterThan(0)) { @@ -128,6 +129,7 @@ export default class AdminRevoke extends ReleaseGoldBaseCommand { ) } + // attempt to refund and finalize, surface pending withdrawals const remainingLockedGold = await this.releaseGoldWrapper.getRemainingLockedBalance() if (remainingLockedGold.isZero()) { await displaySendTx(