The WHBAR contract is a key component of the SaucerSwap protocol, enabling the conversion of native HBAR into wrapped HBAR, and vice versa, thereby inheriting the HTS functionality needed to interact with smart contracts on Hedera. It is specifically designed to be called by the SaucerSwap V1 and V2 core and periphery contracts, as well as the WhbarHelper contract (described in this section). WHBAR is not intended for direct use by developers in other applications due to its specialized nature.Documentation Index
Fetch the complete documentation index at: https://docs.saucerswap.finance/llms.txt
Use this file to discover all available pages before exploring further.
WHBAR Contract Security Advisory
Direct usage of the WHBAR contract by accounts which meet the following risk conditions expose themselves to loss of funds. The vulnerability described in this notice has existed since a 2023 network update. For funds to be at risk, specific conditions must exist:- An account has an open WHBAR allowance granted outside of an atomic transaction.
- The account is be actively holding WHBAR tokens.
- No protective mechanisms (like those used by SaucerSwap orย WhbarHelper contracts) are in place.