34 Wallet(std::string owner,
double balance);
87 void update_balance_to_now();
90 static constexpr double DECAY_RATE = 0.000008;
96 time_t m_last_activity_timestamp;
bool withdraw(double amount)
Attempt to withdraw funds from the wallet.
Definition Wallet.cpp:35
Wallet(std::string owner, double balance)
Construct a wallet with an owner and initial balance.
Definition Wallet.cpp:5
void deposit(double amount)
Deposit funds into the wallet.
Definition Wallet.cpp:30
double getBalance() const
Get the current balance (read-only).
Definition Wallet.cpp:21