agent0.core.hyperdrive.interactive.econ_tests
Tests of economic intuition.
Attributes
Functions
|
Does in equal out? |
Module Contents
- agent0.core.hyperdrive.interactive.econ_tests.YEAR_IN_SECONDS = 31536000
- agent0.core.hyperdrive.interactive.econ_tests.test_symmetry(fast_chain_fixture: agent0.core.hyperdrive.interactive.LocalChain)
Does in equal out?
One may be under the impression swaps between x and y have the same result, irrespective of direction. We set the number of bonds in and out to 100k and see if the resulting shares_in and shares_out differ.