Contract Interfaces and ABI
Last updated
Last updated
Below is the HyperFlash ABI used to query the on-chain state and make transactions.
The contract has been deployed to the following addresses:
HyperEVM Testnet
--
HyperEVM Mainnet
0x34a70Db6c0E3d5f93d7026fa6dCd6e11adFd56C5
Once our second audit concludes, the contracts will be verified on HyperEVM explorers.
Developers can interact with HyperFlash at the smart contract level with an ABI. We detail the relevant functions here:
Use this function to stake HYPE and get back flashHYPE, using msg.value to send HYPE.
Use this function to unstake HYPE by burning flashHYPE. If the smart contract has enough in reserve, then the HYPE is returned to the user immediately. Otherwise the user enters a queue to unstake. A 0.1% unstaking fee is charged on the HYPE.
Returns the current exchange rate between flashHYPE and HYPE. In particular, it is defined the ratio of the totalHYPE owned by the contract divided by the totalFlashHYPE in existence. There are 18 decimals to this quantity.
We provide two other helpers function to disambiguate the conversion:
This allows for a simple conversion between the two quantities. The unstake fee is not accounted for in these calculations.
The staking contract doubles as an ERC20, which supports balanceOf and other operations. The number of decimals of flashHYPE is 18.