initializeOtc
updateOtcConfig
addOtcCollateralBalance
sellGnsForCollateral
getOtcConfig
getOtcBalance
getOtcRate
_getSlot
_getStorage
_getMultiCollatDiamond
_calculateGnsAmount
Parameters
| Name | Type | Description |
|---|---|---|
| _collateralIndex | uint8 | index of the collateral |
| _collateralAmount | uint256 | amount of collateral (collateral precision) |
| _gnsPriceCollateral | uint256 | price of GNS in collateral (1e10) |
_calculateGnsDistribution
Parameters
| Name | Type | Description |
|---|---|---|
| _gnsAmount | uint256 | amount of GNS tokens to distribute (1e18) |
_distributeTreasuryGns
Parameters
| Name | Type | Description |
|---|---|---|
| _gnsAmount | uint256 | amount of GNS tokens to distribute (1e18) |
_distributeStakingGns
Parameters
| Name | Type | Description |
|---|---|---|
| _gnsAmount | uint256 | amount of GNS tokens to distribute (1e18) |
_burnGns
Parameters
| Name | Type | Description |
|---|---|---|
| _gnsAmount | uint256 | amount of GNS tokens to burn (1e18) |
