Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions jetton_verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ var hardcodedBlacklistedSymbols = []string{
"$usdt",
"usdt$",
"$usdt$",
"usdc",
"$usdc",
"usdc$",
"$usdc$",
}

// allowedRanges specifies what unicode characters are safe to be used in jetton symbols.
Expand Down
11 changes: 11 additions & 0 deletions jetton_verifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ func TestJettonVerifier_IsSimilarToWellKnownSymbol(t *testing.T) {
symbol: "jU⁣SDT",
wantBlacklisted: true,
},
{
name: "fake usdc",
symbol: "USĐC",
wantBlacklisted: true,
},
{
name: "similar to TON, first letter is cyrillic",
symbol: "ТОN",
Expand All @@ -102,6 +107,12 @@ func TestJettonVerifier_IsSimilarToWellKnownSymbol(t *testing.T) {
symbol: "jUSDТ",
wantBlacklisted: true,
},
{
name: "original jUSDC",
symbol: "jUSDC",
address: ton.MustParseAccountID("0:7e30fc2b7751ba58a3642f3fd59d5e96a810ddd78d8a310bfe8353bef10500df"),
wantBlacklisted: false,
},
{
name: "original jUSDT",
symbol: "jUSDT",
Expand Down
1 change: 1 addition & 0 deletions spam.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ var mappingRunes = map[rune]rune{

'౸': 'Q', // telugu
'౦': 'O', // telugu
0x110: 'D', // Đ latin
0x400: 'E', // Ѐ cyrillic
0x401: 'E', // Ё cyrillic
0x405: 'S', // Ѕ cyrillic
Expand Down