File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -201,10 +201,9 @@ def _take_snapshot():
201
201
# supply in circulation = controllers' debt + peg keppers' debt
202
202
circulating_supply: uint256 = staticcall self .stablecoin_lens.circulating_supply ()
203
203
204
- # obtain the supply of crvUSD contained in the vault by simply checking its
205
- # balance since it's an ERC4626 vault. This will also take into account
206
- # rewards that are not yet distributed.
207
- supply_in_vault: uint256 = staticcall stablecoin.balanceOf (vault.address )
204
+ # obtain the supply of crvUSD contained in the vault by checking its
205
+ # totalAssets. This will also not take into account rewards that are not yet distributed.
206
+ supply_in_vault: uint256 = staticcall vault.totalAssets ()
208
207
209
208
# here we intentionally reduce the precision of the ratio because the
210
209
# dynamic weight interface expects a percentage in BPS.
You can’t perform that action at this time.
0 commit comments