# Add an extraSell fee

**URL:** <https://forum.openzeppelin.com/t/add-an-extrasell-fee/15522>\
**Category:** Contracts\
**Tags:** solidity\
**Created:** [September 14, 2021, 10:06am UTC](https://forum.openzeppelin.com/t/add-an-extrasell-fee/15522 "2021-09-14T10:06:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_Monsieur](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/m_monsieur/32/5550_2.png) [@M\_Monsieur](https://forum.openzeppelin.com/u/M_Monsieur)\
**Post date:** [September 14, 2021, 10:06am UTC](https://forum.openzeppelin.com/t/add-an-extrasell-fee/15522/1 "2021-09-14T10:06:06Z")

</div>

hi  
is it possible to add fee when selling token ?  
for instance  
buy :  
uint256 public liquidityFee = 2;  
uint256 public marketingFee = 3;

sell :  
uint256 public liquidityFee = 3;  
uint256 public marketingFee = 4;

how to integrate this in the code ? thanks

---

<div class="post-metadata">

**Author:** ![FreezyExIsNotABitch](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@FreezyExIsNotABitch](https://forum.openzeppelin.com/u/FreezyExIsNotABitch)\
**Post date:** [September 14, 2021, 11:11am UTC](https://forum.openzeppelin.com/t/add-an-extrasell-fee/15522/2 "2021-09-14T11:11:35Z")

</div>

Yes, it is totally possible
