Skip to content

Commit 409834f

Browse files
committed
feat: add technical doc for NativeTokenGateway
1 parent 38f9af3 commit 409834f

File tree

5 files changed

+2307
-3124
lines changed

5 files changed

+2307
-3124
lines changed

technical-reference/reference-isolated-pools/comptroller/comptroller-storage.md

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Oracle which gives the price of any given asset
6262
contract ResilientOracleInterface oracle
6363
```
6464

65-
---
65+
- - -
6666

6767
### closeFactorMantissa
6868

@@ -72,7 +72,7 @@ Multiplier used to calculate the maximum repayAmount when liquidating a borrow
7272
uint256 closeFactorMantissa
7373
```
7474

75-
---
75+
- - -
7676

7777
### liquidationIncentiveMantissa
7878

@@ -82,7 +82,7 @@ Multiplier representing the discount on collateral that a liquidator receives
8282
uint256 liquidationIncentiveMantissa
8383
```
8484

85-
---
85+
- - -
8686

8787
### accountAssets
8888

@@ -92,7 +92,7 @@ Per-account mapping of "assets you are in"
9292
mapping(address => contract VToken[]) accountAssets
9393
```
9494

95-
---
95+
- - -
9696

9797
### markets
9898

@@ -102,7 +102,7 @@ Official mapping of vTokens -> Market metadata
102102
mapping(address => struct ComptrollerStorage.Market) markets
103103
```
104104

105-
---
105+
- - -
106106

107107
### allMarkets
108108

@@ -112,7 +112,7 @@ A list of all markets
112112
contract VToken[] allMarkets
113113
```
114114

115-
---
115+
- - -
116116

117117
### borrowCaps
118118

@@ -122,7 +122,7 @@ Borrow caps enforced by borrowAllowed for each vToken address. Defaults to zero
122122
mapping(address => uint256) borrowCaps
123123
```
124124

125-
---
125+
- - -
126126

127127
### minLiquidatableCollateral
128128

@@ -132,7 +132,7 @@ Minimal collateral required for regular (non-batch) liquidations
132132
uint256 minLiquidatableCollateral
133133
```
134134

135-
---
135+
- - -
136136

137137
### supplyCaps
138138

@@ -142,7 +142,7 @@ Supply caps enforced by mintAllowed for each vToken address. Defaults to zero wh
142142
mapping(address => uint256) supplyCaps
143143
```
144144

145-
---
145+
- - -
146146

147147
### isForcedLiquidationEnabled
148148

@@ -152,4 +152,25 @@ Flag indicating whether forced liquidation enabled for a market
152152
mapping(address => bool) isForcedLiquidationEnabled
153153
```
154154

155-
---
155+
- - -
156+
157+
### prime
158+
159+
Prime token address
160+
161+
```solidity
162+
contract IPrime prime
163+
```
164+
165+
- - -
166+
167+
### approvedDelegates
168+
169+
Whether the delegate is allowed to borrow or redeem on behalf of the user
170+
171+
```solidity
172+
mapping(address => mapping(address => bool)) approvedDelegates
173+
```
174+
175+
- - -
176+

0 commit comments

Comments
 (0)