Skip to content

v3.0.9

Latest
Compare
Choose a tag to compare
@mikewcasale mikewcasale released this 19 Sep 11:56
· 26 commits to main since this release
e0787e2

v3.0.9 Sept 19, 2022

Fixes & Changes

  • f2838f8 Update setup.py
  • 4ebe2d3 Update init.py
  • 6865456 Update init.py
    | * d2d880b Merge pull request #164 from bancorprotocol/quickfix
    | |\
    | |/
    |/|
  • | ebafe6b Merge branch 'quickfix' of https://github.com/bancorprotocol/research into quickfix
    |\ \
    | * | c8a4e5c Merge branch 'main' into quickfix
    | ||
    | | * cbe434d Merge pull request #163 from bancorprotocol/quickfix
    | | |\
    | | | * be02f14 Merge branch 'main' into quickfix
    | | | |\
    | | | |/
    | | |/|
    | | * | 23a776e Merge pull request #162 from bancorprotocol/quickfix
    | | |\ \
    | | | * \ 05a54cd Merge branch 'main' into quickfix
    | | | |\ \
    | | | |/ /
    | | |/| |
    | | * | | df642d6 Merge pull request #161 from bancorprotocol/quickfix
    | | |\ \ \
    | | | * | | 83dd661 fixup: Format Python code with Black
    | | * | | | 521fbf1 Merge pull request #160 from bancorprotocol/quickfix
    | | |\ \ \ \
    | | | * | | | f773c8d fixup: Format Python code with Black
    | | | | | * | 3b46365 fixup: Format Python code with Black
    | | | | | | * 9ddf442 fixup: Format Python code with Black
    | * | | | | | 1911840 fixup: Format Python code with Black
  • | | | | | | fbfc436 Create User Actions and State Transition Functions - (pt 2 of 4).ipynb
    |/ / / / / /
  • | | | | / 32c21f2 Update network.py
    | |||_|/
    |/| | | |
  • | | | | 81465d5 Merge branch 'quickfix' of https://github.com/bancorprotocol/research into quickfix
    |\ \ \ \ \
    | * | | | | b98dec1 fixup: Format Python code with Black
  • | | | | | 93f6d11 Update network.py
  • | | | | | 908e15a Update utils.py
    |/ / / / /
  • | | | / 9f9219c Create User Actions and State Transition Functions - (pt 1 of 4).ipynb
    | |||/
    |/| | |
  • | | | 1ee7593 Update Bancor dApp and Simulator Interface.ipynb
  • | | | bf1abff Update utils.py
  • | | | 9e787cf Update network.py
    | |_|/
    |/| |
  • | | 9d6e55d Create Bancor dApp and Simulator Interface.ipynb
    | |/
    |/|
  • | 79e4c8d Added catch for KeyError exception
  • | 5c13b00 Update state.py
  • | e00881d Added catch for typeError exception in
    |/
  • a65a8d4 Merge pull request #159 from omahs/patch-1
    |\
    | * 638caa5 Fix: typos
    |/
  • 1416cdd Merge pull request #158 from bancorprotocol/emulator-network-semantic-fixes
    |\
    | * 639b02d A few semantic fixes in the emulator's network module
    |/
  • dd6df07 Merge pull request #157 from bancorprotocol/extend-regression-test-massive-scenarios
    |\
    | * 91add9b Extend the regression test massive scenarios
    |/
  • 4bde85a Extend the regression test massive scenarios
  • 8a6eb88 Merge pull request #156 from bancorprotocol/simulator-fix-bnt-staked-balance-update
    |\
    | * 3ae507d Update notebooks
    | * c430ee3 Extend documentation
    | * 74f79ce fixup: Format Python code with Black
    | * fac5615 1. Add the BNT staked balance to the output data-frame of simulator's function BancorDapp.describe 2. Add the BNT staked balance to the output data-frame of simulator's function BancorDapp.describe 3. Fix the simulator's update of the BNT staked balance upon BNT withdrawal
    |/
  • c03deca Merge pull request #155 from bancorprotocol/simulator-fix-bnt-renounce-handling
    |\
    | * 0f35876 Cap the amount of BNT to renounce, by the current funding amount
    | | * 443776a On monte-carlo-generator: !!GitHub_Desktop
    | | |\
    | | | * 2eb7325 index on monte-carlo-generator: 9fc596d fixup: Format Python code with Black
    | | |/
    | | * 9fc596d fixup: Format Python code with Black
    | | * 82bf57d Update init.py
    | | * 5655b0d Update simulation-example.ipynb
    | | * 91f140a Update monte_carlo_generator.py
    | | * bad2a09 Enforce non-negative balances.
    | | * fa9b4eb Update monte_carlo_generator.py
    | | * 6d81d7c Update simulation-example.ipynb
    | | * 45ba1c7 Update init.py
    | | * dec3f76 Update simulation-example.ipynb
    | | * 7de054f Update monte_carlo_generator.py
    | | * 4b1cbae Update init.py
    | | * c53b521 changed exception to print
    | | * 3fdf0f5 fixed a negative fee issue
    | | * 17c4804 update release version
    | | * b0f299f Update init.py
    | | * e1032a5 Update simulation-example.ipynb
    | | * 3a5d782 Update simulation-example.ipynb
    | | * 3827329 Create monte-carlo generator class
    | |/
    |/|
  • | b7531ec Merge pull request #153 from bancorprotocol/rolling-trade-fees
    |\ \
    | |/
    |/|
    | * 57b6a30 Add trade fees earned tracking
    |/
  • 4ff1119 Merge pull request #152 from bancorprotocol/notebook-remove-empty-lines
    |\
    | * 6a67511 Remove empty lines in the notebooks
  • | 36739b9 Merge pull request #151 from bancorprotocol/notebooks-cleanup
    |\ \
    | |/
    |/|
    | * dc4ed36 Remove redundant code in the notebooks
    |/
  • eb0b7a8 Merge pull request #150 from bancorprotocol/fix-emulator-simulator-notebooks
    |\
    | * 79db31d 1. Fix emulator function BancorDapp.begin_cooldown_by_rtkn 2. Fix simulator function rewards.process_ac_rewards_program 3. Fix simulator function utils.enable_trading 4. Extend the 'autocompounding-example' notebook to verify simulator vs emulator 5. Extend the 'state-timetravel' notebook to verify simulator vs emulator
    |/
  • 672a250 Merge pull request #149 from bancorprotocol/extend-more-notebooks-to-verify-simulator-vs-emulator
    |\
    | * 30dce17 Extend the moving-average notebook to verify the simulator's result vs th… …e emulator's result
    | * 94a4db2 Cosmetic
    | * 9a71c52 Extendthe time-travel notebook to verify the simulator's result vs the emulator's result
    | * d723e1e Extend some more notebooks to verify the simulator's result vs the emulator's result
    |/
  • 6733a58 Merge pull request #148 from bancorprotocol/mikewcasale-patch-1
    |\
    | * 9f459c8 Update main.yml
    |/
  • 8440f0c Merge pull request #147 from bancorprotocol/mikewcasale-patch-1
    |\
    | * 99f9c17 Update main.yml
    |/
  • eb6c6f9 Merge pull request #146 from bancorprotocol/mikewcasale-patch-1
    |\
    | * 21f05fd Update main.yml
    |/
  • 922e7ce Merge pull request #145 from bancorprotocol/mikewcasale-patch-1
    |\
    | * 373192d Update main.yml
    |/
  • db4683d Merge pull request #144 from bancorprotocol/CI-regression-tests
    |\
    | * 2d9488a Update main.yml
    |/
  • 8cb2ad9 Merge pull request #143 from bancorprotocol/regression-tests-CI
    |\
    | * 39746cb regression.yml
    |/
  • 4f61cba Merge pull request #142 from bancorprotocol/extend-notebooks-to-verify-simulator-vs-emulator
    |\
    | * 33d7ce3 Extend some of the notebooks to verify the simulator's result vs the emulator's result
    |/
  • d6d6181 Merge pull request #141 from bancorprotocol/extend-financial-verification-scenarios
    |\
    | * 2bf2b6d Extend some of the financial-verification scenarios
    |/
  • 307fc31 Merge pull request #140 from bancorprotocol/fix-float128-to-float64
    |\
    | * b46a1d5 Fix 'float128' to 'float64'
    |/
  • 22c45fd Merge pull request #139 from bancorprotocol/fix-setup-script
    |\
    | * cbf2da5 In setup.py, open the README file with UTF8 encoding
    |/
  • 7a70776 Merge pull request #138 from bancorprotocol/simulator-simplify-state-and-utils-functions
    |\
    | * 2209900 fixup: Format Python code with Black
    | * f4289c5 Simplify some state functions
    |/
  • 7cc826f Merge pull request #137 from bancorprotocol/fix-incorrect-type
    |\
    | * 8df284f Replace type List[int] with list
    | * 09f5cf2 Change incorrect type list[int] to list
    |/
  • 1a3c387 Merge pull request #136 from bancorprotocol/fix-simulator-tkn-withdrawal-functionality
    |\
    | * 202fb6e Cosmetic
    | * 76a1688 Fix funcgtion actions.process_withdrawal
    | * 6115c99 fixup: Format Python code with Black
    | * ce9b27f Update actions.py
    | * 8dde557 Coding improvement
    | * 7c31bd5 fixup: Format Python code with Black
    | * 4e2b59d Fix internal function actions.external_protection and call it only for the default-deficit cases
    | * ba5ae34 fixup: Format Python code with Black
    | * bc4f7eb Disable hmax_deficit, in compliance with recent change in contract implementation
    | * d0bf67c fixup: Format Python code with Black
    | * 6f71831 1. Fix the simulator's TKN withdrawal functionality to take the external protection vault balance into account 2. Extend some of the financial-verification scenarios
    |/
  • 24c02db Merge pull request #135 from bancorprotocol/simulator-fix-function-is-price-stable
    |\
    | * e03bdca Cosmetic
    | * 9f58f25 Fix function state.is_price_stable according to contract implementation
    |/
  • 6aa6d5c Merge pull request #134 from bancorprotocol/fix-simulator-pool-shutdown-decision-on-tkn-deposit
    |\
    | * 9ced85e Upon TKN deposit, reset the pools if the conditions apply AND BNT trading liquidity has changed
    |/
  • b0bec8e Merge pull request #133 from bancorprotocol/simulator-fix-state-module-naming-issues
    |\
    | * ef0bd1f fixup: Format Python code with Black
    | * 7b5f29b Fix some more naming issues
    | * 4c9f758 Fix some more naming issues
    | * fa26c4c fixup: Format Python code with Black
    | * 8bf05a8 Fix some naming issues in the simulator's state module
    |/
  • 18477b0 Merge pull request #132 from bancorprotocol/simulator-do-not-reset-pool-upon-tkn-deposit
    |\
    | * 793a523 In the simulator, do not reset the pool upon TKN deposit
    |/
  • 83aa427 Merge pull request #131 from bancorprotocol/simulator-fix-some-naming-issues
    |\
    | * 95444dd fixup: Format Python code with Black
    | * 066d3ac Rename get_external_protection_vault to get_external_protection_vault_balance
    |/
  • aee913a Merge pull request #130 from bancorprotocol/simulator-fix-ac-processing-of-tkn-programs
    |\
    | * 8f33bd5 fixup: Format Python code with Black
    | * c7f8f30 1. When processing an auto-compounding rewards program for TKN, use the external rewards vault's bnTKN balance instead of the protocol's bnBNT balance 2. Extend some of the financial-verification scenarios
    |/
  • c855e71 Trading-liquidity update when trading is re-enabled: - In the simulator, we calculate a value and set the BNT current funding to that value - In the contracts, we calculate a value and increase the BNT current funding by that value
  • 6288995 Merge pull request #129 from bancorprotocol/simulator-fix-deposit-bnt-function
    |\
    | * a62ff2b Upon BNT deposit, if the protocol doesn't have enough pool tokens, then mint new ones
    |/
  • f14fcc0 Merge pull request #128 from bancorprotocol/add-full-support-for-auto-compounding-rewards
    |\
    | * c1b5ea9 Add auto-compounding rewards in some of the financial-verification scenarios
    | * a7773b3 Improve documentation
    | * 00eba50 Add auto-compounding rewards in some of the financial-verification scenarios
    | * d4a6fdb Fix the regression test
    | * 2ca434b Add support for terminating an auto-compounding rewards program
    | * d18ad00 Improve coding
    | * 331e71d fixup: Format Python code with Black
    | * 7f4f9fd Additional fixes
    | * 0a8b379 Fix calculations
    | * 87b0527 Fix simulator's auto-compounding rewards functions
    | * c6004ca Cosmetic
    | * af29abe fixup: Format Python code with Black
    | * 9d2a894 Add full support for auto-compounding rewards
    |/
  • 4296384 Merge pull request #127 from bancorprotocol/simulator-fix-auto-compounding-rewards-phase-2
    |\
    | * f10ff62 Minor
    | * 0ea31db fixup: Format Python code with Black
    | * b7ff824 1. Split function create_autocompounding_program into functions create_ac_rewards_flat_program and create_ac_rewards_exp_program 2. Change the resolution of the 'total-duration' input parameter from days to seconds 3. Change the resolution of the 'half-life' input parameter from days to seconds 4. Remove owner-id attribute
    |/
  • 78454b4 Merge pull request #126 from bancorprotocol/simulator-fix-auto-compounding-rewards
    |\
    | * 59220ae Fix the simulator's auto-compounding rewards API
    |/
  • 7596636 Merge pull request #125 from bancorprotocol/extend-financial-verification-scenarios
    |\
    | * 4c20fa2 Add massive withdrawals at the end of some of the financial-verification scenarios
  • | a249e0e Merge pull request #124 from bancorprotocol/financial-verification-massive-scenario
    ||
    | * fa2f894 Update the expected output in the new massive scenario
    | * e877bc9 Add another massive scenario
    | * 8b0c1d5 Add some withdrawal operations in the massive scenario
    | * 62bff27 Add a financial verification scenario with multiple pools
    |/
  • 322d249 Merge pull request #123 from bancorprotocol/improve-simulator-standard-rewards-module
    |\
    | * e00417b fixup: Format Python code with Black
    | * 6d4e147 Improve simulator function rewards.snapshot_standard_rewards
    |/
  • 96a7fd2 Merge pull request #122 from bancorprotocol/extend-regression-test-even-further
    |\
    | * 07988e5 Improve the regression test
    | * a3df7a1 Improve the regression test
    | * 95444c6 Remove redundant code
    | * 4766ec8 Improve the regression test
    | * 4a25647 Improve the regression test
    | * d482831 Improve the regression test
    | * 11ccaff Improve regression test
    | * 8cdb3fc Extend the regression test even further
    |/
  • 2d1731e Merge pull request #121 from bancorprotocol/unified-regression-test
    |\
    | * 4d5d99d Improve the regression test coding
    | * 12708f7 Merge the regresssion tests into a single script
    |/
  • d32f6e6 Merge pull request #119 from bancorprotocol/improve-simulator-standard-rewards-coding
    |\
    | * 7dc9fc3 Minor
    | * c99e79b fixup: Format Python code with Black
    | * 8c0e065 Improve coding in the simulator's Standard-Rewards module
    |/
  • 9655664 Merge pull request #118 from bancorprotocol/extend-regression-tests
    |\
    | * 2ca7bd7 Enhance correctness verification
    | * 7c42a72 Split the regression test into correctness verification and inaccuracy measurement
    |/
  • 35f6103 Merge pull request #117 from bancorprotocol/Change-simulator-trading-liquidity-calculation-according-to-contract-implementation
    |\
    | * b4ff22e Improve documentation
    | * f0a79cf Change the simulator's trading-liquidity calculation according to contract implementation
    |/
  • 7e74b00 Merge pull request #115 from bancorprotocol/cleanup-plus-documentation
    |\
    | * ac5872a Document changes made in simulator code due to contract implementation
    |/
  • cc363d3 Merge pull request #114 from bancorprotocol/clean-coding-redundancy-part-2
    |\
    | * 4e48867 Some more cleanup
    | * bc45266 Clean some of the coding redundancy in state.py
    |/
  • 333754f Merge pull request #113 from bancorprotocol/initializate-decimal-class-in-common-location
    |\
    | * 9dc87ae Change the decimal rounding mode from ROUND_HALF_DOWN to ROUND_HALF_EVEN
    | * d34c0a5 Change decimal rounding mode from ROUND_DOWN to ROUND_HALF_DOWN
    | * afcad4d Improve import in one of the notebooks
    | * 6c932a5 Fix batch_run.py
    | * 66cd6db Improve importing
    | * eaf37d3 Configure the Decimal class rounding mode to ROUND_DOWN
    | * 1d1fa6a Place the global initialization of class Decimal in a single location, and import this class in all places in the code only from that location
    |/
  • fc46bc3 Merge pull request #111 from bancorprotocol/clean-coding-redundancy-part-1
    |\
    | * 0d8e8a0 Clean some of the coding redundancy in state.py
  • | 297cc1f Merge pull request #112 from bancorprotocol/minor-update-in-emulated-contracts
    |\ \
    | |/
    |/|
    | * 48c161b Updated the emulation of the MathEx library
    |/
  • 33e6d2f Merge pull request #110 from bancorprotocol/general-coding-cleanup-and-improvement
    |\
    | * 2e49e43 1. Improve test printouts 2. Remove simulator redundant code
  • | e6ae804 Merge pull request #109 from bancorprotocol/improve-regression-test
    |\ \
    | |/
    |/|
    | * 7f20586 Cosmetic
    | * 7bbcc30 Improve the regression test
    |/
  • f996c8e Remove 'NaN' from function describe returned data-frame
  • 60d750d Merge pull request #108 from bancorprotocol/fix-simulator-function-claim-standard-rewards
    |\
    | * 4a0488c Fix simulator's function claim_standard_rewards
    |/
  • 5e25f5e Merge pull request #107 from bancorprotocol/fix-simulator-function-get-updated-ema
    |\
    | * d1b3aa8 Fix the simulator's updated EMA getters functions
    |/
  • 6b92970 Merge pull request #106 from bancorprotocol/fix-simulator-master-vault-increase-upon-tkn-withdrawal
    |\
    | * 8458a37 Fix the simulator's master-vault increase upon TKN withdrawal
    |/
  • 064545f Merge pull request #105 from bancorprotocol/fix-simulator-tkn-wihdrawal-function
    |\
    | * 26a7cb1 Fix the simulator's TKN withdrawal method to use the current TKN trading liquidity instead of the average TKN trading liquidity
    |/
  • 34c8b1e Merge pull request #104 from bancorprotocol/simulator-fix-function-compute-pool-depth-adjustment-2
    |\
    | * 7e9e5ad fixup: Format Python code with Black
    | * 68fd588 Fix the simulator's internal function compute_pool_depth_adjustment
    |/
  • 3a08e20 Merge pull request #103 from bancorprotocol/simulator-fix-function-compute-pool-depth-adjustment
    |\
    | * 5a3e7d2 Improve comment
    | * e182490 fixup: Format Python code with Black
    | * eaf3438 Fix the simulator's internal function compute_pool_depth_adjustment
    |/
  • 22a261e Merge pull request #102 from bancorprotocol/simulator-add_ema_getter_functions
    |\
    | * 9969ec6 Add EMA getter functions in the simulator
    |/
  • 6f5f807 Merge pull request #101 from bancorprotocol/simulator-update-ema-after-deposits-and-withdrawals
    |\
    | * 91245b9 Update the simulator's EMA after deposits and withdrawals
    |/
  • 3dafb8a Merge pull request #100 from bancorprotocol/alt-fix-the-simulator-rate-management
    |\
    | * c50e901 Cosmetic
    | * ba14853 Cosmetic
    | * 4c176b5 Update utils.py
    | * 6a9712f Update state.py
    | * ab486ad Update state.py
    | * 9442031 Update utils.py
    | * ad05cc7 Update utils.py
    | * 228537b Update state.py
    | * 593bbc1 Fix the simulator's rate management
    |/
    | * 29e19a3 update print
    | * 39c45f3 fixup: Format Python code with Black
    | * f4c0f23 update decimal value
    | * 2191169 converted to ipynb format locally
    | * 7b0a2b1 removed .py file
    | * 456b246 reformatted to Jupiter notebook
    | * 3458b7d added limit_max_on_curve_liquidity demo
    |/
  • 2b7c446 Merge pull request #98 from bancorprotocol/fix-notebooks-whitelist-initialization
    |\
    | * 60e6fbc Fix notebooks
    | * 94efacd Minor coding improvement
    | * c131b90 Fix the whitelist initialization on some of the notebooks
    |/
  • 6323e69 Merge pull request #96 from bancorprotocol/fix-simulator-standard-rewards-management
    |\
    | * a07efc9 fixup: Format Python code with Black
    | * bd2ab07 Fix simulator's Standard Rewards management
    |/
  • 29638a1 Merge pull request #95 from bancorprotocol/add-function-map_user_standard_program
    |\
    | * d8d74b3 Add function map_user_standard_program
    |/
  • 72a3794 Merge pull request #94 from bancorprotocol/fix-various-errors-staking-rewards
    |\
    | * 9fb359e Fix various errors in the simulator's staking-rewards functionality
    |/
  • f381ee7 Merge pull request #93 from bancorprotocol/fix-inv-spot-rate-update
    |\
    | * dca11c6 Improve function State.update_spot_rate
    | * 3c1cb81 Fix function State.update_inv_spot_rate
    |/
  • 2e7b9c7 Merge pull request #92 from bancorprotocol/fix-standard-rewards
    |\
    | * 0f440e1 fixup: Format Python code with Black
    | * 61f0c37 Implement function State.get_standard_reward_per_token
  • | 7a4c6c7 Merge pull request #91 from bancorprotocol/fix-standard-rewards
    ||
    | * 246d96b Improve documentation.
    | * a77900f 1. Remove the rewards-token (it is always BNT). 2. Remove the external rewards vault (it is no longer used).
    | * 3e55188 Cosmetic
    | * ecafc7f Reinstate sample dscenarios mistakenly removed from the regression test
    | * c464217 fixup: Format Python code with Black
    | * 3de1b77 Fix standard rewards
    |/
  • 39bfbea Merge pull request #90 from bancorprotocol/skip-state-logging-flag
    |\
    | * 3bbed66 1. Add the log_state input parameter also in the emulator's BancorDapp class (even if not used there at the moment), so that if we have a place where we state this flag explicitly upon the creation of a BancorDapp instance, then we can easily duplicate the instantiation for both the simulator's class and the emulator's class. 2. Set the default value of the log_state input parameter to True in both classes, in order to avoid changing the behavior in any notebook which currently uses these classes. 3. Pass the value of the log_state input parameter as False in the regression test script.
    | * e80997f fixup: Format Python code with Black
    | * ff80c9c Added flag to skip state logging
    |/
  • a42b6ac Merge pull request #89 from bancorprotocol/fix-simulator-function-deposit-tkn-yet-again
    |\
    | * c86b68e Fix simulator function actions.deposit_tkn
    |/
  • 104cd47 Merge pull request #88 from bancorprotocol/fix-simulator-function-deposit-bnt
    |\
    | * f3460df Fix simulator function actions.deposit_bnt
    |/
  • 327aa28 Merge pull request #87 from bancorprotocol/fix-simulator-actions
    |\
    | * fbc2d99 Fix function actions.deposit_tkn
    | * eb6b7b9 Improve performance, accuracy and coding in function State.bnbnt_rate
    | * d4c287a 1. Fix function actions.deposit_tkn 1. Fix function actions.process_withdrawal
    |/
  • fd995dc Merge pull request #86 from bancorprotocol/various-improvements-and-fixes
    |\
    | * 0ff1751 1. Improve printouts in system and regression tests 2. Improve order of parameters in function BancorDapp.enable_trading 3. Fix function agents.perform_random_enable_trading
    |/
  • 0f71342 Merge pull request #85 from bancorprotocol/fix-regression-test-printout
    |\
    | * 273ae72 Fix regression test printout
    |/
  • 7a0183c Merge pull request #84 from bancorprotocol/extend-bancor-dapp-function-enable-trading
    |\
    | * 2405eb1 fixup: Format Python code with Black
    | * e5e3631 Extend function BancorDapp.enable_trading to take the rate as input
  • | 1d722fd Merge pull request #83 from bancorprotocol/fix-simulator-protocol-wallet-balance-update
    ||
    | * 27acbbd Fix function process_withdrawal
    | * 7d653f6 Fix the updating of the protocol wallet balances on the simulator
    |/
  • abf51ae Merge pull request #82 from bancorprotocol/fix-begin-cooldown-action-names
    |\
    | * e1c8b53 Fix the action name in begin_cooldown_by_rtkn and begin_cooldown_by_ptkn
    |/
  • 6c96bf1 Merge pull request #81 from bancorprotocol/emulator-function-begin-cooldown-by-rtkn
    |\
    | * 8466ddc Implement function begin_cooldown_by_rtkn on the emulator side
  • | 320dc5e Merge pull request #80 from bancorprotocol/fix-simulator-function-names
    |\ \
    | |/
    |/|
    | * ffa60ef fixup: Format Python code with Black
    | * a45cec6 1. Fix some function and variable names 2. Minor coding improvement in function compute_bntkn_rate
    |/
  • a961366 Merge pull request #79 from bancorprotocol/support-withdrawal-input-amount-of-both-pool-tokens-and-reserve-tokens
    |\
    | * ac26d7e fixup: Format Python code with Black
    | * c0495e8 Rename some local variables temporarily in order to reduce PR changes
    | * d4d59f8 Split the 'begin_cooldown' function into two functions (by reserve token amount and by pool token amount)
    | * 8c2c306 Move the initialization of bnt, bnbnt and vbnt into function init_protocol
    | * fda7d6e fixup: Format Python code with Black
    | * 90b671f Support withdrawal input amounts specified both in reserve token units and in pool token units
  • | f679230 Merge pull request #47 from bancorprotocol/fix-bnt-bootstrap-liquidity
    |\ \
    | |/
    |/|
    | * 0ae0569 Fix function state.bnt_bootstrap_liquidity
  • | 62c1cc1 Merge pull request #78 from bancorprotocol/improve-regression-structure
    |\ \
    | * | 2869391 Improve the structure and printouts of the regression tests
  • | | ae9393e Merge pull request #77 from bancorprotocol/regression-test-cleanup
    || |
    | * | fa2c206 Improve regression test printouts
    |/ /
  • | 778fd4c Merge pull request #76 from bancorprotocol/quickfix
    |\ \
    | * | 68884b9 Fix the external_protection_vault initialization
    | * | bc4d220 Update init.py
    | * | 1df30fd Update actions.py
    |/ /
  • | 5c54c47 Merge pull request #75 from bancorprotocol/fix-simulator-pool-token-amount-calculation
    |\ \
    | * | 92ba62d Fix pool token amount calculation in the simulator's BancorDapp
    |/ /
  • | 438b6db Merge pull request #74 from bancorprotocol/fix-simulator-protocol-initialization
    |\ \
    | * | 18953b8 Remove incorrect configuration of the external protection vault
    |/ /
  • | bb6b6e7 Merge pull request #73 from bancorprotocol/extend-whitelisted-pool-initialization-in-simulator
    |\ \
    | * | 1546ced Extend simulator's whitelisted-pool configuration
    |/ /
  • | 2dbb82f Merge pull request #72 from bancorprotocol/fix-simulator-withdrawal-related-issues
    |\ \
    | * | 35c2bf7 Remove redundant input parameter from call to set_pending_withdrawals_status
    | * | 419d141 1. Fix function process_withdrawal 2. Fix incorrect variable name in actions.py
    |/ /
  • | 76e3970 Merge pull request #71 from bancorprotocol/fix-simulator-create-standard-rewards-program
    |\ \
    | * | 3ff1db6 Fix simulator's function create_standard_rewards_program
    |/ /
  • | 5b5e9bb Merge pull request #70 from bancorprotocol/regresssion
    |\ \
    | * | f2f98bf In the regression test, add support for setting the BNT funding limit
    | * | 4e21c87 Minor
    | * | e6867ca Cosmetic
    | * | 0488201 Update regression data.
    | * | 9199520 1. Add reserve token decimals in the configuration of each whitelisted pool 2. Add EP vault balance in the configuration of each whitelisted pool 3. Fix the assertAlmostEqual utility function to handle NaN values correctly 4. Fix the emulator's CreateSystemTestData script 5. Fix the emulator's TestSystem script
    | * | 0a0644c Implement the regression test
    | * | eaddd5f Update the BancorNetwork regression files
  • | | 7e94af9 Merge pull request #69 from bancorprotocol/fix-simulator-standard-rewards
    |\ \ \
    | |/ /
    |/| |
    | * | de5b4cb Fix the simulator's Standard-Rewards API
    |/ /
  • | c332786 Merge pull request #68 from bancorprotocol/fix-bancor-dapp-standard-rewards
    |\ \
    | * | 45de569 fixup: Format Python code with Black
    | * | b932afd Fix BancorDapp Standard-Rewards API
    |/ /
  • | b554abb Merge pull request #67 from bancorprotocol/fix-emulator-bancor-dapp-begin-cooldown
    |\ \
    | * | 66f539b Remove redundant printouts
    | * | a0e4408 In the emulator's begin_cooldown, approve also vbnt
    |/ /
  • | 6eb16ff Merge pull request #66 from bancorprotocol/fix-process-rewards-call-to-get-user-balance
    |\ \
    | * | 163949b Fix function action.process_rewards
    |/ /
    | | * 5817bab fixup: Format Python code with Black
    | | * 3868b68 Update actions.py
    | | * d3595ff Update actions.py
    | | * 538b735 Update actions.py
    | | * e9a7f49 Update actions.py
    | | * 6c9bee3 Update actions.py
    | | * bbbe066 updated simulation demo
    | | * a413b71 fixup: Format Python code with Black
    | | * c5b0fec simulation updated
    | | * d736ed4 Merge branch 'limit-max-on-curve-liquidity' of https://github.com/bancorprotocol/research into limit-max-on-curve-liquidity
    | | |\
    | | | * 449e207 fixup: Format Python code with Black
    | | * | 8d5a2ef monte-carlo updates
    | | |/
    | | * 6d17e4c refactor monte-carlo
    | | * ac98abf Update network.py
    | | * 80aaa3c Update constants.py
    | | * 3e22680 Update network.py
    | | * 7f1fd3e Update server.py
    | | * d4ea9de Update constants.py
    | | * c38e1fe Update constants.py
    | | * 9c43805 Merge branch 'quickstudies' of https://github.com/bancorprotocol/research into quickstudies
    | | |\
    | | | * 295fe81 Merge branch 'main' into quickstudies
    | | | |\
    | |||/
    |/| | |
  • | | | 3bf3181 Merge pull request #64 from bancorprotocol/fix-actions-process-withdrawal
    |\ \ \ \
    | * | | | a681478 Remove redundant input parameter 'tkn_name' passed to function actions.process_withdrawal
    |/ / / /
  • | | | 9c7c13a Merge pull request #63 from bancorprotocol/emulator-improvements
    |\ \ \ \
    | * | | | 50fa35b Remove redundant code
    |/ / / /
  • | | | e2fbf77 Merge pull request #62 from bancorprotocol/fix-protocol-handling
    |\ \ \ \
    | * | | | ed45831 fixup: Format Python code with Black
    | * | | | 9db4825 Fix handling of protocol actions
    |/ / / /
  • | | | 9e0f060 Merge pull request #61 from bancorprotocol/fix-handling-of-protocol-actions
    |\ \ \ \
    | * | | | 2616040 fixup: Format Python code with Black
    | * | | | b0e4a63 Fix the handling of protocol (DAO) actions.
    |/ / / /
  • | | | 7de16e6 Merge pull request #60 from bancorprotocol/fix-simulator-bancor-dapp-functions
    |\ \ \ \
    | * | | | 52a7b31 Remove redundant code in function validate_input
    | * | | | 3160106 1. Fix validate_input return-value type 2. Use validate_input instead of lower wherever possible
    |/ / / /
  • | | | c60cd91 Merge pull request #59 from bancorprotocol/fix-validate-input
    |\ \ \ \
    | * | | | 5be058a fixup: Format Python code with Black
    | * | | | 64d39af Fix function utils.validate_input
    |/ / / /
  • | | | 450f730 Merge pull request #58 from bancorprotocol/cleanup-notebooks
    |\ \ \ \
    | * | | | b74dff6 Clean up notebooks
    |/ / / /
  • | | | b66dd5f Merge pull request #57 from bancorprotocol/cleanups
    |\ \ \ \
    | * | | | 8f45634 Fix function withdraw in the simulator's BancorDapp
    | * | | | 1b2ed89 Fix the AC notebook
    | * | | | eea682b Fix incorrect function name in the emulator's BancorDapp
    |/ / / /
  • | | | da5088a Merge pull request #56 from bancorprotocol/fix-ac-notebook
    |\ \ \ \
    | * | | | 7eb3286 Fix the AC notebook
    | * | | | 5fef393 Fix the bootstrapping-behavior notebook
    | * | | | 81b6fb8 Fix whitelists in all notebooks
    | * | | | 3dc36e5 fixup: Format Python code with Black
    | * | | | 066f058 1. Move all default values from simulator/state.py and emulator/network.py into a single place in the code, in order to avoid duplication 2. Change every fee input from a decimal value between 0 and 1 to a string value ending with '%' 3. Change every amount input from a decimal value to a numeric string value
  • | | | | ed26945 Merge pull request #55 from bancorprotocol/fix-ac-notebook
    || | | |
    | * | | | 7968323 Fix the AC notebook
    |/ / / /
  • | | | 834931e Merge pull request #52 from bancorprotocol/fix-function-create-autocompounding-program
    |\ \ \ \
    | * | | | 4a7d637 Fix simulator's BancorDapp functions
    |/ / / /
    | | * / 1e2da1a Update agents.py
    | | |/
    | | * c2c90c7 fixup: Format Python code with Black
    | | * 295d720 fixed scenario_generator
    | | * eb9e88c updated scenario_generator imports
    | | * 728c9d9 Merge pull request #54 from bancorprotocol/ahp
    | | |\
    | | | * e9ddc15 update dataframe & image
    | | | * 0c5445b Added AHP example to assist DAO decision methodology / system.
    | | * | 262d6cd Merge pull request #53 from bancorprotocol/limit-max-on-curve-liquidity
    | | |\ \
    | |_|/ /
    |/| | |
  • | | | 8ff5cb7 Merge pull request #51 from bancorprotocol/support-relative-amounts-in-bancor-dapp
    |\ \ \ \
    | * | | | a39f733 Fix typo in some notebooks
    | * | | | f27eb30 Fix simulator's function BancorDapp.trade
    | * | | | 05f9f9e fixup: Format Python code with Black
    | * | | | d41d5ca Support relative amounts in BancorDapp: 1. Remove redundant input argument in simulator's function actions.process_withdrawal 2. Remove redundant input argument in simulator's function BancorDapp.withdraw 3. Remove redundant input argument in simulator's function BancorDapp.claim_standard_rewards 4. In the simulator's BancorDapp, extend the following function to support both absolute and relative input amounts: - deposit - trade - begin_cooldown - burn_pool_tokens - join_standard_rewards_program - leave_standard_rewards_program
    |/ / / /
  • | | | 7f10f31 Merge pull request #50 from bancorprotocol/extend-emulator-bancor-dapp
    |\ \ \ \
    | * | | | 18a203c In the emulator's BancorDapp class: 1. Support relative amounts (percentage) in the following functions: - deposit - trade - begin_cooldown - burn_pool_tokens - join_standard_rewards_program - leave_standard_rewards_program - leave_standard_rewards_program 2. Fix function create_standard_rewards_program
    |/ / / /
  • | | | c659085 Merge pull request #49 from bancorprotocol/fix-emulator-set-user-balance
    |\ \ \ \
    | * | | | 3650286 Fix emulator's BancorDapp.set_user_balance
    |/ / / /
  • | | | 4a2941b Merge pull request #48 from bancorprotocol/move-json-files-into-top-level-folder
    |\ \ \ \
    | * | | | 3d863cd Move all the JSON files into a top-level folder
    |/ / / /
  • | | | 99db272 Merge pull request #46 from bancorprotocol/bancor-dapp-enable-trading-function
    || | |
    | * | | 275bb34 Fix the funding limit in example notebooks from 10K to 1M
    | * | | d15d6c0 Replace dao_msig_init_pools with enable_trading
    |/ / /
  • | | 533aa73 Merge pull request #45 from bancorprotocol/fix-emulator-initialization
    |\ \ \
    | * | | 09520be 1. Extend emulator's initialization to facilitate trading-fee and funding-limit per pool 2. Update emulator's describe function accordingly 3. Fix simulator's describe function
    |/ / /
  • | | d52f687 Merge pull request #44 from bancorprotocol/bugfix
    |\ \ \
    | * | | 7e9047b fixup: Format Python code with Black
    | * | | 185e199 Merge branch 'bugfix' of https://github.com/bancorprotocol/research into bugfix
    | |\ \ \
    | | * | | 9e889fa fixup: Format Python code with Black
    | * | | | 3453c7b added all_tokens variable
    | |/ / /
    | * / / ece09c2 Update network.py
    |/ / /
  • | | 8620093 Merge pull request #43 from bancorprotocol/simulator-quickfixes
    |\ \ \
    | * \ \ 50d6945 Merge branch 'simulator-quickfixes' of https://github.com/bancorprotocol/research into simulator-quickfixes
    | |\ \ \
    | * | | | 989ca51 updated README and docs
  • | | | | 3d7f646 Merge pull request #34 from bancorprotocol/simulator-quickfixes
    |\ \ \ \ \
    | | |/ / /
    | |/| | |
    | * | | | 113de64 Merge branch 'main' into simulator-quickfixes
    | |\ \ \ \
    | |/ / / /
    |/| / / /
    | |/ / /
  • | | | 4e5c9d3 Merge pull request #42 from bancorprotocol/update-standard-rewards-contract-emulation
    |\ \ \ \
    | * | | | d1cc95d Update the StandardRewards contract emulation.
    |/ / / /
  • | | | 11c98c5 Merge pull request #41 from bancorprotocol/clean-ups
    |\ \ \ \
    | * | | | 9a490c4 Remove redundant code.
    | * | | | 31a9a0c A few minor cleanups and coding improvements.
    |/ / / /
    | * | | 68c1b45 Merge branch 'simulator-quickfixes' of https://github.com/bancorprotocol/research into simulator-quickfixes
    | |\ \ \
    | | * | | 44d9d29 fixup: Format Python code with Black
    | * | | | 7f2bed2 Update utils.py
    | |/ / /
    | * | | 6db463b updated BancorDapp parameters
    | * | | 707b827 Merge branch 'simulator-quickfixes' of https://github.com/bancorprotocol/research into simulator-quickfixes
    | |\ \ \
    | | * | | 0999b71 fixup: Format Python code with Black
    | * | | | bb58879 Update state.py
    | |/ / /
    | * | / 5ca1a07 Update state.py
    | | |/
    | |/|
    | * | de003e0 fixup: Format Python code with Black
    | * | 092af4e Update network.py
    | * | 0743ffe Removed active_users
    | * | c85cdf7 fixup: Format Python code with Black
    | * | b67a8e1 Minor changes to the simulator module
    | | * 14bc040 Create join_tables.ipynb
    | | * c7de439 Update limit_tradingliquidity_proposal_study.ipynb
    | | * 5ac725a Updated study
    | | * d657029 Added Governance Proposal Study
    | |/
    |/|
  • | 6b8a519 Merge pull request #40 from bancorprotocol/full-precision-system-test
    |\ \
    | * | 072937c Minor.
    | * | b842d70 Fix line endings.
    | * | 62b5c89 Coding improvement.
    | * | 26556fc Coding improvement.
    | * | 85f8bab Improve CreateSystemTestData.py to be compatible with both FIXED_POINT_MODE and FLOAT_POINT_MODE.
    | * | bdeab52 1. Fix CreateSystemTestData.py to generate full-precision data 2. Fix TestSystem.py to verify that the actual results are almost equal to the expected results
    |/ /
  • | c0ab6e3 Merge pull request #39 from bancorprotocol/emulator-unit-tests
    |\ \
    | * | 7a7ce1e Fix config/__init__.py.
    | * | e4dc7c5 Fix the 'fixed-point/float-point' toggle.
    | * | 1fb964b Revert "Fix the 'fixed-point/float-point' toggle."
    | * | a00bf9b Fix the 'fixed-point/float-point' toggle.
    | * | f7eefa1 Minor cleanup.
    | * | ca69882 Add a general-utility assertAlmostEqual function.
    | * | e46e4c0 Add some more assertions in TestMathEx.py.
    | * | 1a8344a Cosmetic.
    | * | 22cd3e6 Fix TestMathEx.py.
    | * | d176171 Cosmetic.
    | * | d5001ba Add some more assertions in TestMathEx.py.
    | * | a1b3a4b Improve coding and add some more assertions in TestMathEx.py.
    | * | 9609f58 Add almost-equal assertions in TestMathEx.py.
    | * | 4dbb927 1. Add almost-equal assertions in TestMathEx.py 2. Cosmetic (rename testReducedFraction to testTruncatedFraction
    |/ /
  • | 2a0cfca Merge pull request #38 from bancorprotocol/update-pool-collection-emulation-from-v9-to-v10
    |\ \
    | * | b2b50c7 1. Fix the parse method 2. Update some of the system test configuration files
    | * | 636f37d 1. Update the emulation of the BancorNetwork contract 2. Update the emulation of the PoolCollection contract
    |/ /
  • | 485eba2 Merge pull request #37 from bancorprotocol/fix-system-test
    |\ \
    | * \ bd6cb8f Merge branch 'main' of https://github.com/bancorprotocol/research into fix-system-test
    | |\ \
    | |/ /
    |/| |
  • | | 4d21046 Merge pull request #36 from bancorprotocol/mikewcasale-patch-1
    |\ \ \
    | * | | b2835ab Update README.md
    |/ / /
  • | | fb8c7f6 Merge pull request #35 from bancorprotocol/auto-compounding-rewards-emulation
    |\ \ \
    | * | | 9e2d845 1. Add an emulation of the AutoCompoundingRewards contract 2. Add an emulation of the RewardsMath library 3. Fix the emulation of the StandardRewards contract
    |/ / /
  • | | 85b31a9 Merge pull request #33 from bancorprotocol/update-emulator-based-on-25-07-contracts-release
    |\ \ \
    | * | | 4e6cafc Update emulated contracts according to the 25/07 release.
  • | | | 5a940c4 Update release.md
  • | | | 0af1308 Merge pull request #32 from bancorprotocol/download-json-files-upon-installation
    |\ \ \ \
    | * | | | 3f340ed Fix the git-ignore file.
    | * | | | 681e9c9 Add a script for downloading all required JSON files from the 'contracts-v3' repository upon the installation of the emulator tests.
    | |/ / /
  • | | | 104e661 Update README.md
  • | | | f5b9cbc Added missing function docstrings