private function collectPeriodicTax() { $bank = $this->UserSQL->getUserFromId(COIN_BANK_ID); $this->Transact->CoinSQL->CollectPeriodicTax(); $to_collect = COIN_PERIODIC_TAX * $this->Transact->CoinSQL->getTotalCoinExisting(false); $bank->balance = $bank->getBalance(true) + $to_collect; $this->Transact->CoinSQL->AddTransactionLog(new Transaction(NULL, $bank, $to_collect, new TransactionType(TransactionType::AllTax))); $this->Transact->maintainFixedLevel($bank); $bank->save($this->db); Telegram::customShitpostingMessage(emoji(0x1f4e2) . " " . COIN_TAXATION_BODY . " just collected " . round($to_collect, 2) . " " . COIN_CURRENCY_NAME . " in tax."); return true; }