Skip to content

Commit 59753d6

Browse files
authored
Do not allow USDC as ticker in request-loan (#3804)
1 parent 6b79190 commit 59753d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tee-worker/omni-executor/rpc-server/src/methods/omni/request_loan_test.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,10 @@ fn precheck_params(params: &RequestLoanTestParams) -> RpcResult<(AccountId, Stri
306306
return Err(DetailedError::parse_error("Empty collateral_ticker").to_rpc_error());
307307
}
308308

309+
if params.collateral_ticker.to_uppercase() == "USDC" {
310+
return Err(DetailedError::parse_error("Expect non-USDC collateral_ticker").to_rpc_error());
311+
}
312+
309313
if params.collateral_size.is_empty() {
310314
return Err(DetailedError::parse_error("Empty collateral_size").to_rpc_error());
311315
}

0 commit comments

Comments
 (0)