You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deletefrom account_operations where block_num>18246321;
2
+
deletefrom allowed_protocols where block_num>18246321;
3
+
deletefrom allowed_tokens where block_num>18246321;
4
+
deletefrom credit_manager_stats where block_num>18246321;
5
+
deletefrom credit_session_snapshots where block_num>18246321;
6
+
deletefrom dao_operations where block_num>18246321;
7
+
deletefrom blocks where id >18246321;
8
+
9
+
10
+
deletefrom debts where block_num>18246321;
11
+
update debt_sync set last_calculated_at=18246321;
12
+
deletefrom token_oracle where block_num>18246321;
13
+
deletefrom transfer_account_allowed where block_num>18246321;
14
+
deletefrom no_session_transfers where block_num>18246321;
15
+
deletefrom fast_check_params where block_num>18246321;
16
+
deletefrom parameters where block_num>18246321;
17
+
deletefrom pool_stats where block_num>18246321;
18
+
deletefrom pool_ledger where block_num>18246321;
19
+
deletefrom current_debts where block_num >18246321;
20
+
deletefrom liquidable_accounts where block_num>18246321; -- doesn't matter if it is closed or open
21
+
deletefrom token_ltramp where block_num>18246321;
22
+
deletefrom quota_details where block_num>18246321;
23
+
24
+
-- a
25
+
update sync_adapters set last_sync =18246321where type in ('CreditConfigurator', 'AccountManager','CreditFilter', 'CreditManager', 'Pool') and last_sync >18246321;
26
+
--
27
+
deletefrom credit_sessions where since>18246321;
28
+
update credit_sessions set closed_at=0,liquidator='', remaining_funds='0', close_transfers='{}',status=0where closed_at>18246321;
29
+
30
+
-- the borrower is not accounted for ; i.e. transfer of acocunt is not handled and should be used carefully
31
+
update credit_sessions cs set borrowed_amount=css.borrowed_amount_bi, balances=css.balancesfrom (select distincton(session_id) *from credit_session_snapshots order by session_id, block_num desc) css wherecss.session_id=cs.idandcs.status=0;
0 commit comments