KlpManager
Mantle0x3c4de8fb37055500bb3d18eae8dd0dfff527090e
Solidity v0.6.12+commit.27d51765
🤖
Query this contract from your AI
Reference:
0x3c4de8fb37055500bb3d18eae8dd0dfff527090e
Sample prompt:
"Tell me the current state of mantle/0x3c4de8fb37055500bb3d18eae8dd0dfff527090e"
No AI wired up yet? →
mcp.smarts.md
Mantle is a docs-only chain on Smarts: source code and ABI are indexed, but live on-chain data (state, recent events, admin profile) is not currently available. AI agents can still query get_contract_info and get_contract_source via MCP.
Overview
Read Functions
23
Write Functions
11
Events
2
Read Functions
BASIS_POINTS_DIVISOR()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
KLP_PRECISION()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
MAX_COOLDOWN_DURATION()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
PRICE_PRECISION()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
USDG_DECIMALS()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
aumAddition()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
aumDeduction()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
cooldownDuration()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
getAum(maximise: bool)
view
Parameters
| Name | Type | Description |
|---|---|---|
| maximise | bool |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
getAumInUsdg(maximise: bool)
view
Parameters
| Name | Type | Description |
|---|---|---|
| maximise | bool |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
getAums()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256[] |
getGlobalShortAveragePrice(_token: address)
view
Parameters
| Name | Type | Description |
|---|---|---|
| _token | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
getGlobalShortDelta(_token: address, _price: uint256, _size: uint256)
view
Parameters
| Name | Type | Description |
|---|---|---|
| _token | address | |
| _price | uint256 | |
| _size | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | |
| — | bool |
getPrice(_maximise: bool)
view
Parameters
| Name | Type | Description |
|---|---|---|
| _maximise | bool |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
gov()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
inPrivateMode()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
isHandler(address)
view
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
klp()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
lastAddedAt(address)
view
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
shortsTracker()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
shortsTrackerAveragePriceWeight()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
usdg()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
vault()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Write Functions
addLiquidity(_token: address, _amount: uint256, _minUsdg: uint256, _minKlp: uint256)
nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| _token | address | |
| _amount | uint256 | |
| _minUsdg | uint256 | |
| _minKlp | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
addLiquidityForAccount(_fundingAccount: address, _account: address, _token: address, _amount: uint256, _minUsdg: uint256, _minKlp: uint256)
nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| _fundingAccount | address | |
| _account | address | |
| _token | address | |
| _amount | uint256 | |
| _minUsdg | uint256 | |
| _minKlp | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
removeLiquidity(_tokenOut: address, _klpAmount: uint256, _minOut: uint256, _receiver: address)
nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| _tokenOut | address | |
| _klpAmount | uint256 | |
| _minOut | uint256 | |
| _receiver | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
removeLiquidityForAccount(_account: address, _tokenOut: address, _klpAmount: uint256, _minOut: uint256, _receiver: address)
nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| _account | address | |
| _tokenOut | address | |
| _klpAmount | uint256 | |
| _minOut | uint256 | |
| _receiver | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
setAumAdjustment(_aumAddition: uint256, _aumDeduction: uint256)
nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| _aumAddition | uint256 | |
| _aumDeduction | uint256 |
setCooldownDuration(_cooldownDuration: uint256)
nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| _cooldownDuration | uint256 |
setGov(_gov: address)
nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| _gov | address |
setHandler(_handler: address, _isActive: bool)
nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| _handler | address | |
| _isActive | bool |
setInPrivateMode(_inPrivateMode: bool)
nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| _inPrivateMode | bool |
setShortsTracker(_shortsTracker: address)
nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| _shortsTracker | address |
setShortsTrackerAveragePriceWeight(_shortsTrackerAveragePriceWeight: uint256)
nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| _shortsTrackerAveragePriceWeight | uint256 |
Events
AddLiquidity(account: address, token: address, amount: uint256, aumInUsdg: uint256, klpSupply: uint256, usdgAmount: uint256, mintAmount: uint256)
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | ||
| token | address | ||
| amount | uint256 | ||
| aumInUsdg | uint256 | ||
| klpSupply | uint256 | ||
| usdgAmount | uint256 | ||
| mintAmount | uint256 |
RemoveLiquidity(account: address, token: address, klpAmount: uint256, aumInUsdg: uint256, klpSupply: uint256, usdgAmount: uint256, amountOut: uint256)
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | ||
| token | address | ||
| klpAmount | uint256 | ||
| aumInUsdg | uint256 | ||
| klpSupply | uint256 | ||
| usdgAmount | uint256 | ||
| amountOut | uint256 |