Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor weight trader #2178

Merged
merged 9 commits into from
Jun 14, 2022
Merged

refactor weight trader #2178

merged 9 commits into from
Jun 14, 2022

Conversation

zqhxuyuan
Copy link
Contributor

@zqhxuyuan zqhxuyuan commented Jun 2, 2022

  • move FixedRateOfAssetRegistry to runtime/common.
    • rename to FixedRateOfAsset as it's not related to asset-registry anymore
  • remove TransactionFeePoolTrader and implements BuyWeightRateOfTransactionFeePool
  • replace ForeignAssetUnitsPerSecond with BaseRate
  • move other common xcm related fn to xcm_impl.rs

@zqhxuyuan zqhxuyuan marked this pull request as ready for review June 7, 2022 05:08
@zqhxuyuan zqhxuyuan requested review from xlc, zjb0807 and shaunxw June 7, 2022 05:08
modules/transaction-payment/src/lib.rs Outdated Show resolved Hide resolved
modules/transaction-payment/src/lib.rs Show resolved Hide resolved
runtime/common/src/xcm_impl.rs Outdated Show resolved Hide resolved
runtime/common/src/xcm_impl.rs Outdated Show resolved Hide resolved
runtime/acala/src/xcm_config.rs Outdated Show resolved Hide resolved
@zqhxuyuan zqhxuyuan merged commit 8d2a46f into master Jun 14, 2022
@zqhxuyuan zqhxuyuan deleted the refactor_trader branch June 14, 2022 10:06
syan095 pushed a commit that referenced this pull request Jun 16, 2022
…a into fee_distribution

* 'fee_distribution' of ssh://github.com/AcalaNetwork/Acala: (31 commits)
  update polkadot-v0.9.23 (#2183)
  make sure acala precompiles are called only from other contracts (#2202)
  remove AccountId from XcmFeeToTreasury
  Acala XcmFeeToTreasury
  fix precompile array encode & other improvements (#2196)
  move HomaTreasuryPalletId to common
  update loan proxy type (#2200)
  Add bifrost (#2199)
  fix benchmark
  build_pool_percents helper method
  benchmark
  update to v0.9.22
  refactor weight trader (#2178)
  fix with_fee_currency (#2194)
  Support arm64 (#2107)
  add Homa to ProxyType (#2191)
  disable with_fee_paid_by (#2187)
  Convert rebase token amount when calculate swap amount for StableAsset (#2169)
  2.7.0 (#2186)
  fix origin of erc20 xtokens transfer (#2180)
  ...

# Conflicts:
#	modules/cdp-engine/src/lib.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants