Snapshot
Qswap @ epoch 173
contractIndex 13 · effective e171 – e174
NAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAML
Procedures
10procIssueAsset#1
in 25Bout 8B
→input4 fields · 25B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetName | uint64 | 0 | 8 | |
| numberOfShares | sint64 | 8 | 8 | |
| unitOfMeasurement | uint64 | 16 | 8 | |
| numberOfDecimalPlaces | sint8 | 24 | 1 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| issuedNumberOfShares | sint64 | 0 | 8 |
procCreatePool#3
in 40Bout 1B
→input2 fields · 40B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetIssuer | id | 0 | 32 | |
| assetName | uint64 | 32 | 8 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| success | uint8 | 0 | 1 |
procAddLiqudity#4
in 64Bout 24B
→input5 fields · 64B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetIssuer | id | 0 | 32 | |
| assetName | uint64 | 32 | 8 | |
| assetAmountDesired | sint64 | 40 | 8 | |
| quAmountMin | sint64 | 48 | 8 | |
| assetAmountMin | sint64 | 56 | 8 |
←output3 fields · 24B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| userIncreaseLiqudity | sint64 | 0 | 8 | |
| quAmount | sint64 | 8 | 8 | |
| assetAmount | sint64 | 16 | 8 |
procRemoveLiqudity#5
in 64Bout 16B
→input5 fields · 64B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetIssuer | id | 0 | 32 | |
| assetName | uint64 | 32 | 8 | |
| burnLiqudity | sint64 | 40 | 8 | |
| quAmountMin | sint64 | 48 | 8 | |
| assetAmountMin | sint64 | 56 | 8 |
←output2 fields · 16B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| quAmount | sint64 | 0 | 8 | |
| assetAmount | sint64 | 8 | 8 |
procSwapExactQuForAsset#6
in 48Bout 8B
→input3 fields · 48B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetIssuer | id | 0 | 32 | |
| assetName | uint64 | 32 | 8 | |
| assetAmountOutMin | sint64 | 40 | 8 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetAmountOut | sint64 | 0 | 8 |
procSwapQuForExactAsset#7
in 48Bout 8B
→input3 fields · 48B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetIssuer | id | 0 | 32 | |
| assetName | uint64 | 32 | 8 | |
| assetAmountOut | sint64 | 40 | 8 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| quAmountIn | sint64 | 0 | 8 |
procSwapExactAssetForQu#8
in 56Bout 8B
→input4 fields · 56B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetIssuer | id | 0 | 32 | |
| assetName | uint64 | 32 | 8 | |
| assetAmountIn | sint64 | 40 | 8 | |
| quAmountOutMin | sint64 | 48 | 8 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| quAmountOut | sint64 | 0 | 8 |
procSwapAssetForExactQu#9
in 56Bout 8B
→input4 fields · 56B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetIssuer | id | 0 | 32 | |
| assetName | uint64 | 32 | 8 | |
| assetAmountInMax | sint64 | 40 | 8 | |
| quAmountOut | sint64 | 48 | 8 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetAmountIn | sint64 | 0 | 8 |
procSetTeamInfo#10
in 32Bout 1B
→input1 field · 32B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| newTeamId | id | 0 | 32 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| success | uint8 | 0 | 1 |
Functions
8funcFees#1
in 0Bout 24B
←output6 fields · 24B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetIssuanceFee | uint32 | 0 | 4 | |
| poolCreationFee | uint32 | 4 | 4 | |
| transferFee | uint32 | 8 | 4 | |
| swapFee | uint32 | 12 | 4 | |
| protocolFee | uint32 | 16 | 4 | |
| teamFee | uint32 | 20 | 4 |
funcGetPoolBasicState#2
in 40Bout 32B
→input2 fields · 40B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetIssuer | id | 0 | 32 | |
| assetName | uint64 | 32 | 8 |
←output4 fields · 32B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| poolExists | sint64 | 0 | 8 | |
| reservedQuAmount | sint64 | 8 | 8 | |
| reservedAssetAmount | sint64 | 16 | 8 | |
| totalLiqudity | sint64 | 24 | 8 |
funcGetLiqudityOf#3
in 72Bout 8B
→input3 fields · 72B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetIssuer | id | 0 | 32 | |
| assetName | uint64 | 32 | 8 | |
| account | id | 40 | 32 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| liqudity | sint64 | 0 | 8 |
funcQuoteExactQuInput#4
in 48Bout 8B
→input3 fields · 48B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetIssuer | id | 0 | 32 | |
| assetName | uint64 | 32 | 8 | |
| quAmountIn | sint64 | 40 | 8 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetAmountOut | sint64 | 0 | 8 |
funcQuoteExactQuOutput#5
in 48Bout 8B
→input3 fields · 48B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetIssuer | id | 0 | 32 | |
| assetName | uint64 | 32 | 8 | |
| quAmountOut | sint64 | 40 | 8 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetAmountIn | sint64 | 0 | 8 |
funcQuoteExactAssetInput#6
in 48Bout 8B
→input3 fields · 48B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetIssuer | id | 0 | 32 | |
| assetName | uint64 | 32 | 8 | |
| assetAmountIn | sint64 | 40 | 8 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| quAmountOut | sint64 | 0 | 8 |
funcQuoteExactAssetOutput#7
in 48Bout 8B
→input3 fields · 48B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| assetIssuer | id | 0 | 32 | |
| assetName | uint64 | 32 | 8 | |
| assetAmountOut | sint64 | 40 | 8 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| quAmountIn | sint64 | 0 | 8 |
funcTeamInfo#8
in 0Bout 36B
←output2 fields · 36B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| teamFee | uint32 | 0 | 4 | |
| teamId | id | 4 | 32 |