# What Is TempleDAO

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfLqoMJ7Mv3k3GMdTxTr_UOc6DTDPkNZv03464i-vljzl6S3ZzIjih7ZtYoAkZ6q5H-LSfx-CoKjYnDAZiIpDxmF4FMbh4zY9-UXx0-S_gf-yQoHkVdG5Hf0qbhTw2gr099e44-N2Vw0nQJ6nXQK8gUfz6_?key=UEDOBSUfZlXKZSgH7Ign6Q" alt=""><figcaption></figcaption></figure>

In a market with ever-shifting headwinds and violent portfolio rotation, the founding Templars meditated on an answer to the question: “How does a DeFi Protocol grow sustainable value?"

The DeFi environment is fertile ground for the destructive boom and bust cycles that plague true innovation. Fledgling projects would surrender equity to mercenary capital in exchange for bootstrapping liquidity or extending the team runway. Harsh reality would soon intrude on their Faustian bargain.&#x20;

Whereas these aspiring founders had sought meaningful assistance as it relates to tokenomics, liquidity, or strategic alliances, they were usually left to fend for themselves. Their investors were too often nowhere to be found, or took a very hands-off approach once their place on the cap table was secured. Their most popular question is "Wen TGE?".

The reality is that small investors often cannot provide much help, and large investors do not have much motivation beyond profit, and both act accordingly. Once the tokens vest, the large wallets are usually the first to exit, leaving in their wake crippling sell pressure and agonizing churn for the team and the believers in the community.&#x20;

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdArn9un-m9gJqNSI69gEwFM1dLBnxud6UAJiacnbhVD6j_FW59PaA3Y1JJdekogSOb67YFsXU_Nvjkp91DnFabJhmNOWSpHng_MOCTZ02hSOnWDKr_MUlrAIGrynYa1FONrC3WHi1lZHlJxu6l5yJn27N8?key=UEDOBSUfZlXKZSgH7Ign6Q" alt=""><figcaption><p>Temple is an integrated DeFi network of infrastructure partners</p></figcaption></figure>

> *The iconic Temple sun symbolises an ecosystem that exists in synchronicity. We provide the gravity for the projects in our orbit to help them take off and sustain a long-term, mutually-beneficial relationship.*&#x20;

TempleDAO shines a light on a new path for aspiring crypto projects. Picture an Incubator with a robust Treasury and a carefully curated ecosystem of Strategic Partners. Imagine a true DeFi-native DAO that does not rely on portfolio turnover to create value and provides access to all the essential primitives necessary for organic growth. Feel what it's like to be guided by authentic builders who have been in your exact position.

## DeFi is in our DNA

* Spice Bazaar is a novel Auction marketplace for Treasury management of volatile assets
* RAMOS is an Automated Liquidity Manager to manage asset exposure and reduce volatility
* TLC is a native lending market with collateral value that is tied to a rising index price for TEMPLE
* Successful launch of Origami Finance, a Protocol that provides Automated Leverage infrastructure for DeFi with > $130 mm in TVL on Ethereum and Berachain
* Liquidity Bootstrap Partner for top Stablecoin Protocols like Usual Money and Ethena Labs
* Deep liquidity provisioning for Wasabi Finance NFT Options market
* Top 10 Farmer of Ethena Sats
* Top 3 Holder of Pendle YT Tokens
* Top Borrower on Inverse Finance (FiRM)
* Key OlympusDAO stakeholder controlling \~15% of the gOHM supply
* Seed investor for top projects on Ethereum and Berachain

## Share Your Dreams With Us Today

{% hint style="info" %}
Get In Touch:

* [Visit the Website](https://templedao.link/)
* [Join Discord](https://discord.com/)
* [Follow us on Twitter](https://twitter.com/templedao)
  {% endhint %}


# Introduction

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd-j08f0pkJp8_-C15sRK_WG177l3apZW5rza8fxwa5aXli-Th4pJ2VTZmsMJZzV6xXBIPeO7DnFcaXEp_U0fIMJf6NgoXocWpA64fgblffTLOoEpnPrUFj6sDehKytddR7bKTO?key=2DpsS1vxBolqlF2hRnQOoDdl" alt=""><figcaption><p>Token Flow in the Spice Bazaar</p></figcaption></figure>

Spice Bazaar is a unique secondary marketplace for the volatile holdings in the Temple Treasury. These holdings consist of tokens from yield farming, liquidity bootstrapping deals, and vested tokens from Partner activities that were seeded by TempleDAO.

The key to the Spice Bazaar is a fair Auction mechanic that drives cash flow to the Treasury in a sustainable manner through USDS bids for Temple Gold ([TGLD](/technical-reference/contracts)), while mitigating price pressure on Partner tokens and promoting further cooperation.

By earning Temple Gold through staking or bidding, both TEMPLE holders and non-holders can transact directly with the Temple Treasury via the two Auction Types as follows:

| GOLD AUCTIONS | Offers | Receives |
| ------------- | ------ | -------- |
| Bidder        | USDS   | TGLD     |
| Treasury      | TGLD   | USDS     |

***

| SPICE AUCTIONS | Offers | Receives            |
| -------------- | ------ | ------------------- |
| Bidder         | TGLD   | Spice               |
| Treasury       | Spice  | TGLD (to be burned) |


# Gold Auctions

<figure><img src="/files/45W3s3QR09P5a51WK7L8" alt=""><figcaption></figcaption></figure>

Temple Gold is the exclusive base currency for Spice Auctions. During these periodic Auctions, Temple Gold ([TGLD](/technical-reference/contracts)) may be exchanged for select Temple Treasury holdings which are not included in the stable backing as reflected by the [Temple Price Index](/temple-codex/treasury-price-index) (TPI).&#x20;

TGLD can only be acquired in two ways:

* Stake TEMPLE for TGLD emissions
* Bid USDS for TGLD in Gold Auctions

In a Gold Auction, both TEMPLE holders and non-holders may submit USDS bids in exchange for Temple Gold. *You do not need TEMPLE to place USDS bids for TGLD!* The final Gold unit price will not be settled until the end of the auction once all bids have been received. The last valid USDS Bid will set the final price for TGLD. To avoid gaming to discourage Bids, USDS bids are **final** once they are submitted even if the auction isn't over.

{% hint style="warning" %}
*All USDS Bids are final and cannot be withdrawn!*
{% endhint %}

{% hint style="info" %}
Submitting USDS Bids early or late does not affect the final price you will receive for TGLD. The total USDS submitted as Bids for a given lot determines the final unit price for TGLD in USDS terms.
{% endhint %}

### Temple Gold Auction Example

> *A total of 1,000,000 TGLD was put up for Auction and a total of 50,000 USDS was submitted by Bidders by the end of the Auction. The final price for TGLD is 0.05 USDS and each Bidder can claim 20 TGLD per USDS pro rata. Since Alice bid 500 USDS, she'd receive 10,000 TGLD or 1% of the auction lot. Since Bob bid 5,000 USDS, he'd receive 100,000 TGLD or 10% of the auction lot. Only USDS bids that were submitted before Auction expiry are valid.*

TGLD is fully cross-chain compatible through LayerZero to allow holders to participate in potential Spice auctions on other chains e.g. Berachain. Whether acquired through TEMPLE staking or Gold Auctions, TGLD are fungible and can be used in Spice Auctions on any supported chain. However, TGLD are only minted on Ethereum and may be bridged on a 1:1 burn/mint basis to a supported chain.

TGLD utility is enforced at a contract level subject to DAO governnance. Currently, TGLD can only be acquired through bidding USDS or staking TEMPLE. There are no future plans to integrate Spice Bazaar with external dApps e.g DEX to facilitate swaps or collateralisation.&#x20;

{% hint style="warning" %}
Gnosis users should contact the TempleDAO Team if they wish to bridge TGLD to another chain because TGLD can only be bridged to the same address cross-chain. It's possible that TGLD credited to a Gnosis Smart Contract may need to be transferred to a EoA wallet before bridging.
{% endhint %}

{% hint style="danger" %}
TGLD is **non-transferrable except to whitelisted addresses** and cannot be found on any exchange or spot market. There is NO secondary liquidity for TGLD outside of the Spice Bazaar. Any purported external liquidity pools for TGLD are fraudulent!&#x20;
{% endhint %}

<br>


# Spice Auctions

The Temple Treasury will hold periodic auctions for select volatile holdings. These auctions are known as Spice Auctions and should not be confused with [Temple Gold Auctions](https://docs.templedao.link/spice-bazaar/gold-auctions).&#x20;

Collectively, the tokens that are put up in the Spice Auction are known as SPICE. The SPICE Tokens may be any suitable volatile token, but may consist of airdropped or vested tokens from Treasury or Partner activities. Spice Auction details about which SPICE tokens and the auction lot size will be announced well ahead of the start of the Spice Auction.

{% hint style="info" %}
Spice Auction listings are often derived from tokens received from Partners via pre-TGE agreements or airdrop stemming from farming activities. Not all volatile tokens are reserved for Spice Auctions. Some may be directly sold on the spot markets to sustain [TPI growth](/temple-codex/treasury-price-index).
{% endhint %}

The only accepted currency in the Spice Auction is [Temple Gold](/spice-bazaar/gold-auctions) (TGLD). USDS cannot be used to bid in Spice Auctions and there's no zap feature for TGLD. Depending on the total value of a given volatile token, the lot may be split into several smaller Auctions also known as *Epochs* to promote Bidder participation and reduce the chance of "bid sniping".&#x20;

Each Epoch will typically last 3 - 7 days and all TGLD bidders will receive the same *pro rata* price in TGLD for the SPICE at the end of the Auction. The last accepted TGLD Bid will set the final price for SPICE. To avoid gaming to discourage Bids, TGLD bids are **final** once they are submitted even if the auction expiry has not been reached.

{% hint style="warning" %}
*All TGLD Bids are final and cannot be withdrawn at any time!*
{% endhint %}

Spice Auction Tokens may be found trading at fair market price on external exchanges. Given the unique mechanics of Temple Gold, TGLD holders may discover a potential arbitrage opportunity by acquiring TGLD in advance to bid on SPICE through future Spice Auctions.&#x20;

{% hint style="info" %}
Submitting TGLD Bids early or late does not affect the final price you will receive for SPICE. The total TGLD submitted as Bids for a given lot determines the final unit price for SPICE in TGLD terms.
{% endhint %}

### Spice Auction Example

> *A total of 100,000 Token Y was put up for Auction and a total of 1,000,000 TGLD was submitted by Bidders before Auction expiry. The final price for Token Y is 10 TGLD and each Bidder can claim 0.1 Token Y per TGLD pro rata. Since Alice bid 10,000 TGLD, she'd receive 1,000 Token Y or 1% of the auction lot. Since Bob bid 100,000 TGLD, he'd receive 10,000 Token Y or 10% of the auction lot.*


# TGLD Emissions

The mint function for the Temple Gold contract ([TGLD](/technical-reference/contracts)) is a public function. When mint () is called, the following formula is used to calculate how much TGLD will be minted:

$$
\text{\textcolor{orange}{mint()} = seconds\text{\textunderscore}
elapsed \* (max\text{\textunderscore}
supply - circ\text{\textunderscore}
supply) / vestingFactor}
$$

| PARAMETER         | VALUE           | COMMENT                                                                                |
| ----------------- | --------------- | -------------------------------------------------------------------------------------- |
| `seconds_elapsed` | `variable`      | Number of seconds elapsed since the last time `mint()`was called                       |
| `max_supply`      | `1,000,000,000` | Fixed                                                                                  |
| `circ_supply`     | `variable`      | Will grow over time but expected to oscillate at some equilibrium supply in the future |
| `vestingFactor`   | `156`           | Rate parameter used to achieve target weekly exponential decay of TGLD emissions       |
|                   |                 |                                                                                        |

{% hint style="info" %}
Due to potential TGLD bridging to other chains, circ\_supply is not always equal to Total Supply of TGLD on Ethereum. Bridged TGLD is burned on initial chain and minted on the destination chain on a 1:1 basis.
{% endhint %}

\
Once mint() is called, the TGLD emission will be programmatically allocated according to the table below. These allocations are subject to DAO governance.&#x20;

<table><thead><tr><th></th><th width="203">Gold Auction Contract</th><th width="229">Staking Reward Contract</th><th>Team Gnosis</th></tr></thead><tbody><tr><td>TGLD Distribution as a % of Mint</td><td><code>70%</code></td><td><code>15%</code></td><td><code>15%</code></td></tr></tbody></table>

* *Gold Auction Contract* = Controller for the bi-weekly Gold Auctions
* *Staking Reward Contract* = Allocator of Epoch TGLD rewards for TEMPLE Stakers
* *Runway Gnosis* = Reserve funds for incentivising and retaining key Contributors

<br>


# Auction Guide for TGLD

<figure><img src="/files/IJpkYZnAtCGzZRpd6JVq" alt=""><figcaption><p>Welcome to the Spice Bazaar</p></figcaption></figure>

{% content-ref url="/pages/ejIfs2dSGXlCvret1Vq7" %}
[Bid USDS for TGLD](/spice-bazaar/auction-guide-for-tgld/bid-usds-for-tgld)
{% endcontent-ref %}

{% content-ref url="/pages/yOup5RDyXkTx3DdQYagY" %}
[Claim TGLD from Bidding USDS](/spice-bazaar/auction-guide-for-tgld/claim-tgld-from-bidding-usds)
{% endcontent-ref %}


# Bid USDS for TGLD

<figure><img src="/files/KIYKqpFoCiYi9iDMTFdw" alt=""><figcaption><p>Navigate to BID TEMPLE GOLD</p></figcaption></figure>

<figure><img src="/files/sAiOBxO4bp1npWDIc2rp" alt=""><figcaption><p>Click on BID USDS FOR TGLD</p></figcaption></figure>

<figure><img src="/files/6gAcidyHCNjZRt0DJmcD" alt=""><figcaption><p>Input the desired amount of USDS to bid</p></figcaption></figure>

<figure><img src="/files/CMEOXiSP8xfQjrrSwzwo" alt=""><figcaption><p>Check the points to acknowledge disclaimers</p></figcaption></figure>

<figure><img src="/files/kmcf2XvACeSFLFIz17pn" alt=""><figcaption><p>Click Submit Bid to confirm the amount of USDS to bid</p></figcaption></figure>

<figure><img src="/files/EbpKHx2DV4nDIcjetHJp" alt=""><figcaption><p>Approve the confirmation to push the transaction through on the blockchain</p></figcaption></figure>

<figure><img src="/files/uCmYYaezNRQ4i8yHcalB" alt=""><figcaption><p>A notification will pop up to confirm the successful bid entry of USDS</p></figcaption></figure>

***

### Increasing USDS Bids

<figure><img src="/files/gzzTLpi8YenktWMfAXfi" alt=""><figcaption><p>Once a bid has been previously entered, subsequent bids can be entered by clicking on Increase Bid for an ongoing auction</p></figcaption></figure>

<figure><img src="/files/EZ9YnpdZH8o6EyKLd7GW" alt=""><figcaption><p>Alternatively, increasing Bids may also be accessed from the 'My Activity' section</p></figcaption></figure>

<figure><img src="/files/II2Vs12TzOti1KsNfcj6" alt=""><figcaption><p>Input the amount of desired USDS to increase the existing bid</p></figcaption></figure>

<figure><img src="/files/hlrfZGqOtx9q2VN5mEMb" alt=""><figcaption><p>Click Submit Bid to confirm the amount of USDS to increase the bid by</p></figcaption></figure>

<figure><img src="/files/yAX2LJEHQyFY8E7BNVj8" alt=""><figcaption><p>Approve the confirmation to push the transaction through on the blockchain</p></figcaption></figure>

<figure><img src="/files/WEgWx5gRuioyP51CVdPJ" alt=""><figcaption><p>A notification will pop up to confirm the successfully increased bid entry of USDS</p></figcaption></figure>


# Claim TGLD from Bidding USDS

<figure><img src="/files/EZ9YnpdZH8o6EyKLd7GW" alt=""><figcaption><p>Navigate to the 'My Activity' section</p></figcaption></figure>

<figure><img src="/files/IMNOdgFO7GfNMeTo6P0r" alt=""><figcaption><p>Click on Claim TGLD for the selected epoch for bids entered once the auction has ended</p></figcaption></figure>

<figure><img src="/files/eVETkB6rg82ZGb56CgKb" alt=""><figcaption><p>Approve the confirmation to push the transaction through on the blockchain</p></figcaption></figure>

<figure><img src="/files/srXmw1wmnJyDjMhlNVj6" alt=""><figcaption><p>A notification will pop up to confirm the successful claim of TGLD from the ended auction for the epoch</p></figcaption></figure>


# Auction Guide for SPICE

<figure><img src="/files/62bJX43vu6AQ5NeBjc0L" alt=""><figcaption><p>To enter new Spice Auction Lots, click on <code>Spend TGLD</code></p></figcaption></figure>

{% content-ref url="/pages/qZgQwT3AoQOYOnSZPsCB" %}
[Bid TGLD for Spice](/spice-bazaar/auction-guide-for-spice/bid-tgld-for-spice)
{% endcontent-ref %}

{% content-ref url="/pages/MCWBan2aU9412CVbff4n" %}
[Claim Spice](/spice-bazaar/auction-guide-for-spice/claim-spice)
{% endcontent-ref %}


# Bid TGLD for Spice

### Entering a New Bid

<figure><img src="/files/Ja4JG5Mmt79xACt743jr" alt=""><figcaption><p>Click on the <code>Spend Temple Gold</code> Category in the header options</p></figcaption></figure>

<figure><img src="/files/PIVwGzA8WvDho19Nzkkl" alt=""><figcaption><p>Click on <code>Bid Now</code> to enter the Spice Auction</p></figcaption></figure>

<figure><img src="/files/bFNiaWF3pzoKHETUwEeI" alt=""><figcaption><p>Ensure the active wallet has sufficient Temple Gold for bidding</p></figcaption></figure>

<figure><img src="/files/p14dFfsLE6rM6R5ocWVy" alt=""><figcaption><p>Input the amount of TGLD for the current bid</p></figcaption></figure>

<figure><img src="/files/lA2x8f86pkedpSHOdFB4" alt=""><figcaption><p>Check the disclaimers to acknowledge understanding of the auction bid mechanics</p></figcaption></figure>

<figure><img src="/files/M9cTlDjzzUoMP179LYNK" alt=""><figcaption><p>Click <code>Submit Bid</code> when ready</p></figcaption></figure>

<figure><img src="/files/v7L0h43oDmmB4ucY9v0a" alt=""><figcaption><p>Confirm the approval transaction</p></figcaption></figure>

<figure><img src="/files/Vxnya98F8tB4XdlMfo2t" alt=""><figcaption><p>Confirm the actual bid transaction</p></figcaption></figure>

<figure><img src="/files/062DH9flNa0moxlygRBt" alt=""><figcaption><p>Once a successful bid has been entered, check the success notification that pops up.</p></figcaption></figure>

***

### Increasing Bid Amounts

<figure><img src="/files/JZq4AxGFOC0m31KeU3eR" alt=""><figcaption><p>Bids may be increased at any time before the end of the auction lot ends</p></figcaption></figure>

<figure><img src="/files/7SG6Xol5zqdGONdGF09O" alt=""><figcaption><p>Input the amount of TGLD to increase the total bid amount</p></figcaption></figure>

<figure><img src="/files/nlcstLnvXxWirkQCyhpe" alt=""><figcaption><p>Check the disclaimers to acknowledge understanding of the auction bid mechanics</p></figcaption></figure>

<figure><img src="/files/HKIGMevOdpbhNRqN1D2H" alt=""><figcaption><p>Click <code>Submit Bid</code> when ready</p></figcaption></figure>

<figure><img src="/files/jcPDtFPDby9nGtpDL7vR" alt=""><figcaption><p>Confirm the approval transaction</p></figcaption></figure>

<figure><img src="/files/9p47ZPzNcSUeIy6HugAx" alt=""><figcaption><p>Confirm the actual bid transaction</p></figcaption></figure>

<figure><img src="/files/062DH9flNa0moxlygRBt" alt=""><figcaption><p>Once a successful bid has been entered, check the success notification that pops up.</p></figcaption></figure>


# Claim Spice

<figure><img src="/files/CkVFwg0iA2U6DjNBTCNT" alt=""><figcaption><p>Click on the <code>My Activity</code> category in the header</p></figcaption></figure>

<figure><img src="/files/MZQI67qMsJr8U45a31Fo" alt=""><figcaption><p>Select the <code>Bids for Spice</code> option</p></figcaption></figure>

<figure><img src="/files/tSlX1RKL3LZSOJmC0TnS" alt=""><figcaption><p>Click <code>Claim</code> to being claiming any unclaimed rewards from a selected auction lot</p></figcaption></figure>

<figure><img src="/files/SaZI7EI6xBTAbTA6m2fS" alt=""><figcaption><p>Sign the message to confirm the transaction on the blockchain</p></figcaption></figure>


# Staking Guide for TEMPLE

<figure><img src="/files/IJpkYZnAtCGzZRpd6JVq" alt=""><figcaption><p>Welcome to the Spice Bazaar</p></figcaption></figure>

{% content-ref url="/pages/7xmKfngdMHieatPKIHYG" %}
[Staking TEMPLE](/spice-bazaar/staking-guide-for-temple/staking-temple)
{% endcontent-ref %}

{% content-ref url="/pages/9FnelSwjWlZpjQ93ALIO" %}
[Claim TGLD from Staked TEMPLE](/spice-bazaar/staking-guide-for-temple/claim-tgld-from-staked-temple)
{% endcontent-ref %}


# Staking TEMPLE

<figure><img src="/files/74bgrTDgLCULZAP2GFBH" alt=""><figcaption><p>Click on EARN TEMPLE GOLD</p></figcaption></figure>

<figure><img src="/files/CtYR0wySmZrUlwjCKAaP" alt=""><figcaption><p>Navigate to the Stake Header</p></figcaption></figure>

<figure><img src="/files/8yccxz0Ng1R18eCiPK8i" alt=""><figcaption><p>Input the amount of TEMPLE to stake</p></figcaption></figure>

<figure><img src="/files/L1tC2UCE1Ro9MwAj3n22" alt=""><figcaption><p>Check the points to acknowledge disclaimers</p></figcaption></figure>

<figure><img src="/files/RNylVyiacGGtfrMgKEow" alt=""><figcaption><p>Click Submit to confirm the amount of TEMPLE to stake</p></figcaption></figure>

<figure><img src="/files/gakM6GtRrh5MQzo0bBFz" alt=""><figcaption><p>Approve the confirmation to push the transaction through on the blockchain</p></figcaption></figure>

<figure><img src="/files/zVpRM5HubwW82fiAMnGR" alt=""><figcaption><p>A notification will pop up to confirm the successful staking of TEMPLE</p></figcaption></figure>


# Claim TGLD from Staked TEMPLE

<figure><img src="/files/Ocyd5a992BNuvLCNaK7x" alt=""><figcaption><p>Navigate to the CLAIM TGLD section</p></figcaption></figure>

<figure><img src="/files/rGbVT04m7NyndcvJAzcf" alt=""><figcaption><p>Click on CLAIM to begin the claiming process of TGLD</p></figcaption></figure>

<figure><img src="/files/NL8HGVGoJnLzPH0zskFV" alt=""><figcaption><p>Approve the confirmation to push the transaction through on the blockchain</p></figcaption></figure>

<figure><img src="/files/uNOZhK1B77GYX8btyuEi" alt=""><figcaption><p>A notification will pop up to confirm the successful claiming of TGLD</p></figcaption></figure>


# Auction Analytics

Coming thoon!


# Contract Security

{% file src="/files/LcM9TGQZnlkWQjiShgNs" %}
<https://github.com/Cyfrin/2024-07-templegold>
{% endfile %}

{% file src="/files/Vl5aIC1xBdLVXjpFOfdf" %}


# Temple History

The ascension of TempleDAO was heralded by the legendary Opening Ceremony where Templars made artistic offerings and solved elaborate pussles in the metaverse for the chance to complete the Fire Ritual. This initiation process not only laid the foundation for a robust Treasury, but also planted the seeds for a vibrant community of talented and passionate Builders and Creators.&#x20;

{% embed url="<https://x.com/templedao/status/1721139885753438547>" %}
TempleDAO's Epic Opening Ceremony
{% endembed %}

## Primary DAO Activities

{% hint style="info" %}

* Incubation and Seed Opportunities with Partners
* Technical R\&D for New DeFi Primitives
* Liquidity Bootstrapping
* Stablecoin Farming
* Nexus Metaverse Launchpad
  {% endhint %}

{% embed url="<https://youtu.be/Wju3bIG1hWM>" %}
TempleDAO's iconic !verify-yourself-or-ngmi video based off Holy Mountain from the legendary cheepy
{% endembed %}


# Treasury Price Index

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXciNst81VHzfkwLAE1ihJdtzuVhtSBCNLUw8Hi9P8o2XCxnc7jKNxfq64aDx7ssdw8TRkubD6SAJuj29AWM0QNNn64hRNEn4oC_G59M8YagOYEetky4-jAagfhYshgUpW9vqZ1MR5yWwlUST5WWMItaz9eb?key=UEDOBSUfZlXKZSgH7Ign6Q" alt=""><figcaption><p>The Temple stands strong reaching ever skyward</p></figcaption></figure>

### Treasury Price Index (TPI)

The [Treasury Price Index](https://templedao.medium.com/the-new-temple-b121c2aaded4) is a metric for the stablecoin backing per TEMPLE token. TPI tracks the stable backing per TEMPLE through our innovative "TPI Drip" mechanic. Over time, as we reap the rewards from Treasury activities and liquidated into stablecoins, the TPI will grow accordingly.&#x20;

TempleDAO utilises a novel AMO (Algorithmic Market Operation) liquidity manager called [RAMOS](https://templedao.medium.com/the-new-temple-b121c2aaded4) to support TEMPLE price at a level no lower than its TPI metric.

The Treasury may holds volatile assets which are not directed toward TPI growth. Subject to DAO governance, certain volatile tokens may be reserved for [Spice Auctions](/spice-bazaar/spice-auctions).


# RAMOS

### Random Automated Market Operations Support (RAMOS)

RAMOS is an [AMO](https://coinmarketcap.com/alexandria/glossary/algorithmic-market-operations-amos) liquidity manager contract that allows the Temple Protocol to both stabilise the trading range of TEMPLE or any token and anchor the price to any policy-driven price such as the [Treasury Price Index](/temple-codex/treasury-price-index).

Historically, RAMOS smart contract was deployed to manage the TempleDAO Protocol owned Liquidity (PoL) which consisted of a [50/50 TEMPLE/DAI LP](https://balancer.fi/pools/ethereum/v2/0x8bd4a1e74a27182d23b98c10fd21d4fbb0ed4ba00002000000000000000004ed) on Balancer. RAMOS contract functions may be called by bots via off-chain automation infrastructure.

#### How RAMOS Can be Applied to TEMPLE:

* Support the TEMPLE price when it trades below the TPI
* Recapitalise the treasury when TEMPLE trades at an "excessive" premium over the TPI
* Stake and farm the LP token on the underlying DEX to maximise gauge rewards

RAMOS will be active whenever the TEMPLE price falls below a target policy price such as the Treasury Price Index (TPI). However, the target price is not a hard floor and at times the token may trade at a discount or a premium to the target price. Similarly, RAMOS may also be active when the policy-prescribed upper bound of TEMPLE is reached.

{% hint style="info" %}
RAMOS is a Treasury management tool that can be used to automate and regulate exposure to any asset
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf6Kna8-0boXx9LK-jwBgwwneZ75P_mDpRw1VXjQIJu3DIgRLKUC_xtJOlzP92rTNHqcihFxuWXnW1IZHotGjnYccx2cUgC3AHfXsVB-3JKc2oBSgqEjISYXS1dsPSTkA7c01ZW-vEeNbDZiP2wMLBLDY4?key=UEDOBSUfZlXKZSgH7Ign6Q" alt=""><figcaption><p>Probability Heat Map for How RAMOS Determines When to Rebalance</p></figcaption></figure>

### When spot price is more than 1% below TPI

* RAMOS will *periodically* rebalance and single-asset withdraw TEMPLE liquidity from the LP and burn the tokens to raise the TEMPLE price in the Balancer pool.

### When spot price is more than 3% below TPI

* RAMOS will *always* trigger a rebalance and single-asset withdraw TEMPLE liquidity from the LP and burn the tokens to raise the TEMPLE price in the Balancer pool.

### When spot price is more than 3%  above TPI

* RAMOS will *single-asset deposit* TEMPLE into the LP to recapitalize the pool. Alternatively, RAMOS may *single-asset withdraw* stables as a *de facto bonding system* to recapitalise the Treasury during periods of strong demand.&#x20;

Furthermore, RAMOS was designed to take advantage of volatility in a way that is less susceptible to MEV attacks and front-running that can confound other AMO systems:

* **Randomized Timing**: RAMOS does not rebalance on a fixed schedule. Aa randomisation logic will be applied with respect to the timing and the size of the rebalance. At default settings, a rebalance will be triggered 2–3 times per day on average. If the TEMPLE price falls too far below the policy bound, a rebalance will be triggered automatically to protect the TPI.
* **Randomized Rebalance to Raise the Price**: The number of Balancer Pool Tokens (BPT) that RAMOS will use to rebalance the liquidity pool is also randomised. RAMOS will calculate the number of BPT tokens required to fully close the gap between current price and TPI and check the price impact of the operation. Then it will extract anywhere between 50%-100% of that number to single-asset withdraw tokens.
* **Randomized Rebalance to Recapitalise the Pool**: When spot price trades above TPI, RAMOS will close anywhere from 1% to 10% of the gap between the current price and TPI per rebalance event by depositing more TEMPLE tokens to recapitalise the pool.&#x20;

{% hint style="info" %}
Rebalances to the downside are designed to be extremely mild to allow TEMPLE to trade at a significant premium to the TPI.
{% endhint %}


# Temple Loving Care

<figure><img src="/files/aFjv4RoT6fHi5aH3tS4w" alt=""><figcaption></figcaption></figure>

Temple Loving Care, also known as TLC, is designed to allow users to access a short-term line of credit when they supply their TEMPLE token as collateral.

TLC parameters have been set to a flat 15% borrow APR from 0-90% utilisation. Above 90% the rate will rise linearly until it reaches 20% at 100% utilisation.

Users should be aware that TEMPLE tokens that are supplied in TLC cannot be staked for TGLD emissions in the [Spice Bazaar](broken://pages/bE1t6wkvu3ZHdB8Zewsy) until the debt has been repaid and the TEMPLE collateral is withdrawn from TLC.

{% hint style="info" %}
The max loan-to-value (LTV) has been raised from 75% to 85% with on-chain liquidation LTV set to 90%. Furthermore, the TLC borrow rate is now **fixed at any utilisation ratio** from 0% to 100%+ of the TLC Debt Ceiling.&#x20;
{% endhint %}

{% hint style="info" %}
The TLC borrow interest rate will be periodically updated per the formula below which is based on the benchmark *Risk Free Rate* set which can be set to the DAI Savings Rate (sDAI) or the current APR of the Temple Treasury idle strategy ([sUSDS+](https://www.origami.finance/collections/sky-collection/1-0x0f90a6962e86b5587b4c11bA2B9697dC3bA84800))
{% endhint %}

$$
\boxed{\text{Borrow}*{rate} = \text{sDAI}*{rate} \* max(1.1, 1 + \text{TEMPLE}\_{{\text{staked%}}})}
$$


# Buying and Selling TEMPLE

1\. Navigate to <https://templedao.link/>

<figure><img src="/files/vHIfMS8wkd0et5WlAzaV" alt=""><figcaption></figcaption></figure>

2\. Click the "Trade" button

3\. Connect your wallet

<figure><img src="/files/CjwCTWVehmYRJea9fMTt" alt=""><figcaption></figcaption></figure>

4\. Select the token you would like to trade and click the arrow to toggle between buying and selling TEMPLE

<figure><img src="/files/vC4QO5Ts3sDVw5tEDhs5" alt=""><figcaption></figcaption></figure>

NOTE: If you click Advanced Settings you will be able to set two variables:

**Slippage -** the maximum allowable difference between the expected price of an order and the actual price when the order executes

**Deadline** - the maximum time allowable for the transaction to execute, after which the transaction will fail

<figure><img src="/files/8YHMEZtBMRcE2OrV1zaz" alt=""><figcaption></figcaption></figure>

5\. Input the amount you would like to trade

6\. Click the "Preview" button

<figure><img src="/files/AmQWYOIrZ5YIhro1qXR1" alt=""><figcaption></figcaption></figure>

7\.  Click the "Confirm Swap" button to complete the trade


# Deprecated Functions

TempleDAO has undergone a series of changes since its inception. As a result, certain TEMPLE functions or products have been deprecated such as OGTemple and Temple Core Vaults.

Users who wish to retrieve their TEMPLE tokens from these legacy contracts should do the following:

1. [**Go to the Legacy Page**](https://templedao.link/dapp/legacy)
2. Choose from one of the two options

   1. [**Claim from Vaults**](/legacy-functions/deprecated-functions/claim-from-vaults) to claim any remaining TEMPLE tokens that are still locked in Temple vaults
   2. [**Unstake OGT**](/legacy-functions/deprecated-functions/unstake-ogt) to unstake any remaining OGTEMPLE and convert them to TEMPLE

{% hint style="info" %}
FAITH is no longer available for claim
{% endhint %}

<figure><img src="/files/rgJb6g7iT8ST2fq2JWNT" alt=""><figcaption></figcaption></figure>


# Claim From Vaults

Temple Core Vaults are deprecated. If you have previously locked your TEMPLE in the Temple Core Vaults, you should claim your TEMPLE token along with any associated TEMPLE rewards.&#x20;

1. [Go to the Legacy Page](https://templedao.link/dapp/legacy)
2. Click on "Claim From Vaults" and connect your wallet when prompted
3. A window will pop-up showing you how much TEMPLE you have locked up in the vault(s)
4. Click the "Claim" button to claim your TEMPLE tokens plus vault yield if applicable

<figure><img src="/files/IPdiEApCU9YSSrpHT3dC" alt=""><figcaption></figcaption></figure>


# Unstake OGT

OGTemple is no longer supported. If you still hold any OGTEMPLE, you should unstake the OGTEMPLE and unwrap back to regular TEMPLE tokens.

1. [Go to the Legacy Page](https://templedao.link/dapp/legacy)
2. Click on "Unlock OGT" in the top right corner and connect your wallet when prompted
3. A window will pop-up showing you how much OGTEMPLE you have still staked
4. Click the "Unstake" button to convert your OGTEMPLE to TEMPLE tokens

<figure><img src="/files/uU9AS6cxh3aAGzIVms5Z" alt=""><figcaption></figcaption></figure>


# Audits

{% file src="/files/x25iopBvx65EXiKdTUlo" %}
Peckshield RAMOS audit report (2022/12/13)
{% endfile %}

{% file src="/files/rgYpeySM1ycAlyN6kEPB" %}
Peckshield Temple Core audit report (2022/06/10)
{% endfile %}

{% file src="/files/sCetcmK4lLlAeekWR0cE" %}
Peckshield Temple AMM audit report (2022/04/28)
{% endfile %}

{% file src="/files/gcdSJk6HHjk5f8DkG16j" %}
DefiSafety Temple processes audit report (2022/08/02)&#x20;
{% endfile %}

## Bug Bounty

To encourage and reward responsible disclosure of security issues and vulnerabilities, we’ve partnered with Hats Finance for our bug bounty program. We’ve committed 450k $TEMPLE tokens to our bug bounty vault. Please submit disclosures using their [dApp](https://app.hats.finance/vaults), or learn more about Hats Finance [here](https://hats.finance/).

<br>


# Contracts

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeZkJCzJKcLiV3i9FX774Fnx9n8n2pG_9C62jOXFZlaKA3i_xP9UEiT_KM4ugOaRDCSUeOgFOWkl_q_RydrcDQksjlywOB4F6hQpNvQNOyl8S9WqE74e8qBO_jXrJHGH9_Bt-XKnn5i9OYTpKfXW-oUMyD0?key=UEDOBSUfZlXKZSgH7Ign6Q" alt=""><figcaption></figcaption></figure>

## Github

<https://github.com/TempleDAO/temple>

## Temple Core

[JoiningFee](https://etherscan.io/address/0x8A17403B929ed1B6B50ea880d9C93068a5105D4C) -`0x8A17403B929ed1B6B50ea880d9C93068a5105D4C`

[OpsManagerLib ](<https://etherscan.io/address/0x248bA5985053ee399a76B5822AdeB12FA0ab1424 >)- `0x248bA5985053ee399a76B5822AdeB12FA0ab142`

[OpsManager ](https://etherscan.io/address/0x65fE8BaBF7DA367b2B45cBD748F0490713f84828)- `0x65fE8BaBF7DA367b2B45cBD748F0490713f84828`

[Vault Proxy](< https://etherscan.io/address/0x6f5bB7cC4F3D6628d0095545552757AB377FE15C>) - `0x6f5bB7cC4F3D6628d0095545552757AB377FE15C`

[Vaulted Temple](< https://etherscan.io/address/0xec3c1abdab15ebc069ec5e320eaacf716edfc011 >) - `0xec3c1abdab15ebc069ec5e320eaacf716edfc011`

[Temple Exposure](<https://etherscan.io/address/0xc3940f86a16f54a6d74e200616eb7309e31ac004 >) - `0xc3940f86a16f54a6d74e200616eb7309e31ac004`

[Instant Exit Queue](https://etherscan.io/address/0x1f667edf04d8abf8409bf579a3f1bbf8ec263a85) - `0x1f667edf04d8abf8409bf579a3f1bbf8ec263a85`

[1 month sub-vault A](<https://etherscan.io/address/0x402832ec42305cf7123bc9903f693e944484b9c1 >) - `0x402832ec42305cf7123bc9903f693e944484b9c1`

[1 month sub-vault B ](<https://etherscan.io/address/0xa99980c64fc6c302377c39f21431217fcbaf39af >)- `0xa99980c64fc6c302377c39f21431217fcbaf39af`

[1 month sub-vault C](<https://etherscan.io/address/0xb6226ad4fef850dc8b85a83bdc0d4aff9c61cd39 >) - `0xb6226ad4fef850dc8b85a83bdc0d4aff9c61cd39`

[1 month sub-vault D ](https://etherscan.io/address/0xd43cc1814bd87b67b318e4807cde50c090d01c1a)- `0xd43cc1814bd87b67b318e4807cde50c090d01c1a`

### Ethereum

[TEMPLE](https://etherscan.io/address/0x470ebf5f030ed85fc1ed4c2d36b9dd02e77cf1b7): `0x470ebf5f030ed85fc1ed4c2d36b9dd02e77cf1b7`

[OG\_TEMPLE](https://etherscan.io/address/0x654590f810f01b51dc7b86915d4632977e49ea33): `0x654590f810f01b51dc7b86915d4632977e49ea33`

[STAKING](https://etherscan.io/address/0x4D14b24EDb751221B3Ff08BBB8bd91D4b1c8bc77): `0x4D14b24EDb751221B3Ff08BBB8bd91D4b1c8bc77`

[TEMPLE GOLD](https://etherscan.io/address/0x4d14b24edb751221b3ff08bbb8bd91d4b1c8bc77): `0x0e7b53dde30754a94d4b10c9cdcaca1c749ecd1b`

[TEMPLE GOLD STAKING](https://etherscan.io/address/0x64866d080cfef0e45a3a64a558da6eead7542657): `0x64866d080cfef0e45a3a64a558da6eead7542657` &#x20;

[TEMPLE GOLD MINTER](https://etherscan.io/address/0x9821338bc318e87147efef3cafa917d7484a33fb): `0x9821338bc318e87147efef3cafa917d7484a33fb`

[LOCKED\_OG\_TEMPLE](https://etherscan.io/address/0x879B843868dA248B1F2F53b4f8CC6e17e7E8b949): `0x879B843868dA248B1F2F53b4f8CC6e17e7E8b949`

[TREASURY](https://etherscan.io/address/0x22c2fE05f55F81Bf32310acD9a7C51c4d7b4e443): `0x22c2fE05f55F81Bf32310acD9a7C51c4d7b4e443`

[TREASURY\_MANAGEMENT](https://etherscan.io/address/0x20bEB455c3b7b0D84091b84c25f51Bc002d92f05): `0x20bEB455c3b7b0D84091b84c25f51Bc002d92f05`

[TEMPLE\_V2\_PAIR](https://etherscan.io/address/0x6021444f1706f15465bEe85463BCc7d7cC17Fc03): `0x6021444f1706f15465bEe85463BCc7d7cC17Fc03`

[TEMPLE Stable AMM Router](https://etherscan.io/address/0x98257c876ace5009e7b97843f8c71b3ae795c71e): `0x98257c876ace5009e7b97843f8c71b3ae795c71e`

[TEMPLE\_AMM\_OPS](https://etherscan.io/address/0xc8c3C72d667196bAd40dE3e5eaDC29E74431257B): `0xc8c3C72d667196bAd40dE3e5eaDC29E74431257B`

[AMM\_WHITELIST](https://etherscan.io/address/0x3fAEb34Ab68709DCa02D6B48A03256317b338896): `0x3fAEb34Ab68709DCa02D6B48A03256317b338896`

[TEMPLE\_CASHBACK](https://etherscan.io/address/0x72e9fa8eD38ddbdA4b044E95A206EDaA509FdF72): `0x72e9fa8eD38ddbdA4b044E95A206EDaA509FdF72`

### Arbitrum

[TEMPLE](https://arbiscan.io/address/0x6d2caf65163ff290ec2a362d6e413fae4643f90e): `0x6d2caf65163ff290ec2a362d6e413fae4643f90e`

### Optimism

[TEMPLE](https://optimistic.etherscan.io/address/0xc8058960a9d7e7d81143bdba38d19e6824165932): `0xc8058960a9d7e7d81143bdba38d19e6824165932`

### Polygon

[TEMPLE](https://polygonscan.com/address/0xee55dd8d0ccbe835b8ef163590c9afeaace5978b): `0xee55dd8d0ccbe835b8ef163590c9afeaace5978b`

## Rituals&#x20;

00 — [FIRE\_RITUAL](https://etherscan.io/address/0xDC9D4685847f1C8bDd4CE86BE6A83Fa09B6A08b1): `0xDC9D4685847f1C8bDd4CE86BE6A83Fa09B6A08b1`

00 — [FIRE\_RITUAL\_ALLOCATION](https://etherscan.io/address/0x6cf2A119f98A4B4A7FA4Fd08A1E72D7aF3ba72FE): `0x6cf2A119f98A4B4A7FA4Fd08A1E72D7aF3ba72FE`

01 — [OPENING\_CEREMONY](https://etherscan.io/address/0xA2642dF0139faeBB1D45526a46d5c54B805Be02c): `0xA2642dF0139faeBB1D45526a46d5c54B805Be02c`

01 — [OPENING\_CEREMONY\_QUEST](https://polygonscan.com/address/0x17d723436740F2852274192dA27F65116ECd011E): `0x17d723436740F2852274192dA27F65116ECd011E`

01 — [OPENING\_CEREMONY\_VERIFIER](https://etherscan.io/address/0x8ed9a9980e4c7e87edf8da13fc2ba53802bba117): `0x8ed9a9980E4C7e87eDf8DA13Fc2ba53802BBa117`

## Offerings

00 — [Frax ERC-20 address](https://etherscan.io/address/0x853d955aCEf822Db058eb8505911ED77F175b99e): `0x853d955aCEf822Db058eb8505911ED77F175b99e`


# Admin Controls

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdvuRGehIul1jfjLxjDJZFqzuGNbdecLLehDgjSlmlkoxuIhzyWqXpsC1rhVHRYkduHgYWqhQMoXbwmaMKlw6j5hj1EjUW5RNpNF8JkWnGxDuocMMMB7tueSjiwjqfUMW0YvB36vxAIK5afHM3Lz3iJxFuf?key=UEDOBSUfZlXKZSgH7Ign6Q" alt=""><figcaption></figcaption></figure>

## Contract Ownership

TempleDAO utilises a Gnosis Safe multi-signature smart contract to execute the protocol’s Administrative and Treasury operations. All of the protocol contracts are owned by the main TempleDAO multisig at: [0x4D6175d58C5AceEf30F546C0d5A557efFa53A950](https://etherscan.io/address/0x4D6175d58C5AceEf30F546C0d5A557efFa53A950).&#x20;

{% hint style="info" %}
The signers on the Gnosis are long-term community members who have a proven record of acting in the best interests of the DAO and who have demonstrated consistent and valuable contributions in their respective Enclaves.
{% endhint %}

Critical protocol contract functions are restricted by [onlyOwner](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol) to prevent unauthorised changes or updates. Additionally, none of Temple’s smart contracts are upgradeable. If any contract logic needs to be changed, the entire contract must be redeployed.

TempleDAO is constantly improving its Admin Controls. More contract infrastructure is being built out to further automate and decentralise our Treasury operations and governance process. Read more about the vision and implementation for Temple governance in our [Medium](https://templedao.medium.com/a-new-foundation-for-treasury-management-f6693b7260d3).


# Disclaimer

All the information on this website is published in good faith and for general information purposes only. The TempleDao is distributed because it will be helpful and serve only within the grounds and limits described on the website mentioned above.&#x20;

TempleDAO is a platform. We are not a broker, financial institution, or creditor. Services provided on this website do not include an offer to sell or a solicitation of an offer to buy any securities, options, futures, or other derivatives related to securities in any jurisdiction and its content is not prescribed by securities laws. TempleDAO is not a platform to invest and it does not cooperate with investors and other investment services. An activity of this platform precludes any connection with ethereal or immaterial assets, which also exclude a possibility to sell, buy or hold such an asset as tokens and to receive certain income.&#x20;

Nothing in this platform constitutes or should be construed as:

1. An offer or solicitation of an offer to purchase or sell any security other asset or service, which connects with intangible benefits;
2. Financial investment, trading advice or an offer to provide such advice and/or service;&#x20;
3. A basis for making any investment decision.

The platform exists based on cooperation and providing information and/or other services for users directly related to entertaining and/or other activity bringing about a specific state of immaterial affairs. The service available is accessible through the service provided “As is” and, to the fullest extent, permissible according to applicable law. TempleDAO disclaims all warranties, express or implied, including, but not limited to, implied warranties of merchantability, fitness for a particular purpose, and non-infringement, and warranties implied from a course of performance or course of dealing. The TempleDao does not make any warranties about the completeness, reliability and accuracy of this information, warranty of merchantability or fitness for a particular purpose. This platform does not make any warranties about the completeness and accuracy of this information.&#x20;

TempleDAO and its suppliers make no warranty that the platform will:

1. Meet your requirements;
2. Be available on an uninterrupted, timely, secure, or error-free basis;
3. Be reliable, complete or safe.

The platform will not be liable for any loss of any action taken or taken in reliance on material or information contained on the service. TempleDAO is making the use of the service and content safe. Nevertheless, it does not represent or warrant that the service and content on our platform are free of viruses or other harmful components.&#x20;

You bear full responsibility for providing private information, verifying the identity and legitimacy. Notwithstanding indicators and messages that suggest providing private information and verification, TempleDAO makes no claims about the identity on the platform. As a result, we cannot guarantee the security of any data disclosed online and for sustained casualties due to vulnerability or any failure, abnormal behavior of the software.&#x20;

Any action you take upon the information you find on this website is strictly at your own risk. Decisions based on information contained on this website are the sole responsibility of the visitor. TempleDao will not be liable for any losses and/or damages in connection with the use of the website. You must conduct your own research and satisfy yourself with your own situation, familiarity and knowledge of information or service provided by this platform.

Nothing in this disclaimer, any information content or material shall or shall be constructed to create any legal relations between you and us nor grant any rights or obligations to either of us.&#x20;

*<mark style="background-color:yellow;">This platform may not be compliant in some particular jurisdictions, and for any reason, you may face proceedings from the authorities of the jurisdiction you are a resident of. The United States of America residents are not allowed to use the information and/or service available at TempleDAO.</mark>*&#x20;


# Links

* [TempleDAO website](https://www.templedao.link/)
* [Twitter](https://x.com/templedao)
* [Discord](https://discord.com/)
* [Medium](https://templedao.medium.com/)
* [Telegram community](https://t.me/TempleDAOcommunity)
* [GitHub](https://github.com/TempleDAO/TempleDAO)
* [YouTube](https://www.youtube.com/channel/UClng5A5SwDo62t7DSXul-2Q)
* [Soundcloud](https://soundcloud.com/templedao)


