Native Token Handling
KAS is the native currency of the Kasplex blockchain (similar to ETH on Ethereum). Since AMM smart contracts operate exclusively with ERC-20 tokens, KAS is wrapped as WKAS (Wrapped KAS) for on-chain operations.KAS vs WKAS
WKAS Contract Addresses
How Wrapping Works
WKAS is a simple deposit/withdraw contract:- Wrap: Send KAS to the WKAS contract → receive equal WKAS
- Unwrap: Call
withdraw()on WKAS → receive equal KAS
Token Representation
In the Kroko DEX system, tokens have two address fields:When Calling APIs
Always use the WKAS address (not the zero address) when calling the Quote or Swap APIs with KAS as input or output:Sending Native KAS in Swaps
When KAS is the input token, include the amount as the transactionvalue:
value field when it detects WKAS as the input token.