PoolVoting

This contract manages KLAYswap's liquidity pool voting, pool-wide voting information, and pool voting rankings. As a reward for pool voters, 50% of pool transaction fees are distributed according to their voting stake.

Code

Github Link: (Will be updated after official launch)

Address

Events, Read-Only Functions, and State-Changing Functions

Events

AddVoting

event AddVoting(address user, address exchange, uint amount);
  • Event log of voting vKSP for pool

  • The amount can be entered in integer units

RemoveVoting

event RemoveVoting(address user, address exchange, uint amount);
  • Event log of remove voting vKSP for pool

  • The amount can be entered in integer units within the voting limit.

GiveReward

event GiveReward(address user, address exchange, address token, uint amount, uint lastIndex, uint rewardSum);
  • Event that occurs when a transaction fee reward is paid to voters

SetValidToken

event SetValidToken(address token, bool valid);
  • Event that occurs when the token level is set to B through voting

SetBoostingToken

event SetBoostingToken(address token, bool valid);
  • Event that occurs when the token level is set to A through voting or through contract owner

Last updated