storage
Module0x512f…833a
- Move path
- 0xd899…81ca::storage
- Functions
- 9255 public, 3 entry
- Structs
- 30
- Friend modules
- flash_loanlogicmanage
storage
Functions92
- public fun get_emode_info(&Storage, u64): (u256, u256, u256, bool, bool, u256, u256, u256, bool, bool, bool)
- public entry fun init_reserve<T0>(&StorageAdminCap,&pool::PoolAdminCap,&Clock,&mut Storage,u8,bool,u256,u256,u256,u256,u256,u256,u256,u256,u256,u256,u256,u256,&CoinMetadata<T0>)
Structs30
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
- BORROW_WEIGHT_KEYcopydropstore
dummy_field bool - BorrowRateFactorsstore
base_rate u256 multiplier u256 jump_rate_multiplier u256 reserve_factor u256 optimal_utilization u256 - BorrowWeightRemovedcopydrop
asset u8 - BorrowWeightSetcopydrop
asset u8 weight u64 - DESIGNATED_LIQUIDATORS_KEYcopydropstore
dummy_field bool - EMODE_KEYcopydropstore
dummy_field bool - Emodestore
emodes_pair Table<u64, EmodeConfig> user_emode_id Table<address, u64> next_emode_id u64 - EmodeAssetstore
assetId u8 isCollateral bool isDebt bool ltv u256 lt u256 liquidation_bonus u256 - EmodeConfigstore
assetA EmodeAsset assetB EmodeAsset isActive bool - EmodePairCreatedcopydrop
emode_id u64 assetA u8 assetB u8 - EmodeParamSetcopydrop
emode_id u64 asset u8 value u256 param_type String - EmodeUserStateChangedcopydrop
user address emode_id u64 is_entered bool - LiquidationFactorsstore
ratio u256 bonus u256 threshold u256 - LiquidatorSetcopydrop
liquidator address user address is_liquidatable bool - MARKET_KEYcopydropstore
dummy_field bool - MarketCreatedcopydrop
market_id u64 - MarketInfostore
market_id u64 last_market_id u64 is_main_market bool - OwnerCapstorekey
id UID - PROTECTED_LIQUIDATION_USERS_KEYcopydropstore
dummy_field bool - Pausedcopydrop
paused bool - ProtectedUserSetcopydrop
user address is_protected bool - ReserveConfigurationMapcopystore
data u256 - ReserveDatastore
id u8 oracle_id u8 coin_type String is_isolated bool supply_cap_ceiling u256 borrow_cap_ceiling u256 current_supply_rate u256 current_borrow_rate u256 current_supply_index u256 current_borrow_index u256 supply_balance TokenBalance borrow_balance TokenBalance last_update_timestamp u64 ltv u256 treasury_factor u256 treasury_balance u256 borrow_rate_factors BorrowRateFactors liquidation_factors LiquidationFactors reserve_field_a u256 reserve_field_b u256 reserve_field_c u256 - Storagestorekey
id UID version u64 paused bool reserves Table<u8, ReserveData> reserves_count u8 users vector<address> user_info Table<address, UserInfo> - StorageAdminCapstorekey
id UID - StorageConfiguratorSettingcopydrop
sender address configurator address value bool - TokenBalancestore
user_state Table<address, u256> total_supply u256 - UserConfigurationMapcopystore
data u256 - UserInfostore
collaterals vector<u8> loans vector<u8> - WithdrawTreasuryEventcopydrop
sender address recipient address asset u8 amount u256 poolId address before u256 after u256 index u256
Constants13
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Index | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | "supply_cap_ceiling" // interpreted as UTF8 string | vector<u8> | Value | set_supply_cap |
| 1 | "borrow_cap_ceiling" // interpreted as UTF8 string | vector<u8> | Value | set_borrow_cap |
| 2 | "ltv" // interpreted as UTF8 string | vector<u8> | Value | set_ltvset_emode_asset_ltv |
| 3 | "treasury_factor" // interpreted as UTF8 string | vector<u8> | Value | set_treasury_factor |
| 4 | "base_rate" // interpreted as UTF8 string | vector<u8> | Value | set_base_rate |
| 5 | "multiplier" // interpreted as UTF8 string | vector<u8> | Value | set_multiplier |
| 6 | "jump_rate_multiplier" // interpreted as UTF8 string | vector<u8> | Value | set_jump_rate_multiplier |
| 7 | "reserve_factor" // interpreted as UTF8 string | vector<u8> | Value | set_reserve_factor |
| 8 | "optimal_utilization" // interpreted as UTF8 string | vector<u8> | Value | set_optimal_utilization |
| 9 | "liquidation_ratio" // interpreted as UTF8 string | vector<u8> | Value | set_liquidation_ratio |
| 10 | "liquidation_bonus" // interpreted as UTF8 string | vector<u8> | Value | set_liquidation_bonusset_emode_asset_liquidation_bonus |
| 11 | "liquidation_threshold" // interpreted as UTF8 string | vector<u8> | Value | set_liquidation_threshold |
| 12 | "lt" // interpreted as UTF8 string | vector<u8> | Value | set_emode_asset_lt |