Governance Mining
Governance Mining: A mining mode that gives users more governance rights and rewards
Background
As one of the digital financial derivatives on SUN.io, mining provides crypto holders with stable, secure, and reliable services for subscription and redemption of investment products. Governance mining is an important part of SUN.io's mining service. As shown in the graph below, the reward distributed to users is closely related to the number of veSun tokens they hold and the weights of the liquidity pools. And users are free to redeem their assets at any time.
Explanation
After a user stakes tokens in a liquidity pool, a corresponding amount of virtual stake value will be generated:
represents the real value staked by the user. is the total value staked in a liquidity pool. is the number of veSun tokens held by the user. is the total number of veSun tokens issued by SUN.io. As shown in formula (1), if the user holds enough veSun, then the virtue stake is indicated as ; if the user holds 0 veSun, then it is indicated as * 0.4, meaning that the reward for holding veSUN can be amplified by 2.5 times.
represents the weekly gauge weight of the pool. is the weight of the pool type. is the total weight of the pool for the week and is the expansion factor of the reward token. According to the reward distribution formula (2) of Smart Mining V1, the user's rewards are calculated in the following way:
Here, V represents the final expansion factor of the reward token. represents the i-th change. represents the total virtual stake at the time to . represents the user's virtual stake value at the time to .
Contract code
Mining Pools
Old 3pool farm
Mainnet contract address:TCpu3GnK6PPZV9ama85mRP97YqRuVXdcSd
SUN-TRX farm
Mainnet contract address:TAkrcKsS5FW9f3ZfzvWy6Zvsz9uEjUxPoV
Old USDC farm
Mainnet contract address:TJ3Qnm9VhzJzhcxk49ZpHBRatD1bsD4xYq
USDT-SUN V2 farm
Mainnet contract address:TPx8BXTgiB1tiL9A9BZuz67bZBvFGYdJS8
BTT-USDT V2 farm
Mainnet contract address:TEULJy4MJeRUTMPGTTvsBkmDPM4PEsMBTw
USDT-TRX farm
Mainnet contract address:TSRhvs1R2hoNf5PuMG4nUrDa4XVBqBaKgF
USDJ-TRX farm
Mainnet contract address:TGJ8LcijTaLmzBhqtp2jWQ1DRCpCWPAmD1
TUSD-TRX farm
Mainnet contract address:TBPEX4Bu3rc8RAvv3qTBFVvSVAFNttinqe
USDC-TRX farm
Mainnet contract address:TDsuMrbQ8wHrM8cKpxFczBbaxhJwpmwRHr
WBTT-TRX farm
Mainnet contract address:TH1XkkkPa7aF1oi7xqFYuUdXR1UvTEd4Ld
BTT-TRX farm
Mainnet contract address:TVjuRFx5dUn4u386DJRJS8zxgWKKcPocXo
NFT-TRX farm
Mainnet contract address:TViH23SgGKWfX4EHB4Q7UMeo1wgvfSvyPS
WIN-TRX farm
Mainnet contract address:TBd8sxVK47adcaLZgbqvN5LTUQGEpawXnx
JST-TRX farm
Mainnet contract address:TFw58b9t55FsmFeZHjLooS3SkMYDKXZoW7
USDT-TRX V2 farm
Mainnet contract address:TUnkvMyZKt4HT2qGWaMwy35c9QTmjiMCWL
NFT-USDT V2 farm
Mainnet contract address:TSYJHJA5rDYhaiadNXDqA6Fk6sq1yqZKwT
WIN-USDT V2 farm
Mainnet contract address:TEHtYRLUTGLq4Z5Pyy5C7LYZBBVVcRuvUU
JST-USDT V2 farm
Mainnet contract address:TKAQajxhQscgakWaokd7uNeTxwBp97xhSD
USDD-USDT V2 farm
Mainnet contract address:TCkNadwxyik1D66qCGmavuneowDRXPgdkL
USDD-TRX farm
Mainnet contract address:TCpXumigVHd2iuSkotNgkSduKqksUfpcvc
3poolnew farm
Mainnet contract address:THZgwb6LTg9LydbLw6gT4YMdu9y4nA5dnp
Usdd2pool farm
Mainnet contract address:TBSRZYLZ2pguF3EqLz86Kt9hZ4eqKEQMSY
2pool farm
Mainnet contract address:TFpg63byqDwniXnyxVYpSzBfWGBwZExM9J
USDD_USDT LOCK V2 farm
Mainnet contract address:TY1mxnpL18oDP8hsSrrxNZgUMj71pcyFS8
2pool LOCK farm
Mainnet contract address:TJmn1bjmNfE2F1sw2x6P224i8sFQj5mnbg
Contract interaction
We use TronWeb to interact with contracts. One can easily interact with online contracts after initializing TronWeb instances.
Transaction execution
View Governance Rewards
Function:claimable_tokens(address)
Parameter: user's address
Deposit
Function:deposit(uint256)
Parameter:Deposit amount
Withdrawal
Function:withdraw(uint256)
Parameter:Withdrawal amount
Last updated