# XdYe Bar Test

In order to test XdYe Bar capabilities, what we need to check is that:

* User can deposit inside contract
* Contract mints xXdYe and transfer them to user
* User can withdraw from contract and gets their corresponding XdYe rewards

As we have not deployed XdYe Maker yet, we will just send XdYe tokens to the contract in order to test the correct usability of XdYe Bar.

### Test Info

We are going to use 2 addresses, each one with 10,000 XDYE. Once they enroll in XdYe Bar they have to get the same amount of xXdYe. After they will get rewarded with the same *'profits'* as they hold the same XdYe Shares.

The script used for testing all those capabilities: *(1)*&#x20;

{% embed url="<https://github.com/rogerCapone/XdYe_Tests/blob/main/Bar_DepositWithdrawAndEarn.js>" %}
Script for testing enter and leave from Bar contract
{% endembed %}
