Commit cbd67c6
audit: 🛠️ Combined
* WIP
* prettified
* types
* fixes
* docs
* feat: ✨ Implement conflict detection for tvl_only asset flags (#86)
Co-authored-by: matias-gonz <[email protected]>
* feat: 🛡️ Improve confidence checks in pyth (#82)
* feat: confidence check fails if confidence ratio exceeds maximum in PythAdapter
* add pyth cfg example
---------
Co-authored-by: matias-gonz <[email protected]>
* fix: use block_number and block_identifier in all rpc calls (#81)
Co-authored-by: matias-gonz <[email protected]>
* refactor: 🛠️ Ameliorate precision loss in `fetch_native_price()` (#84)
* refactor: 🛠️ Change fetch_native_price return type to string to prevent float precision loss
* add test
---------
Co-authored-by: matias-gonz <[email protected]>
* fix: 🐛 Handle exceptions when fetching asset balances and items in IdleBalancesAdapter (#75)
Co-authored-by: matias-gonz <[email protected]>
* refactor: ♻️ Simplify vault address resolution logic in StakeWiseAdapter (#76)
* refactor: ♻️ Simplify vault address resolution logic in StakeWiseAdapter
* fmt
* typo
---------
Co-authored-by: matias-gonz <[email protected]>
* chore: move import outside of loop (#83)
Co-authored-by: matias-gonz <[email protected]>
* chore: remove unused units module (#78)
Co-authored-by: matias-gonz <[email protected]>
* feat: raise error when IdleBalancesAdapter.fetch_all_assets fails to fetch assets from a vault (#79)
Co-authored-by: matias-gonz <[email protected]>
* feat: raise error on adapter failures in _process_adapter_results (#80)
Co-authored-by: matias-gonz <[email protected]>
* feat: ✨ add price tolerance validation (#87)
* feat: 🩹 add cowswap timeout (#88)
* chore: 🛡️ Add overflow guard to pyth scale function (#77)
* feat: add overflow check for PythAdapter._scale_to18
* fix: update overflow check in PythAdapter to use uint224 max and improve error handling
* change guard
---------
Co-authored-by: matias-gonz <[email protected]>
* refactor: ♻️ remove dead param (#92)
vault_address no longer required for pre_check function call
* fix: 🥅 Enforce impl of required methods (#93)
* fix: 🐛 Rewrite deviation formula (#94)
* feat: ✨ added cli option for gate dangerous options (#89)
* feat: ✨ Normalize asset addresses to EIP-55 checksummed format in aggregation (#85)
Co-authored-by: matias-gonz <[email protected]>
* refactor: ♻️ remove deprecated check (#90)
checks were implemented in separate files, this is just stubs
* fix: 🔧 Added timeout to Safe API to prevent hang (#91)
* fix: 🔧 add timeouts
added timeout to safe external api so it doesn't hang indefinitely
* Update src/tq_oracle/report/publisher.py
Co-authored-by: Copilot <[email protected]>
* fix
---------
Co-authored-by: Copilot <[email protected]>
* Audit/fyeo 5 correct scaling dps (#109)
* fix: 🐛 fix cowswap scaling
* refactor: ♻️ Tidy code
* Revert "Audit/fyeo 5 correct scaling dps (#109)"
This reverts commit b5268e5.
* fixes
* fixes
* feat: ✨ add TVL to dry-run report
* pr comment fixes
* refactor: ♻️ use native osETH price (#127)
* refactor: ♻️ use native osETH price
* fix: remove claimed tickets from totals
* remote escrow
* refactor: tidy
* pr comments
* Fix async blocking
* clarify tvl-only comments
* fix: 🐛 Fix stETH Audit issues (#131)
* skip streth on non-mainnet
* add abi error handling
* add web3 conn check
* zero addr refactor
* fix tests
* lint
* Add settings docs
---------
Co-authored-by: Andrey Borzenkov <[email protected]>
Co-authored-by: matias-gonz <[email protected]>
Co-authored-by: Copilot <[email protected]>FYEO Audit fixes RC2 (#132)1 parent 551c407 commit cbd67c6
File tree
47 files changed
+2736
-496
lines changed- src/tq_oracle
- abis
- adapters
- asset_adapters
- check_adapters
- price_adapters
- price_validators
- checks
- pipeline
- processors
- report
- tests
- adapters
- asset_adapters
- price_adapters
- price_validators
- checks
- pipeline
- processors
- report
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
47 files changed
+2736
-496
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
| 17 | + | |
| 18 | + | |
11 | 19 | | |
12 | 20 | | |
13 | 21 | | |
| |||
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
| 29 | + | |
21 | 30 | | |
22 | 31 | | |
23 | 32 | | |
| |||
40 | 49 | | |
41 | 50 | | |
42 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
43 | 61 | | |
44 | 62 | | |
45 | 63 | | |
| |||
85 | 103 | | |
86 | 104 | | |
87 | 105 | | |
88 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
89 | 112 | | |
90 | 113 | | |
91 | 114 | | |
| |||
99 | 122 | | |
100 | 123 | | |
101 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
102 | 128 | | |
103 | 129 | | |
104 | 130 | | |
| |||
108 | 134 | | |
109 | 135 | | |
110 | 136 | | |
111 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
112 | 140 | | |
113 | 141 | | |
114 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
0 commit comments