# **Weekly Dev Team Update 14/04/2023**
## **Sim (Dylan/Mihai/Matt)**
- [ ] Tests parity with smart contracts
- [ ] Implement python tests that have the same asserts as in solidity
- We added tests from checkpoint 91888d0 (Feb 26)
- [x] Initialize market
- [x] Open long
- [x] Close long
- [x] Open short
- [x] Close short
- [x] Add liquidity
- [x] Checkpoints
- These are new tests that have been made since
- [x] Fees
- [x] Remove liquidity
- [ ] Extreme inputs
- [x] Withdraw shares
- [ ] Negative interest
- [ ] Run basic bots that create activity on the chain
- [x] Random bots
- [x] Smart bots that reduce spread
- [ ] Run cross-platform tests that assert outputs are equal from both the solidity & python repos
- [ ] Precision refactor
- [x] profile options in python for fixed-point & float arethmetic
- [ ] get all calculations to be fixed or float
- [ ] Add OHLCV charts to the set of charts that we can generate from the Sim Repo
- [ ] use historical data for OHLCV charts
- [ ] generate OHLCV charts from simulated trades
- [ ] Finish integrating borrow market into repo
- [ ] Demo borrowing beatrice trading on spark
- [ ] Demo fixed-rate borrow & leveraged long pipelines
- [ ] Connect agent trade data to FE team so that they can visualize outputs
## **FE**
**Danny**
- This week was about working through the portfolio page, got a little bit left to do there. Will wrap that up next week and begin working with Alex a little bit to improve some event logic.
**Ryan**
This week:
- Added localhost testnet script to council-kit
- Added localhost and mainnet deploy scripts to deployment CLI
- Added airdrop deploy script to deployment CLI
- Added Airdrop to the council SDK
- Minor High Council work and collab
Next week:
- Roadmapping and continued council work
**Cash**
- Working on hyperdrive trading
- Finished open and close positions and closing longs
## **SC**
**Alex**
- Reformulating withdrawal shares flow
- reworking core flows and unifying accounting into a single conservation law
- More rigorous testing next week
**Violet**
- Violet has ben shipping factories – ways to deploy Hyperdrive
# **Weekly partial Team Update 07/04/2023**
## **Sim (Dylan/Mihai/Matt)**
Mihai, Cash, and Jacob are going to be working on a demo for showing python bot trade data on the hyperdrive website. Cash is already working on it with mock data he is generating. Mihai and Jacob are wrapping up some tasks they needed to get done today and then starting on it tomorrow. Our goal is to complete it by the 14th, but Jacob is out of office 12-14 so more likely it'll be done the week of the 17th. Dylan linked a clickup task in the simulations channel. Mihai is working on executing bot trades on goerli eth network, jacob scrapes that trade data & formats it into a json on an amazon s3 bucket, cash uses the s3 URI to grab the data, parse it, and serve it up as a plot.
- [ ] Tests parity with smart contracts
- [ ] Implement python tests that have the same asserts as in solidity
- We added tests from checkpoint 91888d0 (Feb 26)
- [x] Initialize market
- [x] Open long
- [x] Close long
- [x] Open short
- [x] Close short
- [x] Add liquidity
- [x] Checkpoints
- These are new tests that have been made since
- [x] Fees
- [x] Remove liquidity
- [ ] Extreme inputs
- [x] Withdraw shares
- [ ] Negative interest
- [ ] Run basic bots that create activity on the chain
- [x] Random bots
- [x] Smart bots that reduce spread
- [ ] Run cross-platform tests that assert outputs are equal from both the solidity & python repos
- [ ] Precision refactor
- [x] profile options in python for fixed-point & float arethmetic
- [ ] get all calculations to be fixed or float
- [ ] Add OHLCV charts to the set of charts that we can generate from the Sim Repo
- [ ] use historical data for OHLCV charts
- [ ] generate OHLCV charts from simulated trades
- [ ] Finish integrating borrow market into repo
- [ ] Demo borrowing beatrice trading on spark
- [ ] Demo fixed-rate borrow & leveraged long pipelines
- [ ] Connect agent trade data to FE team so that they can visualize outputs
## **FE**
**Cash**
- Still working on hypedrive trading. We have open long, open short, and the trading view stubbed out
- Next week is open LP, close long/short and maybe candlestick chart
**Danny**
- Fixed borrow is now a one-click operation, this is deployed and working in the UI ✅
- Building the portfolio page now, which will display your fixed borrow positions (debt & short) and some general stats about your overall loan health on Spark
**Ryan**
This week focus was on:
- learning about rollups
- prepping for High Council/Council Kit work
- Wrapping up airdrop deploy
Next week:
- Find out whom, if anyone, will have cycles for council kit from High Council
- Passively look for FE candidates
- Work through Council Kit backlog while keeping an eye/ear out for additional work that comes as a result of High Council needs
## **Data Infra** (Jacob)
- This week he updated the goerli beacon client, ingested some of the initial hyperdrive data, and continued to work on the unchained index for goerli
- Today and going into next week I am working on the sim integration which includes setting up an ec2 to host the agent bot codebase but primarily ingesting, formatting, and serving up the data to the front end
# **Weekly partial Team Update 31/03/2023**
*swamped with rebrand, didn't have time to capture full dev/research team update this week
**Alex**
- This week working on LP withdraw shares, still lots of issues
- Knocked out other bugs this week like the donation attack
- Next week: we need to investigate the backdating flow (open a trade some time into a checkpoint), negative interest the short flow
- Need to start thinking about fuzzing
**Patrick**
- was working on Aave fixed borrow
- testing fixed rate behaviour surrounding longs/shorts and testing assumptions
- Seeing some odd behaviour: really high share prices when there’s a long duration of compounding
- focused on issue: trading over multiple terms with interest accrual
# **Weekly Team Updates 24/03/2023**
## **Sim (Dylan/Mihai/Matt)**
- Mihai & Matt were expecting to get governance fee (mihai) and withdrawal shares (matt) merged today, although it's looking more likely for Monday.
- Dylan is digging into what the options are for refactoring the code to support fixed-point precision and put in more protections against rounding errors. He's mostly out of pocket this weekend.
- [ ] Tests parity with smart contracts
- [ ] Implement python tests that have the same asserts as in solidity
- We added tests from checkpoint 91888d0 (Feb 26)
- [x] Initialize market
- [x] Open long
- [x] Close long
- [x] Open short
- [x] Close short
- [x] Add liquidity
- [x] Checkpoints
- These are new tests that have been made since
- [x] Fees
- [x] Remove liquidity
- [ ] Extreme inputs
- [ ] Withdraw shares
- [ ] Negative interest
- [ ] Run basic bots that create activity on the chain
- [x] Random bots
- [x] Smart bots that reduce spread
- [ ] Run cross-platform tests that assert outputs are equal from both the solidity & python repos
- [ ] Precision refactor
- [x] profile options in python for fixed-point & float arethmetic
- [ ] get all calculations to be fixed or float
- [ ] Add OHLCV charts to the set of charts that we can generate from the Sim Repo
- [ ] use historical data for OHLCV charts
- [ ] generate OHLCV charts from simulated trades
- [ ] Finish integrating borrow market into repo
- [ ] Demo borrowing beatrice trading on spark
- [ ] Demo fixed-rate borrow & leveraged long pipelines
- [ ] Connect agent trade data to FE team so that they can visualize outputs
## **SC**
**Alex**
- Testing/fuzzing the withdrawal shares flow
- Have so far tested one long and one short
- Different tests to close long immediately or close redemption
- The flows were directionally correct, but the implementation had some problems; getting to a reliable system
**Patrick**
- Started refactoring core calculation logic and decoupling from the main code base but ended up being more problematic than intended so had to abandon this effort
- Contuning work on the Aave fixed borrow; just implemented unit tests on the core calc logic including one on the open long
**Violet**
- zk secondment with EF
## **FE**
**Cash**
- This week he knocked out a lot of work on the markets page (see below). Next week he'll be focusing on the trading page and trading logic.

**Ryan**
- This week he and Danny broke out fixed borrow tasks in CU and started tackling them
- Next week he's gonna take some time off (Mon-Wed) then will see where Danny's at with fixed borrow to help tackle the rest
**Danny**
- Fixed Rate Borrow UI is under MVP development; the design is solidified and he and Ryan are implementing it now
- Next week their goal is to hook it up to the one-click zap contract that Patrick is working on then begin scoping out the Portfolio page where users can close their fixed borrow positions

## **Data Infra** (Jacob)
- Upgrade on lighthouse (for the beacon node / consensus layer) and then a version upgrade on Erigon (execution) — will be done by end of day today or this weekend latest
- Erigon node is 100% sync’d just waiting for ~775k blocks for TrueBlocks to index (and then Goerli data will be at 100%)
- Mainnet is already at 100%
# **Weekly Team Updates 17/03/2023**
## **Sim (Dylan/Mihai/Matt)**
- [ ] Tests parity with smart contracts
- [ ] Implement python tests that have the same asserts as in solidity
- We are adding tests from checkpoint 91888d0 (Feb 26)
- [x] Initialize market
- [x] Open long
- [x] Close long
- [x] Open short
- [x] Close short
- [x] Add liquidity
- [x] Checkpoints
- These are new tests that have been made since
- [ ] Fees
- [ ] Remove liquidity
- [ ] Extreme inputs
- [ ] Withdraw shares
- [ ] Run basic bots that create activity on the chain
- [x] Random bots
- [ ] Smart bots that reduce spread
- [ ] Run cross-platform tests that assert outputs are equal from both the solidity & python repos
- [ ] Add OHLCV charts to the set of charts that we can generate from the Sim Repo
- [ ] use historical data for OHLCV charts
- [ ] generate OHLCV charts from simulated trades
- [ ] Finish integrating borrow market into repo
- [ ] Demo borrowing beatrice trading on spark
- [ ] Demo fixed-rate borrow & leveraged long pipelines
- [ ] Connect agent trade data to FE team so that they can visualize outputs
## **SC**
**Alex**
- refactoring and testing
**Patrick**
- working on AaveFixedBorrow implementation (zap contract to supply some collateral like wsteth, borrow DAI on Aave and then short the DAI fixed rate on Hyperdrive)
**Violet**
- zk secondment with EF
## **FE**
**Cash**
- finalized the first iteration of Hyperdrive trading mocks and conducted reviews
- started the Hyperdrive trading project this past week
- next week will be a mix of continuing design work and developing
**Ryan**
- created the new SDK video
- uploaded some example branches for extending the SDK
- iterated on and finished mocks for Fixed Rate Borrow
- got up to speed on the hyperdrive-monorepo code
- worked on a twitter thread for the Hypers Drive game that will go out Monday.
- working through some refactors and publishing for Council, but this will be ongoing
**Danny**
- Fixed Rate Borrow prototype nearly complete, moving onto MVP this week
- PTO March 16th & 17th
# **Weekly Team Updates 10/03/2023**
## **Sim (Dylan/Mihai/Matt)**
- [ ] Tests parity with smart contracts
- [ ] Implement python tests that have the same asserts as in solidity
- We are adding tests from checkpoint 91888d0 (Feb 26)
- [x] Initialize market
- [x] Open long
- [x] Close long
- [x] Open short
- [x] Close short
- [x] Add liquidity
- [x] Checkpoints
- These are new tests that have been made since
- [ ] Fees
- [ ] Remove liquidity
- [ ] Extreme inputs
- [ ] Withdraw shares
- [ ] Run cross-platform tests that assert outputs are equal from both the solidity & python repos
- [ ] Run basic bots that create activity on the chain
- [ ] dumb bots
- [ ] smart bots that reduce spread
- [ ] Add OHLCV charts to the set of charts that we can generate from the Sim Repo
- [ ] use historical data for OHLCV charts
- [ ] generate OHLCV charts from simulated trades
- [ ] Finish integrating borrow market into repo
- [ ] Demo borrowing beatrice trading on spark
- [ ] Demo fixed-rate borrow & leveraged long pipelines
- [ ] Connect agent trade data to FE team so that they can visualize outputs
## **SC**
**Violet**
- Withdrawal shares, just opened up a PR for testing (code was in earlier this week)
- Violet is out next week in Vietnam, available for anything urgent
**Patrick**
- Integration testing on profit accounting for longs (ran into a couple issues but nothing major)
- He’ll be creating instances of hyperdrive w/fees for integration testing
- close short max loss test just pushed, changed how we accrue interest
**Alex**
- share adjustment PR is in; waiting on reviews (V today, Jonny tomorrow); will have this in by early next week
- figured out we don’t need to do the Hyperdrive proxy, so that’s good
- working on the LP fee adjustment feature this afternoon
- refactoring/testing focus ahead —> we’re near feature completion
## **FE**
**Cash**
- This week: hyperdrive trading mockups (60% complete)
- Next week will just be iterating + two review sessions being scheduled
- Mock Aave protocol is 90% done just on hold since no one needs to use it right now. There is a hyperdrive goerli deploy now so he'll finish the rest only if someone needs a local deploy.
- Danny said he doesn't need an aave asset proxy so will not continue working on that unless requirements change
**Ryan**
- Remaining SDK Videos
- Extending the SDK
- Using the SDK with React
- Refactor SDK to use Viem (https://viem.sh/). It's currently dependent on a package called Ethers v5, but ethers just came out with v6 which isn't compatible. Ethers also requires users to have "typechain" instances of their contracts that they would have to build using ethers. We could refactor to v6, but Viem make it much easier for users to use the SDK without any prereqs.
- Publish packages to NPM - This will make it possible for people to use the SDK without cloning the whole monorepo. They can install it on existing repos or new fresh repos.
- Get up to speed on Fixed Rate Borrow and begin contributing
**Danny**
- the end-to-end protytpe works as of today; Minimum "Crappy" Product (100% complete)
- plan next week is to keep working on fixed rate borrownow – next up is the MVP
________________________________________________________
#
# **Weekly Team Updates 06/03/2023**
## **SC**
V
- Refactoring bug ID’d by Will at the offsite
- Working on a new model for Withdraw shares
Patrick
- Research into invariant testing model that Maple used
- Integration/unit testing
- Max open longs/shorts —> working on next
Alex
- Share adjustment PR
- Next week: we need to work on fixing the code size issue so we can get a Goerli deployment out for the FE team
- If make a function public in a library, it reduces amount of byte code in the calling contract
- V suggested potentially using a beacon proxy pattern instead
## **Sim (Dylan/Mihai/Matt)**
- [ ] Tests parity with smart contracts
- [x] Imlpement python tests that have the same asserts as in solidity
- We are adding tests from checkpoint 91888d0 (Feb 26)
- [x] Initialize market
- [x] Open long
- [x] Close long
- [x] Open short
- [ ] Close short
- [x] Add liquidity
- [x] Checkpoints
- These are new tests that have been made since
- [ ] Fees
- [ ] Remove liquidity
- [ ] Extreme inputs
- [ ] Run cross-platform tests that assert outputs are equal from both the solidity & python repos
- [ ] Run basic bots that create activity on the chain
- [ ] dumb bots
- [ ] smart bots that reduce spread
- [ ] Add OHLCV charts to the set of charts that we can generate from the Sim Repo
- [ ] use historical data for OHLCV charts
- [ ] generate OHLCV charts from simulated trades
- [ ] Finish integrating borrow market into repo
- [ ] Demo borrowing beatrice trading on spark
- [ ] Demo fixed-rate borrow & leveraged long pipelines
- [ ] Connect agent trade data to FE team so that they can visualize outputs
## **FE**
Cash
- Hyperdrive prototype 100% complete; working on the full production version next
- Local tesnet 25% complete; expecting more requirements on Monday (today)
- mock aave protocol
- aave asset proxy
Danny
- Fixed Rate Borrow UI (WIP)
Ryan
- Finished up all remaining Wave 2 Council UI backlog polish tasks last week and video for the Reference UI deployment tutorial
- This week he is working on:
- wrapping up the Council landing page
- SDK tutorials (there are a few)
- Contributor Guide
- implementing updated ToS & Privacy Policy for both gov sites