forked from coinspect/learn-evm-attacks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrevestfinance.wsd
64 lines (46 loc) · 976 Bytes
/
revestfinance.wsd
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
@startuml
interface IERC1820Registry {
' -- inheritance --
' -- usingFor --
' -- vars --
' -- methods --
+setInterfaceImplementer()
}
interface IRevest {
' -- inheritance --
' -- usingFor --
' -- vars --
' -- methods --
+💰mintTimeLock()
+💰mintValueLock()
+💰mintAddressLock()
+withdrawFNFT()
+unlockFNFT()
+splitFNFT()
+depositAdditionalToFNFT()
+setFlatWeiFee()
+setERC20Fee()
+getFlatWeiFee()
+getERC20Fee()
}
class Exploit_RevestFinance {
' -- inheritance --
{abstract}TestHarness
' -- usingFor --
' -- vars --
#[[IUniswapV2Pair]] renaWethPair
#[[IERC1820Registry]] interfaceRegistry
#[[IRevest]] revest
#[[IERC20]] rena
#{static}[[address]] attacker
#[[uint256]] reentrancyStep
#[[uint256]] currentId
' -- methods --
+setUp()
+test_attack()
+uniswapV2Call()
+onERC1155Received()
}
' -- inheritance / usingFor --
Exploit_RevestFinance --[#DarkGoldenRod]|> TestHarness
@enduml