From 9881f5f3dcb1116a5f2a6ad8de8c363b69b08a91 Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Sat, 1 May 2021 10:17:23 +0100 Subject: [PATCH] Removed debug cell from Liquidation notebook. --- Liquidation.ipynb | 36 ++++++++++-------------------------- 1 file changed, 10 insertions(+), 26 deletions(-) diff --git a/Liquidation.ipynb b/Liquidation.ipynb index 4504079..7c81140 100644 --- a/Liquidation.ipynb +++ b/Liquidation.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "prime-julian", + "id": "suitable-circuit", "metadata": {}, "source": [ "# ⚠ Warning\n", @@ -16,7 +16,7 @@ }, { "cell_type": "markdown", - "id": "valued-gates", + "id": "natural-persian", "metadata": {}, "source": [ "# 🥭 Liquidation\n", @@ -31,7 +31,7 @@ { "cell_type": "code", "execution_count": null, - "id": "sexual-authorization", + "id": "interesting-fleet", "metadata": { "jupyter": { "source_hidden": true @@ -49,7 +49,7 @@ }, { "cell_type": "markdown", - "id": "quantitative-evolution", + "id": "overall-canadian", "metadata": {}, "source": [ "## 🦺 Safety\n", @@ -63,7 +63,7 @@ }, { "cell_type": "markdown", - "id": "stock-silence", + "id": "false-billy", "metadata": {}, "source": [ "## 📇 Collateralisation Ratios Details\n", @@ -81,7 +81,7 @@ }, { "cell_type": "markdown", - "id": "committed-consequence", + "id": "polish-hartford", "metadata": {}, "source": [ "# 💧 Liquidation Process" @@ -89,7 +89,7 @@ }, { "cell_type": "markdown", - "id": "accredited-profile", + "id": "productive-mailman", "metadata": {}, "source": [ "## 📇 Steps\n", @@ -117,7 +117,7 @@ }, { "cell_type": "markdown", - "id": "finite-sapphire", + "id": "speaking-retirement", "metadata": {}, "source": [ "# 🏃 Running\n", @@ -134,7 +134,7 @@ { "cell_type": "code", "execution_count": null, - "id": "aquatic-honolulu", + "id": "middle-dancing", "metadata": {}, "outputs": [], "source": [ @@ -144,7 +144,7 @@ { "cell_type": "code", "execution_count": null, - "id": "allied-least", + "id": "virtual-capitol", "metadata": {}, "outputs": [], "source": [ @@ -189,22 +189,6 @@ " for token in group.tokens:\n", " print(f\"{token.name:>7} balance: {default_context.fetch_token_balance(default_wallet.address, token.mint):>18,.8f}\")\n" ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "nuclear-bargain", - "metadata": {}, - "outputs": [], - "source": [ - "for index in range(len(intrinsic_balance_sheets_before)):\n", - " before = intrinsic_balance_sheets_before[index]\n", - " after = intrinsic_balance_sheets_after[index]\n", - " if before.assets - after.assets > 0:\n", - " print(f\"Margin account decreased by {before.assets - after.assets:,.8f} {before.token.name}\")\n", - " if before.liabilities - after.liabilities > 0:\n", - " print(f\"Margin account increased by {after.liabilities - before.liabilities:,.8f} {before.token.name}\")\n" - ] } ], "metadata": {