Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lending Strategy #1

Open
wants to merge 56 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
82846ab
feat:setup commit
16slim Dec 19, 2021
3247025
feat: lend ETH script
16slim Dec 20, 2021
7156060
feat: depositing to notional working
jmonteer Dec 20, 2021
17cc3f8
feat: implemented basic version of adjustPosition
16slim Dec 22, 2021
94afbc2
feat: first implementation of prepareReturn and liquidatePosition
16slim Dec 22, 2021
6109bed
fix: scale down fcash 95% to avoid reverting trades
16slim Dec 23, 2021
e9cd436
feat: added functionality to settle and close all mature positions
16slim Dec 23, 2021
322379f
feat: initial liquidatePosition function
16slim Dec 27, 2021
b63aa5e
feat: liquidate poitions based on current portfolio and active market…
16slim Dec 27, 2021
061836f
feat: included active market valuation in estimateTotalAssets
16slim Dec 27, 2021
1a9ab2f
fix: included all changes from PR#1
16slim Dec 28, 2021
cc13631
chore: comments and minor changes
jmonteer Dec 30, 2021
061ff31
fix: Added comment explaining getmarketindex
16slim Jan 3, 2022
6243f92
Merge branch '16slim/basic_strategy' of https://github.com/jmonteer/n…
16slim Jan 3, 2022
dd06dc2
feat: test_profitable_harvest implemented
16slim Jan 4, 2022
471d17a
feat: profitable and lossy unit tests implemented
16slim Jan 7, 2022
b3af1f1
feat: unit tests for choppy harvest implemented
16slim Jan 10, 2022
67808e9
feat: implemented choppy and maturity unit tests for all notional tokens
16slim Jan 13, 2022
e93e102
feat: natspec docs on all functions
16slim Jan 13, 2022
f710e98
feat: created migration test for all tokens
16slim Jan 13, 2022
68eb316
feat: added @jmonteer comments from PR#1, notably not reporting profi…
16slim Jan 18, 2022
6c71d9b
fix: added license for missing files
16slim Jan 18, 2022
e135b45
feat: included toggle to realize losses and rollout trade to change m…
16slim Jan 21, 2022
f1c3509
fix: minor bug fixes and tests
16slim Jan 22, 2022
e4be12c
fix: change losses toggle to let users withdraw
16slim Jan 22, 2022
1b6a4a1
fix: moved the weth deposit to the trading function
16slim Jan 22, 2022
b5cbbd6
feat: changed to initializer pattern to enable strategy cloning
16slim Jan 23, 2022
eb30c96
feat: Implemented the fcash scaling factor to avoid potential reverts…
16slim Jan 23, 2022
83a4cc5
fix: included DD link in README
16slim Jan 23, 2022
cd56215
fix: changed value of FCASH_SCALING a bit lower
16slim Jan 23, 2022
57ac360
fix: included a function to buy ntoken residuals to be able to activa…
16slim Jan 24, 2022
9fdbea7
fix: changed modifiers for getters and setters to onlyEmergencyAuthor…
16slim Jan 25, 2022
42fc3e0
fix: fixed some function natspec comments
16slim Jan 25, 2022
393ccec
fix: added comments from peer review from @garywackett55
16slim Jan 28, 2022
04af422
feat: implemented harvestTrigger logic
16slim Jan 28, 2022
c5745c6
fix: incorporated @storming0x comments from review
16slim Feb 4, 2022
09f9958
feat: included comments from @storming0x from review
16slim Feb 7, 2022
7a091f6
fix: changed tests to use live vault contracts from each token instea…
16slim Feb 7, 2022
950c09f
feat: added harvestTrigger() tests to test_maturity
16slim Feb 7, 2022
441de37
fix: included new vault for weth testing
16slim Feb 7, 2022
fdc7adb
feat: added hardhat-fork as default network
Feb 9, 2022
e71ee19
feat: added new external liquidation functions for onlyVaultManagers …
Feb 9, 2022
d4ce95b
feat: added hardhat dependency
Feb 9, 2022
756f25b
feat: testing new external functions
Feb 9, 2022
718ea99
fix: minor fixes as per @jmonteer review
Feb 10, 2022
511f9c2
fix: removed unused lendETH script
Feb 10, 2022
183fe4a
fix: moved manual operation tests into their own .py
Feb 10, 2022
387d55e
fix: minor gas savings in preparereturn and adjustPosition as per @jm…
Feb 10, 2022
4a06e72
feat: included MIN_AMOUN_HARVEST variable + setter for harvestTrigger…
Feb 10, 2022
ac0eb6a
fix: Changed modifier for transferMarket to onlyGovernance and change…
Feb 10, 2022
67f7912
feat: inluded a test for second initilization of both initial strateg…
Feb 10, 2022
8125820
fix: comments edits
16slim Feb 14, 2022
6f75be7
fix: all tests are done with a cloned strategy to re-create real worl…
16slim Feb 15, 2022
a70fd45
feat: script re-creating the real step up scenario to run for Notiona…
16slim Feb 15, 2022
33cf4e9
feat: changed tests to use deployed contract
16slim Feb 15, 2022
8a5a9bf
fix: changed deployment script to use real cloned addresses
16slim Feb 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ reports/

# Node/npm
node_modules/

contracts/encodeTrade.sol
Loading