Acala Developers
Homa Predeploy Contract
You can use this predeploy contract to call homa pallet
This contracts will interact with homa pallet
function getCommissionRate() external view returns (uint256)
Get commission rate.
Name | Type | Description |
---|---|---|
_0 | uint256 | returns (commission_rate) is a FixedU128 representing a decimal. |
function getEstimatedRewardRate() external view returns (uint256)
Get estimated reward rate.
Name | Type | Description |
---|---|---|
_0 | uint256 | returns (reward_rate), value is FixedU128 with a range of [0.000000000000000000, 340282366920938463463.374607431768211455]. |
function getExchangeRate() external view returns (uint256)
Get exchange rate.
Name | Type | Description |
---|---|---|
_0 | uint256 | returns (exchange_rate), value is FixedU128 with a range of [0.000000000000000000, 340282366920938463463.374607431768211455] |
function getFastMatchFee() external view returns (uint256)
Get fast match fee rate.
Name | Type | Description |
---|---|---|
_0 | uint256 | returns (fast_match_fee) is a FixedU128 representing a decimal. |
function mint(uint256 mintAmount) external nonpayable returns (bool)
Mint liquid currency with staking currency.
It'll emit an {Minted} event.
Name | Type | Description |
---|---|---|
mintAmount | uint256 | The amount of staking currency used to mint liquid currency. |
Name | Type | Description |
---|---|---|
_0 | bool | Returns a boolean value indicating whether the operation succeeded. |
function requestRedeem(uint256 redeemAmount, bool fastMatch) external nonpayable returns (bool)
Request to redeem liquid curency for staking currency.
It'll emit an {RequestedRedeem} event.
Name | Type | Description |
---|---|---|
redeemAmount | uint256 | The amount of liquid currency to be requested redeemed into Staking currency. |
fastMatch | bool | Allow the request to be fast matched, fast match will take a fixed rate as fee. |
Name | Type | Description |
---|---|---|
_0 | bool | Returns a boolean value indicating whether the operation succeeded. |
event Minted(address indexed sender, uint256 amount)
Minted liquid currency event.
Name | Type | Description |
---|---|---|
sender indexed |
address | The sender of the transaction. |
amount | uint256 | The minted amount. |
event RequestedRedeem(address indexed sender, uint256 amount, bool fastMatch)
Requested redeem event.
Name | Type | Description |
---|---|---|
sender indexed |
address | The sender of the transaction. |
amount | uint256 | The requested amount. |
fastMatch | bool | Allow the request to be fast matched. |