-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add anchor-build action #4119
Closed
Closed
Add anchor-build action #4119
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DaSichuan
commented
Apr 14, 2023
- rounding error fix (Bump superstruct from 0.8.3 to 0.10.12 in /token/js #51)
- adding confidence and status checks for pyth (Add instruction helpers #52)
- One oracle (Token: add Rust program id and version a couple things #53)
- Update token lending readme (Fix serialization #54)
- Fix README
- update-readme-addreses (Turn on automerge with mergify #56)
- allow oracle to be more stale (Cleanup .js naming #57) (Install bpf-sdk if none exists #58)
- dupe lite refresh (Require spl-token accounts to be rent-exempt #62) (Token account delegation is expensive, requiring three steps and two accounts. #63)
- fix ci solana version (Allow native SOL to be represented as a token #67)
- Update switchboard-program to v0.2.0 (Add rent awareness to spl-token #66)
- oracleless repay (Bump eslint-plugin-import from 2.20.2 to 2.22.0 in /token/js #64)
- Upcoming (Oracle pair #68)
- remove unused programs (Remove unnecessary lifetimes and use rand during test #60)
- Oracleless ctoken mint and redeem (Prep token for impending token-swap merge #69)
- update liquidation close factor as part of param updates (Fix CI #74)
- added liquidate and redeem (with protocol fee) (Token-swap CI js fails #75)
- repay floor to ceil hotfix
- adding switchboard v2 support (Version solana-sdk-bpf-test and spl-memo for crates.io #73)
- fix init reserve comments (Fix automation #81)
- Publish crate2 (Consolidate .gitignore #80)
- fix max withdraw (Remove supply from Token #82)
- allow loan_to_value_ratio == liquidation_threshold (Add revoke instruction #85)
- high rate map (Other token accounts can be mistaken for multisig accounts #86)
- adding more high rate cases
- fix to support higher exponent for switchboard v2 (Use variant fields #90)
- trying take rate other way (Update docs #89)
- sliding down borrow limit and 1 percent close factor (Provide token program cross-program-invocation wrappers #91)
- only redeem as much collateral as liquidity allows during liquidate (token-swap: Add constraint to liquidity deposits / withdraws #88)
- undo borrow limit and close factor change and cap liquidation amount (Dependabot couldn't find a package.json for this project #92)
- test coverage github action (Bump flow-bin from 0.121.0 to 0.128.0 in /token-swap/js #94)
- enable github actions on commits to upcoming branch (Bump eslint-loader from 3.0.4 to 4.0.2 in /token-swap/js #96)
- turn on liquidation fees and deprecate old liquidation instruction (Bump eslint-plugin-react from 7.20.0 to 7.20.3 in /token/js #100)
- bump solana to 1.9.18 (Add dependabot.yml #97)
- flash loans (Bump superstruct from 0.8.4 to 0.10.12 in /token-swap/js #95)
- bump cargo version (Bump superstruct from 0.8.4 to 0.10.12 in /token-swap/js #103)
- make cli update only update if actually changing something and add an… (Bump css-loader from 3.4.2 to 3.6.0 in /token/js #101)
- allow 0 ltv assets to be deposited + minor cleanup (Dependabot couldn't find a package.json for this project #104)
- Obligation_owner should be readonly (token-swap: Add constraint to swap instruction to prevent too much slippage #87)
- allow passing just pyth to save bytes (Version C header #105)
- update debt limit (Bump react-bootstrap from 1.0.0 to 1.1.1 in /token/js #107)
- 0xripleys manual liquidate (Add support for native token #112)
- fix cli for updating oracle (Bump eslint-loader from 3.0.3 to 4.0.2 in /token/js #114)
- Use pyth sdk + tests (Re-org token-swap #113)
- Create a crate, relax solana dependencies in crate (Bump flow-bin from 0.128.0 to 0.129.0 in /token-swap/js #118)
- bump solana version to 1.14 (Bump webpack-cli from 3.3.11 to 3.3.12 in /token/js #116)
- Refactor and improve tests (Document that delegates cannot CloseAccount #121)
- changing util rate calc to exclude non-claimed fees (Token init instructions don't check if accounts are signers #132)
- Solend v2.0.1 (No way track how long a the user has held a balance #131)
- div by zero fix (Fix C header to include state structures #138)
- fix for withdraw case (Remove builtin flowconfig suppress_comments #140)
Add function to deposit reserve liquidity and collateral
Refresh reserve in between depositing liquidity and depositing collateral
Switchboard
Fix instruction comment for depositing liquidity
clean instructions account numbering
Add testing and instruction utils for combined deposit function
RedeemReserveCollateral
Merge WithdrawObligationCollateral and RedeemReserveCollateral
Add instruction to update reserve configs
Reserve Deposit Limit Implementation
* started take rate cleaning up all the boilerplate adding reserve config take rate claim fees config check + fixing/adding tests fix comment in instruction.rs fixed tests for native token and added pr feedback properly keeping track of availible amount when redeeming fees add in fees when compounding try other method * change to accumulating and redeem when can also added staleness checks * fixed tests * cleanup
* sliding down borrow limit and 1 percent close factor * fix tests * final dates set
…92) * undo borrow limit and close factor change, but keep caps on borrow limits * fml changed the wrong variable * add new liquidation value cap
* test coverage github action * move actions to another job * moving stuff around * grr * artifact error * try cobertura format with codecov * add decimal test * formatting * tests for decimal * rate tests * format * tests for calculate liquidation
* bump t o 1.9.18 * Solve clippy warnings after bump update * bump solana version in script * fixing various warnings * fix all clippy warnings in the tests * fmt Co-authored-by: Andrei Hrs <andrei_hristescu@yahoo.com>
* copying kiplet's code * make flash loans more conservative * happy case test * adding more tests, fixed a bug * moar tests * clippy lints * fix assert * remove clock * remove old flash loan instruction, but keep the instruction packing code * saner flash loan fee calculation * add flash borrow ix arg to flash repay * cargo fmt * add cpi repay test * bump compute units, no idea why github actions is failing * test for malicious use case * remove unused variable * fix coverage, check reserve borrow limit in flash borrow * mark reserves as stale in flash borrow and repay * revert back to old nightly version, install grcov with stable * fix for [repay, borrow, repay] * refactor CPI * recheck stuff in flash repay * explicitly check for out of bounds in flash borrow loop * 0xripleys remove clock (#99) * make clock sysvar optional * remove clock from instructions * add stack height check * fmt
#101) * make cli update only update if actually changing something and add anchor.toml * fix clippy
Issue: As in description `WithdrawObligationCollateralAndRedeemReserveCollateral` combines `WithdrawObligationCollateral` and `RedeemReserveCollateral`. While `obligation_owner` in `WithdrawObligationCollateral` is readonly, it is writable in `WithdrawObligationCollateralAndRedeemReserveCollateral` is writable. Solution: Update `obligation_owner` readonly in `WithdrawObligationCollateralAndRedeemReserveCollateral`
* oallow passing just pyth to save bytes * fixing to check that there is a next account and 1 other check * use option instead * added a test
* kinda working cli liquidation * dynamically create atas if they don't exist * adding compute budget request * fix clippy * liquidate scripts * withdraw ctokens command * add redeem reserve collateral function
* (rfc) bump solana version to 1.14 * fix build * remove flag * update solana version * fix clippy * fix clippy * pin serde version
- use Reserve, LendingMarket, Obligation types directly instead of TestReserve, TestLendingMarket, TestObligation - more helper functions - check account state after every successful program call - check _all_ token accounts and mint accounts after every successful program call
* 0xripleys outflow limits (#125) Use a sliding window rate limiter to limit borrows and withdraws at the lending pool owner's discretion. * 0xripleys borrow coefficient (#127) Add a borrow weight to the Reserve * Two Prices PR (#129) - Add a smoothed_market_price to Reserve that is used to limit borrows and withdraws in cases where smoothed price and spot price diverge. - allowed_borrow_value now uses the min(smoothed_market_price, current spot price) - new field on obligation called borrowed_value_upper_bound that uses max(smoothed_market_price, current spot price) * audit nits * audit fixes pt 2 * disable rate limiter if window duration == 0 * cli changes for v2.0.1 (#133)
* div by zero fix * fmt * use cur slot instead of 0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.