Referendum to reset execution cost of XCM assets

Hi Mantalorians,

The next referendum up for vote is to reset the execution cost of XCM messages for our newly registered assets. Due to a miscalculation of the units_per_second value for each asset, we set the execution cost of XCM transfers too high. The error came about from converting the fees amount to KMA, when the calculation was supposed to be done in USD:

fees = units_per_second * (4000000000 as u128) / (1000000000000 as u128)

This value will be subtracted form the amount of assets that are being transferred, in order to pay for the execution of the transfer. Our choice for target fees cost is $0.1 , therefore the units_per_second , using an average USD exchange for each asset (over the last several months), comes out to:

KAR:

($0.1 / (KAR_EXCHANGE($1.0)) * KAR_DECIMALS(1000000000000) = units_per_second * 4000000000 / 1000000000000

units_per_second = 25,000,000,000,000
AUSD:

($0.1 / (AUSD_EXCHANGE($1.0)) * AUSD_DECIMALS(1000000000000) = units_per_second * 4000000000 / 1000000000000

units_per_second = 25,000,000,000,000
LKSM:

($0.1 / (LKSM_EXCHANGE($13.00)) * LKSM_DECIMALS(1000000000000) = units_per_second * 4000000000 / 1000000000000

units_per_second = 1,923,076,923,076.9230769230769230769
MOVR:    

($0.1 / (MOVR_EXCHANGE($50.0)) * MOVR_DECIMALS(1000000000000000000) = units_per_second * 4000000000 / 1000000000000

units_per_second = 500,000,000,000,000,000
KSM:

($0.1 / (KSM_EXCHANGE($150.0)) * KSM_DECIMALS(1000000000000) = units_per_second * 4000000000 / 1000000000000

units_per_second = 166,666,666,666.66666666666666666667

Note that depending on the market price changes, the exchange values used in our calculation will change over time. Therefore if the fees vary too much from our $0.1 target, new governance motions will be put forward to reset the units_per_second value.

Thank you for your time and votes!

1 Like