# TreasuryBridge Smart Contract

<figure><img src="/files/4yZUERR0K5lTcx0VOkyt" alt=""><figcaption></figcaption></figure>

## Community Treasury Allocation

The Community Treasury was initially allocated 5.0% of the token supply, with 766,703 ethDYDX vesting in the treasury each epoch. However, as a result of several governance proposals, this allocation gradually increased to 26.1% over time.

In [DIP 29](https://dydx.community/dashboard/proposal/16), the dYdX community voted to reduce Trading & Liquidity Provider Rewards on dYdX v3 by 1/3 for Epoch 30-31. After Epoch 31, there are no Trading & Liquidity Provider Rewards on dYdX v3.&#x20;

On November 18, 2023, the dYdX community [voted](https://dydx.community/dashboard/proposal/16) to bridge the ethDYDX balance accrued in the Community Treasury from Ethereum to dYdX Chain. Once bridged, the DYDX can be used by the dYdX community with a governance vote on dYdX Chain.

More information about the dYdX Chain Community Treasury is available [here](https://docs.dydx.community/dydx/modules/community-treasury).

## **TreasuryBridge Contract**

Since the [`TreasuryVester Smart Contract`](https://github.com/dydxfoundation/governance-contracts/blob/master/contracts/treasury/TreasuryVester.sol) is immutable, an updated [`Treasury Smart Contract`](https://github.com/dydxfoundation/governance-contracts/blob/master/contracts/treasury/Treasury.sol), `TreasuryBridge Smart Contract` was developed. The `TreasuryBridge Smart Contract,` was deployed for each of the community treasury and rewards treasury. The `TreasuryBridge Smart Contract`:

* **One time**: rejects new vesting from the `TreasuryVester Smart Contract` by calling the `setRecipient` function on this contract to set the recipient to a burn address, and
* **Ongoing Basis**: allows governance to bridge any amount of existing tokens in the community treasury or the rewards treasury (the current `Treasury Smart Contract` only allows `transfer()` and `approve()`).

Note, the `TreasuryBridge smart contract` is similar to the current corresponding `Treasury Smart Contract` except for the two differences referenced above.&#x20;

## Resources

* [Github TreasuryBridge Smart Contract](https://github.com/dydxfoundation/governance-contracts/blob/master/contracts/treasury/TreasuryBridge.sol)
* [Peckshield Audit Report](https://github.com/dydxfoundation/governance-contracts/blob/master/audits/PeckShield-Audit-Report-dYdX-Bridge-v1.1.pdf)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dydx.community/dydx-token-migration/migration-of-dydx-from-ethereum-to-dydx-chain/treasurybridge-smart-contract.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
