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

GASP-1625 Feature/locked tokens #841

Merged
merged 10 commits into from
Nov 29, 2024
Merged

Conversation

vanderian
Copy link
Contributor

adds checks for non transferable tokens

--features=unlocked removes such restrictions

runtime cofing defines the native currency - 0 as non transferable token

tokens all transfer calls, set_balance, mint extrinsics are checked
market create, mint, burn are checked
market swaps are allowed

foundation members have veto over:
market create_pool & burn

Comment on lines 51 to 55
#[cfg(any(feature = "unlocked", feature = "runtime-benchmarks"))]
pub type NontransferableTokens = Nothing;
#[cfg(not(feature = "unlocked"))]
pub type NontransferableTokens = Equals<ConstU32<RX_TOKEN_ID>>;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all allowed for eg testnet
otherwise just native token '0'

pallets/market/src/lib.rs Show resolved Hide resolved
pallets/market/src/lib.rs Show resolved Hide resolved
An error occurred while trying to automatically change base from feature/stable-pool-mgx-1307 to eth-rollup-develop November 26, 2024 22:41
An error occurred while trying to automatically change base from feature/stable-pool-mgx-1307 to eth-rollup-develop November 26, 2024 22:41
An error occurred while trying to automatically change base from feature/stable-pool-mgx-1307 to eth-rollup-develop November 26, 2024 22:41
An error occurred while trying to automatically change base from feature/stable-pool-mgx-1307 to eth-rollup-develop November 26, 2024 22:41
An error occurred while trying to automatically change base from feature/stable-pool-mgx-1307 to eth-rollup-develop November 27, 2024 08:58
@vanderian vanderian force-pushed the feature/locked-tokens branch from 70d49a9 to 6520855 Compare November 28, 2024 14:13
@vanderian vanderian changed the base branch from feature/stable-pool-mgx-1307 to eth-rollup-develop November 28, 2024 14:14
@vanderian vanderian merged commit 07f2897 into eth-rollup-develop Nov 29, 2024
2 checks passed
@vanderian vanderian deleted the feature/locked-tokens branch November 29, 2024 09:12
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.

2 participants