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

0xripleys remove clock #99

Merged
merged 2 commits into from
Aug 12, 2022
Merged

Conversation

0xripleys
Copy link

Make the clock sysvar optional in all program instructions.

@codecov-commenter
Copy link

Codecov Report

Merging #99 (3c3b480) into 0xripleys_flash_loan (70370a2) will decrease coverage by 0.12%.
The diff coverage is 74.00%.

@@                   Coverage Diff                    @@
##           0xripleys_flash_loan      #99      +/-   ##
========================================================
- Coverage                 81.68%   81.56%   -0.13%     
========================================================
  Files                        34       34              
  Lines                      8711     8723      +12     
========================================================
- Hits                       7116     7115       -1     
- Misses                     1595     1608      +13     
Impacted Files Coverage Δ
token-lending/program/src/processor.rs 71.26% <73.46%> (-0.32%) ⬇️
token-lending/program/src/instruction.rs 90.32% <100.00%> (-0.22%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@0xripleys 0xripleys merged commit 7bfea26 into 0xripleys_flash_loan Aug 12, 2022
nope-finance pushed a commit that referenced this pull request Aug 31, 2022
* 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
@0xripleys 0xripleys deleted the 0xripleys_remove_clock branch January 25, 2023 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants