You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
! Don't make quotes that would cause a swap to fail if supply/borrow caps exceeded
2
-
* Better revert messages when a swap fails due to maglev debt-limit/vault utilisation/etc
3
-
* currently it's an arithmetic underflow
1
+
* Better revert messages when a swap fails due to debt-limit/vault utilisation/etc
2
+
* currently they are errors thrown by the vaults or arithmetic underflows
4
3
5
4
6
5
TESTING
7
6
8
7
* when exchange rate in vaults != 1
9
-
* uniswap callback, flash swaps
10
-
* hitting reserve/utilisation limits
11
-
* AssetsOutOfOrderOrEqual
12
8
13
9
14
10
MISC
15
11
16
12
? A really small swap could fail because deposit() results in 0 shares, which causes EVK to revert. Call convertToShares() first? Seems like overkill...
17
-
? permit2 instead of regular approval: measure gas savings
18
13
* Improve the efficiency of on-chain quoting
19
14
* Probably necessary for supporting non-zero slippage swaps
20
-
* Use unchecked math in verify() (needs careful boundary analysis)
21
-
* Closed-form quoting solutions
15
+
* Use fInverse() Closed-form quoting solutions
22
16
* "Range hints" for the binary search
23
17
24
18
@@ -34,7 +28,3 @@ IDEAS
34
28
* Could current reserves be calculated dynamically based on balances/debts/debt limits?
35
29
* I guess you would lose a chunk of interest to arbitrage
36
30
* Donation attacks?
37
-
* What can we do to make this easily integrated with aggregators/MEV bots/etc?
38
-
* How to handle a discovery/tracking of the different Maglev instances?
39
-
? Factory? Registry? Maybe a fake factory that reads the actually installed operators from a set of addresses?
40
-
? Transparent proxy so a Maglev address can stay constant
0 commit comments