Polkassembly Logo

Create Pencil IconCreate
OpenGov

Notice: Polkadot has migrated to AssetHub. Balances, data, referenda, and other on-chain activity has moved to AssetHub.Learn more

View All Whitelisted Caller

Set DOT Asset Rates for USDT and USDC

inWhitelisted Caller
8 hours ago
Deciding

Sets DOT asset rates for USDT and USDC. The asset rates were not mapped during the migration and therefore need to be redefined. Since the asset IDs (XCM locations) were not re-anchored, they cannot be used correctly in their current form. Whitelisted by 432.

Context

Asset rates are used to verify the maximum spend amount allowed for each Governance track.
Every track has a maximum permitted spend defined in DOT terms, and the asset rates define the conversion of a given asset relative to them.

This batch includes calls to remove the unmapped asset rates and re-add them using the corrected asset IDs while preserving the same rate values.

Each rate is represented as a Fixed-Point 128-bit unsigned integer, using a divisor of 10¹⁸.
Internally, the type is a wrapper around u128 and decodes accordingly.

Concrete Value

The constant value of 1,000,000,000,000,000,000,000 in the call is the same as before and calculated as:

  • DOT denomination: 1e10
  • USDC (asset 1337) and USDT (asset 1984) denomination: 1e6
  • Precision of the FixedU128 type that stores the value: 1e18

To calculate the ration for 10$ per DOT:
USDC per DOT = 1e10/((1e6*1,000,000,000,000,000,000,000)/1e18) = 10

Comments (0)

PleaseLogin to comment

Voting Period

Decision Period

0 / 28 days

Confirmation Period

0 / 10 minutes

Summary

0%

Aye

AyeNay

0%

Nay

Aye (2)0.0 DOT

Support0.0 DOT

Nay (0)0.0 DOT

Help Center

Report an Issue
Feedback
Terms and Conditions
Github

Our Services

Docs
Terms of Website
Privacy Policy

A House of Commons Initiative.

Polka Labs Private Limited 2025

All rights reserved.

Terms and ConditionsTerms of Website
Privacy Policy