feat(statics): gate Ondo tokens for Singapore trust - #9527
Conversation
CECHO-1893's follow-up note asks to gate Ondo tokens for SG trust, per CSHLD-1206 (Ondo tokens onboarded on BSC) and CSHLD-1241 (Ondo tokenized-stock tokens on ETH). Excludes CoinFeature.CUSTODY_BITGO_SINGAPORE for exactly the tokens listed in those two tickets: - ETH (105 tokens, e.g. eth:aaplon, eth:qqqon, eth:tslaon): added a new ERC20_TOKEN_FEATURES_EXCLUDE_SINGAPORE constant (matches the erc20() factory's default features + BULK_TRANSACTION, minus Singapore) since these previously passed no explicit features arg at all. - BSC (140 tokens across the ungated and gated/test sections, e.g. bsc:aaplon, bsc:tbaiontesting): swapped BSC_TOKEN_FEATURES for the existing BSC_TOKEN_FEATURES_EXCLUDE_SINGAPORE constant. - SOL (sol:shvon, sol:tshvontesting): swapped SOL_TOKEN_FEATURES for the existing SOL_TOKEN_FEATURES_EXCLUDE_SINGAPORE constant. Other pre-existing Ondo tokens not listed in either ticket are left untouched. Ticket: CECHO-1893
|
@claude review |
|
Claude finished @manojkumar138's task —— View job Code Review Complete ✅
Review SummaryThis PR successfully implements Singapore custody gating for Ondo tokens across ETH, BSC, and SOL networks as requested in CECHO-1893. The implementation is clean, consistent, and follows established patterns in the codebase. ✅ Strengths
🔍 Technical DetailsFile:
|
|
Re: the token-count note in the Claude review — verified directly with The |
Summary
CECHO-1893's follow-up note asks to gate Ondo tokens for SG trust. Excludes
CoinFeature.CUSTODY_BITGO_SINGAPOREfor exactly the tokens listed in CSHLD-1206 and CSHLD-1241:eth:aaplon,eth:qqqon,eth:tslaon): added a newERC20_TOKEN_FEATURES_EXCLUDE_SINGAPOREconstant (matches theerc20()factory's default features +BULK_TRANSACTION, minus Singapore) since these previously passed no explicitfeaturesarg at all.bsc:aaplon,bsc:tbaiontesting): swappedBSC_TOKEN_FEATURESfor the existingBSC_TOKEN_FEATURES_EXCLUDE_SINGAPOREconstant.sol:shvon,sol:tshvontesting): swappedSOL_TOKEN_FEATURESfor the existingSOL_TOKEN_FEATURES_EXCLUDE_SINGAPOREconstant.Other pre-existing Ondo tokens not listed in either ticket are left untouched (verified by cross-referencing the exact symbol/contract-address tables in both tickets against the codebase).
Ticket
CECHO-1893
Test plan
tsc --noEmit,eslint,prettier --checkall pass