# Are there any OpenZeppelin libraries deployed publically?

**URL:** <https://forum.openzeppelin.com/t/are-there-any-openzeppelin-libraries-deployed-publically/15354>\
**Category:** Contracts\
**Created:** [September 11, 2021, 12:15am UTC](https://forum.openzeppelin.com/t/are-there-any-openzeppelin-libraries-deployed-publically/15354 "2021-09-11T00:15:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wattsy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/wattsy/32/8840_2.png) [@Wattsy](https://forum.openzeppelin.com/u/Wattsy)\
**Post date:** [September 11, 2021, 12:15am UTC](https://forum.openzeppelin.com/t/are-there-any-openzeppelin-libraries-deployed-publically/15354/1 "2021-09-11T00:15:26Z")

</div>

I’m working on deploying a tested contract to MainNet. The embedded OpenZeppelin contracts are around 20kB, so I intend to deploy pieces of it as libraries.

However, I wondered if there already exists verified/scanned/versioned OZ libraries deployed the same way, which would drastically cut down on the cost and maintenance to basically do the same thing for myself and possibly pollute the chain.

Is there a directory of contract addresses containing any OZ code such as SafeMath, etc.?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![moltam89](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/moltam89/32/20706_2.png) [@moltam89](https://forum.openzeppelin.com/u/moltam89)\
**Post date:** [March 28, 2024, 12:48pm UTC](https://forum.openzeppelin.com/t/are-there-any-openzeppelin-libraries-deployed-publically/15354/2 "2024-03-28T12:48:51Z")

</div>

bump  
anyone knows the answer?

---

<div class="post-metadata">

**Author:** ![Amxx](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/amxx/32/668_2.png) [@Amxx](https://forum.openzeppelin.com/u/Amxx)\
**Post date:** [March 29, 2024, 12:46pm UTC](https://forum.openzeppelin.com/t/are-there-any-openzeppelin-libraries-deployed-publically/15354/3 "2024-03-29T12:46:30Z")

</div>

All OZ library use internal function (not public). The means that they are not deployed as separate pieces of code that you would reuse, but rather that the code they provide is included directly in the contract that use them. These internal calls are cheaper to use than external ones (to a shared library).

If you are facing size limits, you should start by checking that optimizations are turned on. If that is not enough, we would definitelly love to hear more about your usecase. The next solution (after opimizations) is to use a "vtable proxy". This is not nativelly supported by OZ yet, but part of the migration to namespaces in 5.0 was so that we could enable this.
