Commit 8c29047
feat: Add Horizon RWA Deployment Scripts
* feat: Add RwaAToken implementation to restrict aToken transfers (#1)
* feat: initial rwa atoken impl
* feat: rwa atoken transfer tests
* feat: more rwa atoken transfer tests
* fix: address comments
* feat: one more test
* fix: lint
* fix: address comments
* Update src/contracts/protocol/libraries/helpers/Errors.sol
Co-authored-by: dhairya <55102840+DhairyaSethi@users.noreply.github.com>
* feat: add transferOnLiquidation tests
* fix: transfer on liquidation restriction
* Update src/contracts/protocol/tokenization/RWAAToken.sol
Co-authored-by: YBM <yan.bin.man@gmail.com>
* Update src/contracts/protocol/tokenization/RWAAToken.sol
Co-authored-by: YBM <yan.bin.man@gmail.com>
* feat: address comments (forceTransfer)
* fix: return in forceTransfer
* fix: IRWAAToken docs
* feat: rwa liquidation tests
* Update tests/protocol/tokenization/RwaATokenTransfers.t.sol
Co-authored-by: YBM <yan.bin.man@gmail.com>
* Update src/contracts/interfaces/IRWAAToken.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* fix: address comments
* Update src/contracts/interfaces/IRWAAToken.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* feat: support for non-rebasing tokens
* fix: v3 tests naming
* fix: address comments
* feat: rename rwa atoken impl
* feat: compute liq calculations
* fix: add rwa atoken docs
* fix: testing setup fixes
* fix: transfer tests
* feat: block transferOnLiquidation
* fix: address comments
* fix: add comment
* Update tests/protocol/pool/Pool.Liquidations.Rwa.t.sol
Co-authored-by: YBM <yan.bin.man@gmail.com>
* Update tests/protocol/pool/Pool.Liquidations.Rwa.t.sol
Co-authored-by: YBM <yan.bin.man@gmail.com>
* fix: address comments
* fix: comment
* Update src/contracts/interfaces/IRwaAToken.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* Update src/contracts/protocol/tokenization/RwaAToken.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* Update tests/protocol/pool/Pool.Liquidations.Rwa.t.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* Update src/contracts/protocol/tokenization/RwaAToken.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* feat: address comments
* fix: existing tests
* fix: address comments
* fix: address comments
* fix: comments
* fix: comments
* fix: proxy admin assume
* feat: update gas report
---------
Co-authored-by: dhairya <55102840+DhairyaSethi@users.noreply.github.com>
Co-authored-by: YBM <yan.bin.man@gmail.com>
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* feat: Restrict supply onBehalfOf in RwaAToken
* feat: initial rwa atoken impl
* feat: rwa atoken transfer tests
* feat: more rwa atoken transfer tests
* fix: address comments
* feat: one more test
* fix: lint
* fix: address comments
* Update src/contracts/protocol/libraries/helpers/Errors.sol
Co-authored-by: dhairya <55102840+DhairyaSethi@users.noreply.github.com>
* feat: add transferOnLiquidation tests
* fix: transfer on liquidation restriction
* Update src/contracts/protocol/tokenization/RWAAToken.sol
Co-authored-by: YBM <yan.bin.man@gmail.com>
* Update src/contracts/protocol/tokenization/RWAAToken.sol
Co-authored-by: YBM <yan.bin.man@gmail.com>
* feat: address comments (forceTransfer)
* fix: return in forceTransfer
* fix: IRWAAToken docs
* feat: rwa liquidation tests
* feat: restrict supply onBehalfOf
* Update tests/protocol/tokenization/RwaATokenTransfers.t.sol
Co-authored-by: YBM <yan.bin.man@gmail.com>
* Update src/contracts/interfaces/IRWAAToken.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* fix: address comments
* Update src/contracts/interfaces/IRWAAToken.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* feat: support for non-rebasing tokens
* fix: v3 tests naming
* fix: address comments
* feat: rename rwa atoken impl
* feat: restrict supply onBehalfOf
* test: add fuzz tests
* chore: comments
* test: supplyWithPermit fail
* test: more scenarios around supplyWIthPermit
* chore: pr comments, natspec
* fix: resolve override
* fix: rename error
* feat: compute liq calculations
* fix: add rwa atoken docs
* fix: testing setup fixes
* fix: transfer tests
* feat: block transferOnLiquidation
* fix: address comments
* fix: add comment
* Update tests/protocol/pool/Pool.Liquidations.Rwa.t.sol
Co-authored-by: YBM <yan.bin.man@gmail.com>
* Update tests/protocol/pool/Pool.Liquidations.Rwa.t.sol
Co-authored-by: YBM <yan.bin.man@gmail.com>
* fix: address comments
* fix: comment
* Update src/contracts/interfaces/IRwaAToken.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* Update src/contracts/protocol/tokenization/RwaAToken.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* Update tests/protocol/pool/Pool.Liquidations.Rwa.t.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* Update src/contracts/protocol/tokenization/RwaAToken.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* feat: address comments
* fix: existing tests
* fix: address comments
* fix: address comments
* fix: comments
* fix: comments
* fix: proxy admin assume
* feat: update gas report
* chore: pr comments
* chore: address pr comments
* fix: small refactor
---------
Co-authored-by: Alexandru Niculae <43644109+avniculae@users.noreply.github.com>
Co-authored-by: dhairya <55102840+DhairyaSethi@users.noreply.github.com>
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* feat: Block RwaAToken::mintToTreasury and RwaAToken::transferUnderlyingTo (#4)
* tests: block mintToTreasury
* chore: update borrowable on existing test buidl
* refactor: approve immediately before repay
* fix: mintToTreasury test cleanup
* feat: block transferUnderlyingTo
* feat: flashloan tests for transferUnderlyingTo
* refactor: PoolRwaTests cleanup
* fix: address comments
* fix: refactor testing setup
* fix: add supply test
* Update src/contracts/interfaces/IRwaAToken.sol
---------
Co-authored-by: Alexandru Niculae <43644109+avniculae@users.noreply.github.com>
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* feat: Add RWA aToken Manager (#2)
* feat: initial rwa atoken manager impl
* feat: rwa atoken manager tests
* Update src/contracts/interfaces/IRwaATokenManager.sol
Co-authored-by: YBM <yan.bin.man@gmail.com>
* Update src/contracts/interfaces/IRwaATokenManager.sol
Co-authored-by: YBM <yan.bin.man@gmail.com>
* fi: rwa atoken manager docs
* Update tests/protocol/configuration/RwaATokenManager.t.sol
Co-authored-by: YBM <yan.bin.man@gmail.com>
* fix: address comments
* fix: comments
* fix: address comments
* fix: address comments
* feat: validate authorizedTransfer validates transfer
* fix: compiler warnings
* fix: rename transfer roles
* Update src/contracts/interfaces/IRwaATokenManager.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* Update src/contracts/interfaces/IRwaATokenManager.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* Update src/contracts/interfaces/IRwaATokenManager.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* Update src/contracts/interfaces/IRwaATokenManager.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* fix: rename transfer role
* Update src/contracts/misc/RwaATokenManager.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* Update src/contracts/interfaces/IRwaATokenManager.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* fix: comments
---------
Co-authored-by: YBM <yan.bin.man@gmail.com>
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* RWA Instance Documentation (#7)
* feat: init docs; final natspec updates
* doc: cleanup
* chore: address pr comments
* chore: pr comments
* chore: pr comments
* feat: RWA deployment scripts
* test: Add RWA Tests (#8)
* feat: move targeted rwa pool tests
* feat: rwa pool tests
* feat: rwa tokenization tests
* feat: add rwa rescueTokens tests
* feat: add rwa gas tests
* fix: gas snapshots
* fix: address comments
* feat: clean up atoken mocks
* fix: fn order
* fix: address comments
* fix: fuzz tests
* fix: comment
* fix: comments
* feat: horizon tests restructure
* fix: Fix typo
* fix: Fix typo
* Update tests/protocol/horizon/Pool.Horizon.t.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* Update tests/protocol/horizon/Pool.Horizon.t.sol
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* fix: small tests fixes
* fix: mock atoken instance cleanup
* fix: mocks cleanup
* fix: cleanup
---------
Co-authored-by: miguelmtzinf <miguelmtz.mail@gmail.com>
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
* fix: Address Certora Review comments (#12)
* fix: [I-02]
* fix: [I-03]
* fix: [I-05]
* fix: [I-06]
* fix: import file paths
* fix: [I-07]
* Update docs/Horizon/Horizon-overview.md
Co-authored-by: YBM <yan@avara.xyz>
* Update docs/Horizon/Horizon-overview.md
Co-authored-by: YBM <yan@avara.xyz>
* Update docs/Horizon/Horizon-overview.md
Co-authored-by: YBM <yan@avara.xyz>
* Update docs/Horizon/Horizon-overview.md
Co-authored-by: YBM <yan@avara.xyz>
* fix: docs
* fix: docs
---------
Co-authored-by: YBM <yan@avara.xyz>
* feat: Add Certora formal verification for RwaAToken (#18)
* Add Certora formal verification work
* fix: Fix typos
---------
Co-authored-by: Nissan Levi <124057587+nisnislevi@users.noreply.github.com>
* fix: cleanup
* feat: init updated scripts, fork tests
* feat: initial horizon deployment scripts
* fix: lint
* fix: small fixes
* feat: refactor tests
* fix: add rwaATokenManager to the MarketReport
* feat: add additional roles at deployment time
* feat: refactor horizon deployment tests
* fix: add Executor support for listings
* feat: adjust scripts (executor owned by adv multisig)
* feat: deploy price adapters
* fix: tests
* chore: update makefile
* feat: use price adapters
* chore: remove old config files
* feat: use setPoolPause
* fix: small adjustments
* feat: small test refactor
* fix: token names
* fix: comments
* fix: comments
* fix: cicd
* fix: adjust existing risk params
* feat: add JTRSY & JAAA
* fix: update to new addresses
* feat: emode collateralization tests
* fix: update to latest risk params
* fix: skip pr comments
* feat: add additional roles
* feat: atoken admin permission to rwa atoken manager
* feat: initial deposits
* fix: comments
* fix: small fix
* fix: cleanup
* fix: comments
* feat: update rwa caps
* fix: add gho to stablecoin emodes
* fix: comment
---------
Co-authored-by: dhairya <55102840+DhairyaSethi@users.noreply.github.com>
Co-authored-by: YBM <yan.bin.man@gmail.com>
Co-authored-by: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com>
Co-authored-by: YBM <yan@avara.xyz>
Co-authored-by: miguelmtzinf <miguelmtz.mail@gmail.com>
Co-authored-by: Nissan Levi <124057587+nisnislevi@users.noreply.github.com>
Co-authored-by: YBM <31329384+yan-man@users.noreply.github.com>1 parent e0762f5 commit 8c29047
File tree
32 files changed
+2224
-172
lines changed- .github/workflows
- scripts
- misc
- src
- contracts/extensions/v3-config-engine
- deployments
- contracts
- procedures
- utilities
- inputs
- interfaces
- projects/aave-v3-batched
- batches
- tests
- deployments
- helpers
- protocol/pool
- utils
32 files changed
+2224
-172
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 5 | + | |
| 6 | + | |
12 | 7 | | |
13 | | - | |
14 | 8 | | |
| 9 | + | |
15 | 10 | | |
16 | 11 | | |
17 | 12 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 13 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
40 | 21 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | | - | |
49 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
50 | 62 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
56 | 78 | | |
57 | 79 | | |
58 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
15 | | - | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
47 | 44 | | |
| 45 | + | |
48 | 46 | | |
49 | 47 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
65 | 59 | | |
66 | | - | |
| 60 | + | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| 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 | + | |
0 commit comments