MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / PersistNativeAsset

Function PersistNativeAsset

src/main.cpp:749–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

747}
748
749static bool PersistNativeAsset(CCacheWrapper& cw) {
750 CAsset wicc(SYMB::WICC, SYMB::WICC, AssetType::NIA, kWiccPerms, CRegID(), INITIAL_BASE_COIN_AMOUNT * COIN, false);
751 CAsset wusd(SYMB::WUSD, SYMB::WUSD, AssetType::MPA, kWusdPerms, CRegID(), 0, true);
752 CAsset wgrt(SYMB::WGRT, SYMB::WGRT, AssetType::NIA, kWgrtPerms, CRegID(), FUND_COIN_GENESIS_TOTAL_RELEASE_AMOUNT * COIN, true);
753
754 return cw.assetCache.SetAsset(wicc) &&
755 cw.assetCache.SetAsset(wusd) &&
756 cw.assetCache.SetAsset(wgrt);
757}
758
759static bool PersistDefaultFeedCoinPairs(CCacheWrapper& cw) {
760

Callers 1

ProcessGenesisBlockFunction · 0.85

Calls 2

SetAssetMethod · 0.80
CRegIDClass · 0.50

Tested by

no test coverage detected