# Treasury contract

**URL:** <https://gov.yearn.fi/t/treasury-contract/3436>\
**Category:** Finance\
**Created:** [23 August 2020 18:59 UTC](https://gov.yearn.fi/t/treasury-contract/3436 "2020-08-23T18:59:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![banteg](https://dub1.discourse-cdn.com/flex013/user_avatar/gov.yearn.fi/banteg/32/3608_2.png) [@banteg](https://gov.yearn.fi/u/banteg)\
**Post date:** [23 August 2020 18:59 UTC](https://gov.yearn.fi/t/treasury-contract/3436/1 "2020-08-23T18:59:27Z")

</div>

A basic treasury contract where fees can be redirected.

> **[yearn: Treasury Vault | Address 0x93a62da5a14c80f265dabc077fcee437b1a0efde |...](https://etherscan.io/address/0x93a62da5a14c80f265dabc077fcee437b1a0efde#code)**
>
> The Contract Address 0x93a62da5a14c80f265dabc077fcee437b1a0efde page allows users to view the source code, transactions, balances, and analytics for the contract address. Users can also interact and make transactions to the contract directly on...

Fees from all contracts will stream to `TreasuryVault` contract. Anyone can call `toVoters()` which sends the funds to the governance contract. `toVoters()` calls `notifyRewards()` which takes the rewards given and distributes it slowly over 7 days.

To get rewards you don’t have to do anything except be in the governance contract. To claim rewards you have to have voted. You can claim rewards in your “I voted” window (which is 3 days). If you are in your “I voted” window, you can’t unstake till the 3 days are over.

There is also a `convert()` feature that allows a whitelisted bot to recycle different tokens into yCRV.

To enable:

- `ygov.setRewardDistribution(treasury)`
- `controller.setRewards(treasury)`

---

<div class="post-metadata">

**Author:** ![banteg](https://dub1.discourse-cdn.com/flex013/user_avatar/gov.yearn.fi/banteg/32/3608_2.png) [@banteg](https://gov.yearn.fi/u/banteg)\
**Post date:** [24 August 2020 13:53 UTC](https://gov.yearn.fi/t/treasury-contract/3436/2 "2020-08-24T13:53:01Z")

</div>

`controller.setRewards(treasury)` executed, rewards will flow to the `TreasuryVault` from now on. [https://ethtx.info/mainnet/0x243e3a35f9bc4733c01ad2590de77a738fa00cb94620d1aac9b1e8e76ed41a2e](https://ethtx.info/mainnet/0x243e3a35f9bc4733c01ad2590de77a738fa00cb94620d1aac9b1e8e76ed41a2e)

---

<div class="post-metadata">

**Author:** ![Bitcoinpalmer](https://avatars.discourse-cdn.com/v4/letter/b/ecc23a/32.png) [@Bitcoinpalmer](https://gov.yearn.fi/u/Bitcoinpalmer)\
**Post date:** [24 August 2020 15:13 UTC](https://gov.yearn.fi/t/treasury-contract/3436/3 "2020-08-24T15:13:46Z")

</div>

amazing! my only thought was since rewards are distributed slowly over 7 days with only a 3 day vote window to claim. for now it seems theres enough to vote on where this isn’t a problem but may pose one in the future. does it have to be a 7 day drip?

---

<div class="post-metadata">

**Author:** ![Ryu](https://avatars.discourse-cdn.com/v4/letter/r/a88e4f/32.png) [@Ryu](https://gov.yearn.fi/u/Ryu)\
**Post date:** [24 August 2020 15:28 UTC](https://gov.yearn.fi/t/treasury-contract/3436/4 "2020-08-24T15:28:15Z")

</div>

Only being able to claim within a lockup period seems arbitrary. Could this be explained? My thought is that if someone wants to claim their rewards they could vote without bothering to read the YIP they’re voting on just to enable them to claim their rewards.

---

<div class="post-metadata">

**Author:** ![AmateurElectrician](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@AmateurElectrician](https://gov.yearn.fi/u/AmateurElectrician)\
**Post date:** [24 August 2020 16:06 UTC](https://gov.yearn.fi/t/treasury-contract/3436/5 "2020-08-24T16:06:10Z")

</div>

I may be wrong here but from my understanding if there is no drip period, a large yfi holder could periodically stake call the toVoters() function, suck up the rewards, and unstake while pursuing other YFI yield opportunities in between. One would only have to vote when they wanted to withdraw their accumulated rewards. Obviously, a large balance is needed for this to be gas efficient but would take rewards from people committed to staking in the governance pool for voting reasons.

---

<div class="post-metadata">

**Author:** ![cryptoyieldinfo](https://dub1.discourse-cdn.com/flex013/user_avatar/gov.yearn.fi/cryptoyieldinfo/32/363_2.png) [@cryptoyieldinfo](https://gov.yearn.fi/u/cryptoyieldinfo)\
**Post date:** [25 August 2020 02:17 UTC](https://gov.yearn.fi/t/treasury-contract/3436/6 "2020-08-25T02:17:32Z")

</div>

Any idiot’s guide on how to make this claim? Or if we do nothing will it be added to UI soon?

Had voted and claimed, but rewards don’t seem to be flowing at the expected rate.

---

<div class="post-metadata">

**Author:** ![milkyklim](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@milkyklim](https://gov.yearn.fi/u/milkyklim)\
**Post date:** [1 September 2020 14:53 UTC](https://gov.yearn.fi/t/treasury-contract/3436/7 "2020-09-01T14:53:10Z")

</div>



---

<div class="post-metadata">

**Author:** ![milkyklim](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@milkyklim](https://gov.yearn.fi/u/milkyklim)\
**Post date:** [1 September 2020 14:53 UTC](https://gov.yearn.fi/t/treasury-contract/3436/8 "2020-09-01T14:53:16Z")

</div>


