# How i can create a Stablecoin Token using ERC20?

**URL:** <https://forum.openzeppelin.com/t/how-i-can-create-a-stablecoin-token-using-erc20/18757>\
**Category:** Smart Contracts\
**Created:** [November 12, 2021, 11:27am UTC](https://forum.openzeppelin.com/t/how-i-can-create-a-stablecoin-token-using-erc20/18757 "2021-11-12T11:27:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kypanz](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/kypanz/32/1682_2.png) [@kypanz](https://forum.openzeppelin.com/u/kypanz)\
**Post date:** [November 12, 2021, 11:27am UTC](https://forum.openzeppelin.com/t/how-i-can-create-a-stablecoin-token-using-erc20/18757/1 "2021-11-12T11:27:46Z")

</div>

Hello i am so courius about how i can create a stablecoin, i know is not easy and this has a lot of process, but in the develop way how i can asociate the unestable price of ether to 1 dollar all the time ? i dont have idea how this really works, if you have an example in code how i can do this i really i apreciate because i read a lot of whitepappers and a lot of documentation in internet but i dont see a develop example to do this stablecoin 1:1 in develop  
Thanks for read !

---

<div class="post-metadata">

**Author:** ![frangio](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/frangio/32/15251_2.png) [@frangio](https://forum.openzeppelin.com/u/frangio)\
**Post date:** [November 15, 2021, 9:59pm UTC](https://forum.openzeppelin.com/t/how-i-can-create-a-stablecoin-token-using-erc20/18757/2 "2021-11-15T21:59:36Z")

</div>

You may not find examples in code because a stablecoin requires a lot of code to work.

If you really want to get deep into it, you can maybe look at the implementation of RAI at [https://github.com/reflexer-labs/geb](https://github.com/reflexer-labs/geb).
