Skip to content

Commit ba35249

Browse files
committed
mod: add sui origin chain
1 parent fec5e0c commit ba35249

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

internal/middleware/plugins/http_proxy.go

+8-4
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,16 @@ func (m *HttpProxyMiddleware) OnProcess(session *rpc.Session) error {
123123

124124
// add custom request headers
125125
reqUrl := string(ctx.RequestURI())
126-
if strings.Contains(reqUrl, "coin98.com") {
127-
// bypass coin98 check origin headers
126+
if strings.Contains(reqUrl, "coin98.com") { // SOL
128127
ctx.Request.Header.Set("origin", "https://dex.saros.xyz")
129-
} else if strings.Contains(reqUrl, "dexlab.space") {
130-
// bypass dexlab check origin headers
128+
} else if strings.Contains(reqUrl, "dexlab.space") { // SOL
131129
ctx.Request.Header.Set("origin", "https://www.dexlab.space")
130+
} else if strings.Contains(reqUrl, "api.shinami.com/node/v1/sui_mainnet_37685fe6a4ea7736d445816cb59b89e6") { // SUI
131+
ctx.Request.Header.Set("origin", "https://www.app.kriya.finance")
132+
} else if strings.Contains(reqUrl, "api.shinami.com/node/v1/sui_mainnet_bb70bc6a7d6d04694c4c719f0b6f27aa") { // SUI
133+
ctx.Request.Header.Set("origin", "https://app.turbos.finance")
134+
} else if strings.Contains(reqUrl, "enterprise.onerpc.com/sui?apikey=cf0b901f-7b0e-460b-a0cf-4c2f784c366d") { // SUI
135+
ctx.Request.Header.Set("origin", "https://app.naviprotocol.io")
132136
} else {
133137
// TODO: add logic to add custom headers
134138
}

0 commit comments

Comments
 (0)