sora-xor / sora2-parachain

SORA is a new economic system aimed at creating a supranational, world economic system with built-in tools for decentralized finance (DeFi). The SORA network implements a new way of parachain architecture on Polkadot and Kusama network, with the capability to bridge external blockchains (like Ethereum) to the Polkadot ecosystem.
The Unlicense
14 stars 4 forks source link

[Tech]: XCM Fee Management #119

Closed N1ghtStorm closed 11 months ago

N1ghtStorm commented 11 months ago

Problem statement

The second way is more relevant because it is easier to organize the asset rate calculation on sora side. Bit the biggest drawback of that way - is to leave parachain without transaction fees that leads to security vulnerability. Thus, parachain should have a protection from spamming with low amounts of tokens - so for each registered asset the minimum amount that can be passed through the bridge should exist.

Description

No response

Definition of Done

  1. Create a storage that keeps the information about minimum amount of assets that can be sent to it via XCM
  2. Create a code that checks for this amount and returns an error for each amount
  3. Disable fee collection for incoming XCM messages

Requirements

No response

N1ghtStorm commented 11 months ago

Sora2-common pr https://github.com/sora-xor/sora2-common/pull/50