# Example from http://en.wikipedia.org/wiki/Fractional_reserve_banking # Reserve requirement defaults to 20% # There is a small problem in that adding a deposit to the bank's liabilities # doesn't automatically increase the reserves. Is this really a problem? # Do deposits backed by loans really equal reserves? c:\trane\bsagent>ruby bsbot.rb Hello I have loaded c:/trane/bsagent/bsagent-api.yaml. > Person: your assets are $100 deposit Person assets | liabilities ----------------------------------- $100.00 deposit | | Total: $100.00 | Total: $0.00 > Bank: your assets are $100 reserves; your liabilities are $100 deposit Bank assets | liabilities ----------------------------------- $100.00 reserves | $100.00 deposit | Total: $100.00 | Total: $100.00 > Bank: lend long Bank assets | liabilities ----------------------------------- $20.00 reserves | $100.00 deposit $80.00 loan | | Total: $100.00 | Total: $100.00 > Bank: add a $80 deposit to your liabilities Bank assets | liabilities ----------------------------------- $20.00 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit | Total: $100.00 | Total: $180.00 > Bank: lend long Bank assets | liabilities ----------------------------------- $36.00 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | | Total: $180.00 | Total: $180.00 > Bank: add a $64 deposit to your liabilities Bank assets | liabilities ----------------------------------- $36.00 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | | $64.00 deposit | Total: $180.00 | Total: $244.00 > Bank: lend long Bank assets | liabilities ----------------------------------- $48.80 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | $51.20 loan | $64.00 deposit | Total: $244.00 | Total: $244.00 > Bank: add a $51.20 deposit to your liabilities Bank assets | liabilities ----------------------------------- $48.80 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | $51.20 loan | $64.00 deposit | $51.20 deposit | Total: $244.00 | Total: $295.20 > Bank: lend long Bank assets | liabilities ----------------------------------- $59.04 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | $51.20 loan | $64.00 deposit $40.96 loan | $51.20 deposit | Total: $295.20 | Total: $295.20 > Bank: add a $40.96 deposit to your liabilities Bank assets | liabilities ----------------------------------- $59.04 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | $51.20 loan | $64.00 deposit $40.96 loan | $51.20 deposit | $40.96 deposit | Total: $295.20 | Total: $336.16 > Bank: lend long Bank assets | liabilities ----------------------------------- $67.23 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | $51.20 loan | $64.00 deposit $40.96 loan | $51.20 deposit $32.77 loan | $40.96 deposit | Total: $336.16 | Total: $336.16 > Bank: add a $32.77 deposit to your liabilities Bank assets | liabilities ----------------------------------- $67.23 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | $51.20 loan | $64.00 deposit $40.96 loan | $51.20 deposit $32.77 loan | $40.96 deposit | $32.77 deposit | Total: $336.16 | Total: $368.93 > Bank: lend long Bank assets | liabilities ----------------------------------- $73.79 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | $51.20 loan | $64.00 deposit $40.96 loan | $51.20 deposit $32.77 loan | $40.96 deposit $26.21 loan | $32.77 deposit | Total: $368.93 | Total: $368.93 > Bank: add a $26.21 deposit to your liabilities Bank assets | liabilities ----------------------------------- $73.79 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | $51.20 loan | $64.00 deposit $40.96 loan | $51.20 deposit $32.77 loan | $40.96 deposit $26.21 loan | $32.77 deposit | $26.21 deposit | Total: $368.93 | Total: $395.14 > Bank: lend long Bank assets | liabilities ----------------------------------- $79.03 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | $51.20 loan | $64.00 deposit $40.96 loan | $51.20 deposit $32.77 loan | $40.96 deposit $26.21 loan | $32.77 deposit $20.97 loan | $26.21 deposit | Total: $395.14 | Total: $395.14 > Bank: add a $20.97 deposit to your liabilities Bank assets | liabilities ----------------------------------- $79.03 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | $51.20 loan | $64.00 deposit $40.96 loan | $51.20 deposit $32.77 loan | $40.96 deposit $26.21 loan | $32.77 deposit $20.97 loan | $26.21 deposit | $20.97 deposit | Total: $395.14 | Total: $416.11 > Bank: lend long Bank assets | liabilities ----------------------------------- $83.22 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | $51.20 loan | $64.00 deposit $40.96 loan | $51.20 deposit $32.77 loan | $40.96 deposit $26.21 loan | $32.77 deposit $20.97 loan | $26.21 deposit $16.78 loan | $20.97 deposit | Total: $416.11 | Total: $416.11 > Bank: add a $16.78 deposit to your liabilities Bank assets | liabilities ----------------------------------- $83.22 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | $51.20 loan | $64.00 deposit $40.96 loan | $51.20 deposit $32.77 loan | $40.96 deposit $26.21 loan | $32.77 deposit $20.97 loan | $26.21 deposit $16.78 loan | $20.97 deposit | $16.78 deposit | Total: $416.11 | Total: $432.89 > Bank: lend long Bank assets | liabilities ----------------------------------- $86.58 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | $51.20 loan | $64.00 deposit $40.96 loan | $51.20 deposit $32.77 loan | $40.96 deposit $26.21 loan | $32.77 deposit $20.97 loan | $26.21 deposit $16.78 loan | $20.97 deposit $13.42 loan | $16.78 deposit | Total: $432.89 | Total: $432.89 > Bank: add a $13.42 deposit to your liabilities Bank assets | liabilities ----------------------------------- $86.58 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | $51.20 loan | $64.00 deposit $40.96 loan | $51.20 deposit $32.77 loan | $40.96 deposit $26.21 loan | $32.77 deposit $20.97 loan | $26.21 deposit $16.78 loan | $20.97 deposit $13.42 loan | $16.78 deposit | $13.42 deposit | Total: $432.89 | Total: $446.31 > Bank: lend long Bank assets | liabilities ----------------------------------- $89.26 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | $51.20 loan | $64.00 deposit $40.96 loan | $51.20 deposit $32.77 loan | $40.96 deposit $26.21 loan | $32.77 deposit $20.97 loan | $26.21 deposit $16.78 loan | $20.97 deposit $13.42 loan | $16.78 deposit $10.74 loan | $13.42 deposit | Total: $446.31 | Total: $446.31 > Bank: add a $10.74 deposit to your liabilities Bank assets | liabilities ----------------------------------- $89.26 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | $51.20 loan | $64.00 deposit $40.96 loan | $51.20 deposit $32.77 loan | $40.96 deposit $26.21 loan | $32.77 deposit $20.97 loan | $26.21 deposit $16.78 loan | $20.97 deposit $13.42 loan | $16.78 deposit $10.74 loan | $13.42 deposit | $10.74 deposit | Total: $446.31 | Total: $457.05 > Bank: lend long Bank assets | liabilities ----------------------------------------------- $91.41 reserves | $100.00 deposit $80.00 loan | | $80.00 deposit $64.00 loan | $51.20 loan | $64.00 deposit $40.96 loan | $51.20 deposit $32.77 loan | $40.96 deposit $26.21 loan | $32.77 deposit $20.97 loan | $26.21 deposit $16.78 loan | $20.97 deposit $13.42 loan | $16.78 deposit $10.74 loan | $13.42 deposit $8.59 loan | $10.74 deposit | Total: $457.05 | Total: $457.05 >