# \[CODE v1.1.0\] Optional Feature # 3 - Burn Tax Split to Community Pool

**URL:** <https://classic-agora.terra.money/t/code-v1-1-0-optional-feature-3-burn-tax-split-to-community-pool/50204>\
**Category:** Technical Development\
**Created:** [February 17, 2023, 4:57am UTC](https://classic-agora.terra.money/t/code-v1-1-0-optional-feature-3-burn-tax-split-to-community-pool/50204 "2023-02-17T04:57:22Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ek826](https://sea2.discourse-cdn.com/terra/user_avatar/classic-agora.terra.money/ek826/32/6403_2.png) [@ek826](https://classic-agora.terra.money/u/ek826)\
**Post date:** [February 17, 2023, 4:57am UTC](https://classic-agora.terra.money/t/code-v1-1-0-optional-feature-3-burn-tax-split-to-community-pool/50204/1 "2023-02-17T04:57:22Z")

</div>

**Introduction**

Given the status of the signaling proposals, we would like to begin the discussion around the software features to be included in the next release (v1.1.0). This discussion is around the implementation of **Optional Feature # 3 - Burn Tax Split to Community Pool.**

Previously, the community utilized the seigniorage RewardWeight parameter to remint a portion of the burned supply to the community pool. This was confusing to many people in the community. This code explains the creation of a new parameter that does not utilize the seigniorage remint policy, but has an independent ability to directly send a percentage of the on-chain tax to the community pool. The initialization of this parameter will be 10% community pool, 90% burn as noted in governance proposal #11111, which was the consensus before the Binance requests to turn off seigniorage (and are being alternatively handled by feature #2).

**Technical Code Description**

Please see the following for the code that will be included for this feature.

> <https://github.com/classic-terra/core/commit/f1c1b2aabafa8620fd6581b71ce953d16cb7676c>
>
> \* add burn tax split logic
> \* add unit test for split tax ante

> <https://github.com/classic-terra/core/commit/1a46cddccc51f47856b5f5414e6a7079d3518317>

**Test Results**

**Test Split Tax:**

> <https://github.com/classic-terra/core/blob/main/custom/auth/ante/burntax_test.go#L19>

- Tests several burn tax split rates called %split\_rate
- Tax deducted from user to FeeCollector (first check to see if FeeDecorator has the correct tax amount)
- Check the transaction to BurnTaxFeeDecorator
- Check if Community Pool has the amount of tax\*%split\_rate
- Check if Total Supply has less amount of tax\*(1-%split\_rate) than that in the beginning (since tax\*(1-%split\_rate) is burned)
- Check if FeeCollector has zero amount (since 100% tax is sent to Community pool and Burn)

**Burn Tax Split Governance Test**

> <https://github.com/classic-terra/core/pull/126>
>
> \## Summary of changes
> 
> Add a script to check if burn tax split can be set in g…ov
> 
> \## Report of required housekeeping
> 
> \- \[\] Github issue OR spec proposal link
> \- \[\] Wrote tests
> \- \[\] Updated API documentation (client/lcd/swagger-ui/swagger.yaml)
> \- \[\] Added a relevant changelog entry: clog add \[section\] \[stanza\] \[message\]
> 
> \----
> 
> \## (FOR ADMIN) Before merging
> 
> \- \[\] Added appropriate labels to PR
> \- \[\] Squashed all commits, uses message "Merge pull request #XYZ: \[title\]" (coding standards)
> \- \[\] Confirm added tests are consistent with the intended behavior of changes
> \- \[\] Ensure all tests pass

- Setup a node
- Submit a param gov to change BurnTaxSplit
- Output BurnTaxSplit before and after gov vote

Upgrade Check: [core/upgrade-test.sh at main · classic-terra/core · GitHub](https://github.com/classic-terra/core/blob/main/scripts/upgrade-test.sh)

Ensure that state migration in x/treasury module works

**Governance Parameters**

This is a parameter change proposal that can be controlled in the following way,

```auto
{
“subspace”: “treasury”,
“key”: “BurnTaxSplit”,
“value”: “0.50000000000”
}

```

---

_[View the full topic](https://classic-agora.terra.money/t/code-v1-1-0-optional-feature-3-burn-tax-split-to-community-pool/50204)._
