diff --git a/cpp/contracts/adapter.cpp b/cpp/contracts/adapter.cpp index 201c8dc8..2d0b0a2c 100644 --- a/cpp/contracts/adapter.cpp +++ b/cpp/contracts/adapter.cpp @@ -199,6 +199,7 @@ void adapter::settle(const name& caller, const operation& operation, const metad auto idx_registry = _registry.get_index(); auto search_token_bytes = idx_registry.find(operation.token); check(search_token_bytes != idx_registry.end(), "underlying token does not match with adapter registry"); + check(search_token_bytes->xerc20_symbol == operation.amount.symbol, "registered xerc20 symbols differs from the operation one"); checksum256 event_id; // output pam::check_authorization(get_self(), operation, metadata, event_id);