Skip to content
Snippets Groups Projects
  • Liam Aharon's avatar
    Implement `pallet-asset-rewards` (#3926) · be2404cc
    Liam Aharon authored
    
    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>
    Unverified
    be2404cc
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
This project manages its dependencies using Cargo. Learn more