Skip to content
Snippets Groups Projects
Unverified Commit be2404cc authored by Liam Aharon's avatar Liam Aharon Committed by GitHub
Browse files

Implement `pallet-asset-rewards` (#3926)


Closes #3149 

## Description

This PR introduces `pallet-asset-rewards`, which allows accounts to be
rewarded for freezing `fungible` tokens. The motivation for creating
this pallet is to allow incentivising LPs.

See the pallet docs for more info about the pallet.

## Runtime changes

The pallet has been added to
- `asset-hub-rococo`
- `asset-hub-westend`

The `NativeAndAssets` `fungibles` Union did not contain `PoolAssets`, so
it has been renamed `NativeAndNonPoolAssets`

A new `fungibles` Union `NativeAndAllAssets` was created to encompass
all assets and the native token.

## TODO
- [x] Emulation tests
- [x] Fill in Freeze logic (blocked
https://github.com/paritytech/polkadot-sdk/issues/3342) and re-run
benchmarks

---------

Co-authored-by: command-bot <>
Co-authored-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: default avatarmuharem <ismailov.m.h@gmail.com>
Co-authored-by: default avatarGuillaume Thiolliere <gui.thiolliere@gmail.com>
parent 412aca6c
Pipeline #512082 waiting for manual action with stages
in 1 hour, 12 minutes, and 28 seconds
Showing
with 765 additions and 34 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment