Skip to content

Commit

Permalink
whitelist false for permissionless
Browse files Browse the repository at this point in the history
  • Loading branch information
tonylee08 committed Jan 30, 2025
1 parent e0b949e commit d594829
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions packages/deepbook/sources/pool.move
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,8 @@ public fun create_permissionless_pool<BaseAsset, QuoteAsset>(
);
let base_type = type_name::get<BaseAsset>();
let quote_type = type_name::get<QuoteAsset>();
let deep_type = type_name::get<DEEP>();
let whitelisted_pool = base_type == deep_type || quote_type == deep_type;
let whitelisted_pool = false;
let stable_pool =
!whitelisted_pool &&
registry.is_stablecoin(base_type) && registry.is_stablecoin(quote_type);

create_pool<BaseAsset, QuoteAsset>(
Expand Down
2 changes: 1 addition & 1 deletion packages/deepbook/tests/pool_tests.move
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ fun test_permissionless_pools() {
registry_id,
&mut test,
);
check_pool_attributes<DEEP, USDC>(pool_id_3, true, false, &mut test);
check_pool_attributes<DEEP, USDC>(pool_id_3, false, false, &mut test);

end(test);
}
Expand Down

0 comments on commit d594829

Please sign in to comment.