# Litigations

## Cancelling Your Stake

In case of conflict with your partner stakes, you can decide to just cancel the sake such that each party is refunded any tokens that the party might have put in the stake.

To do so, go to the control panel menu of your stake and click on the **Update Agreement** button

<div><figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FGFKKlUZdkjS0BQ3xTsXs%2Fstake4.png?alt=media&#x26;token=fe0336af-75aa-4a4e-b59e-f2729521bd4a" alt=""><figcaption></figcaption></figure> <figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FxlqMYnAjCq5r9uUw3d1V%2Fstake21.png?alt=media&#x26;token=15f43116-11e1-49c4-9bf8-639a74d8b669" alt=""><figcaption></figcaption></figure></div>

Set the agreement level to Not Good and validate the transaction. Once every other partner in the stake has update his/her stake's agreement level to Not Good as well, any stake owner that has tokens in the partnership will be able to withdraw it by cancelling his/her stake.&#x20;

To cancel your stake, go to its panel and make sure you've selected that stake by clicking on its ID. In the example below, we've selected the stake with ID 1

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2Fr8jx5Tu0Fj8TNTPh3OnW%2Fstake10.png?alt=media&#x26;token=6f2efe63-e9ce-4ac5-90d0-fb458928820f" alt=""><figcaption></figcaption></figure>

Click on the Control Panel button and then on the Cancel Stake button. Make sure the ID of the stake is the right one and validate the transaction.

<div><figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FVKh3E0o0zkYwkZdfLM30%2Fstake22.png?alt=media&#x26;token=bd59acd6-2f10-4ad8-a657-96ead76fd768" alt=""><figcaption></figcaption></figure> <figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2F4ENVn2Pu3glYSS8JZv7f%2Fstake23.png?alt=media&#x26;token=d32f8c7f-bf39-4ec7-bcba-60fb21a66cc3" alt=""><figcaption></figcaption></figure></div>

This will cancel your stake and refund any tokens you might have, locked in the contract.

## Litigations

In some cases you might not be able to agree with your partners on refunding each party its due. In that case, you will have to go through a litigation process in which you leave it up to the community of your stake's workspace to decide on which party is in the right.

Before you start any litigation, make sure you update the gas percentage on your stake, this is the percentage of the amount of tokens you've currently deposited into your stake that you are willing to pay the community for voting on your litigation. The more you are willing to pay the community, the more weight your litigation will have and therefore, the more votes it will receive.

Remember that the gas fee is not a bribe and will not determine whether the voters vote for/against you since they will be paid equally either way, just as long as they vote on the litigation.

If you do not have any tokens in the stake yet and are willing to pay incentivize votes on your litigation, you should deposit some tokens and then update the gas percentage on your stake.

The total gas paid for your litigations will be computed as such:&#x20;

gas = (your\_gas\_fee \* your\_tokens\_deposited + partner\_gas\_fee \* partner\_tokens\_deposited) / 100

For a guide on how to update the gas percentage of your stake or how to deposit tokens in your stake, please read the sections below.

To start a litigation, go to the panel of your stake, click on its ID to select it and then on the **Control Panel** button. From the control panel menu, click on the **Start Waiting Period** button. Enter your stake ID as the Attacker ID and the ID of the stake you want to attack

<div><figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2F2WhfN9R1JNRpYqpbJSqH%2Fstake24.png?alt=media&#x26;token=a4f5138a-bd11-46ff-9b00-417a3d16fd9b" alt=""><figcaption></figcaption></figure> <figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2F7E2zCy8PeDalyr163fRS%2Fstake25.png?alt=media&#x26;token=c9c14d8c-8a2e-4cfa-95e2-86def0f22b4b" alt=""><figcaption></figcaption></figure></div>

This will start a waiting period during which you and the stake you are attacking have the ability to update the payment terms update you are requesting.

If the initial payments terms stated that your stake will pay a one time payment (**Period Receivable** set to 0) of 10 USD (**Amount Receivable**) to the partner stake for instance, and you now disagree with that (maybe because the owner of the partner stake has not fulfilled a service that he/she was suppose to fulfill), you both have until the end of the waiting period to each propose new payment terms and let the community decide which one is the right one.

In case of a litigation, you both will have conflicting payment terms and the terms of the party that wins the community vote will be accepted as the new terms of the contract. Continuing with the example above, you might now be willing to pay 0 USD (Amount Receivable) and receive 10 USD (Amount Payable) as a refund back from the partner stake.&#x20;

In case the funds are still locked in escrow, the refund will still be possible. Otherwise, you can only withdraw what's left in escrow no matter if you win the vote or not, so be sure to only let your partners withdraw as many tokens as you are ready to let them withdraw.

The duration of the waiting period depends on each stake and is set when creating the stake. It is also updated when accepting stake applications. If the waiting period on your stake was 24 hrs for instance and you accept an application from a stake that proposes a waiting period of 30 minutes, the waiting period of your stake will be updated from 24 hrs to 30 minutes. So make sure you read the proposed waiting periods on the stakes that you accept as partners.

During the waiting period before the start of your litigation, you can update the new payment terms of your stake contract by going to the control panel menu of your stake and clicking on the **Update Before Litigation** button

<div><figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FY1cyqk4iOH0bFys1JYG3%2Fstake24.png?alt=media&#x26;token=cf3d4582-6516-438a-9f9a-424f13c42ff3" alt=""><figcaption></figcaption></figure> <figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FjbGTrHcKMKYvNElWNIpS%2Fstake27.png?alt=media&#x26;token=da6abd8d-f27b-4746-bbac-a4c085f3d622" alt=""><figcaption></figcaption></figure></div>

Propose new payment terms and validate the transaction.

You should now wait for the end of the waiting period to actual start the litigation. Once the waiting period ends, you should be able to see the mention Litigation ongoing on your stake like in the image below

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FeLxypg2Fa5nH9AlxAVC3%2Fstake28.png?alt=media&#x26;token=eb663b25-eca2-4831-acc7-8a4de0f274c3" alt=""><figcaption></figcaption></figure>

Click on the Control Panel button and then on the **Start Litigations** button

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FgKYcDb1x69idrqgXYMQc%2Fstake29.png?alt=media&#x26;token=02752fb3-191f-4e97-ade9-d1678052449e" alt=""><figcaption></figcaption></figure>

This will open up the litigation creation page below

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2Fi6Io5fqr8zGEKK1OIbNW%2Fstake30.png?alt=media&#x26;token=e304cc49-4eb5-4ca9-9cd4-0d8cd2b57168" alt=""><figcaption></figcaption></figure>

Enter your stake ID as the attacker and your partner's stake ID the defender. Write an short but clear title and provide more details on the conflict in the body section. Make sure you provide links to any proof, screenshots of conversations, etc. Anything that might help convince the community so that it votes for your newly proposed payment terms.

Validate and confirm the transaction. and then go to the litigation page by clicking on the Voting button in the breadcrumbs section of the page

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FnkFAIElT3oYsXIvb6tly%2Fstate29.png?alt=media&#x26;token=40086ac4-68cc-411b-86c8-db811a688fd1" alt=""><figcaption></figcaption></figure>

Use the search bar to search for your litigation from the litigation page by parent stake ID. The parent stake in a stake partnership is the first stake, the one that has accepted applications from all the other partner stakes. To search for your stake, you will need to search for the ID of your parent stake.&#x20;

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FGfxktpru3DQDNJGXSUZQ%2Fstake31.png?alt=media&#x26;token=424afe98-296c-4488-bf2e-c45f3c99be92" alt=""><figcaption></figcaption></figure>

Click on it to go to its voting page and proceed to voting. You can read a guide on how to vote on the page below under the **Voting** section, since voting on a stakemarket litigation is very similar to voting on a trustBounty litigation.

{% content-ref url="../trustbounties/ft-bounties" %}
[ft-bounties](https://ekontetevi.gitbook.io/tubecoin/products/trustbounties/ft-bounties)
{% endcontent-ref %}

The details page of a stakemarket litigation is different from that of a trustBounty though. On a stakemarket litigation, you will be able to view in the Details section, the proposed terms of both parties involved in the litigation. As we can see in the image below both parties are proposing conflicting terms, the terms of the winning party will be considered the new terms of their stake partnership.

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FRLlxWnj3dYhg1C0iz6ia%2Fstake32.png?alt=media&#x26;token=47af234b-4eb3-4c34-86d5-4186107ce798" alt=""><figcaption></figcaption></figure>

After the voting window has closed, you can run a function to apply the new payment terms to your stake partnership.&#x20;

To do so, click on the Apply Results at the bottom left section of your litigation's voting page

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2Fh1tPcDTmiW08DtLvGFOK%2Fstake33.png?alt=media&#x26;token=e018e18d-3f1b-4e77-b945-5aacdcd2eefc" alt=""><figcaption></figcaption></figure>

This will update the new terms of the contract but wait for a period of 7 days for a potential appeal before allowing the winner to make any withdrawal from the stake.

The loser of the vote has 7 days to appeal the vote or the results of the current vote will be considered final. You should be able to view the number of time left until the end of the appeal window on you stake panel like in the image below where we have 6 days 13 hours and 9 minutes left.

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2Fa9KXdQXt0cWgYeOf2U6c%2Fstake34.png?alt=media&#x26;token=0576e5c6-9638-47e5-802a-88541a7dd9a4" alt=""><figcaption></figcaption></figure>

During the appeal window, the loser of the vote can appeal the decision of the community. To do so, click on the Control Panel button and then on the **Update Status Or Appeal** button

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FgKYcDb1x69idrqgXYMQc%2Fstake29.png?alt=media&#x26;token=02752fb3-191f-4e97-ade9-d1678052449e" alt=""><figcaption></figcaption></figure>

This will open up the appeal page so you could input the reasons of your appeal, the stake ID of the attacker on the litigation and validate the transaction

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FYb5vyMvcMMAK7w9Ff5g5%2Fstake35.png?alt=media&#x26;token=e241e92c-daba-471c-8544-4d6296a8b80d" alt=""><figcaption></figcaption></figure>

Keep in mind that appeals are not necessarily free, if you want the community to vote on your appeal, you will need to incentivize them with tokens like described above and this time your partner that has won the previous litigation might not be willing to add gas to the litigation in order to incentivize votes on it.

Appeals are essentially new litigations, they go through the same 7 days voting period and can be appealed as well. This whole process can keep going on as long as at least one of the parties involved is willing to keep paying gas fees on litigations.

When the appeal window has closed and there has not been any appeals submitted, the winning party will be able to apply the terms he/she proposed during the litigations, to the stake partnership. To do so, go to the control panel menu of your stake and click on the **Update Status Or Appeal** button

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FgKYcDb1x69idrqgXYMQc%2Fstake29.png?alt=media&#x26;token=02752fb3-191f-4e97-ade9-d1678052449e" alt=""><figcaption></figcaption></figure>

This will open up the status update page, you do not need to input a title or a body  here, just the attacker stake ID of the litigation you just won and validate the transaction.

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FeqpbNGD9ArTnE4EvNUkA%2Fstake36.png?alt=media&#x26;token=3ec6d308-b0a3-46b6-a26f-a027c65494d9" alt=""><figcaption></figcaption></figure>

Congratulations !!! You should now be able to withdraw tokens from your stake partnership according to the winning payment terms of the litigation.

## Updating Gas Percentage

To update the gas percentage of your stake, go to the control panel menu of your stake and then click on the **Update Requirements**' button, set the Gas Percent parameter to the desired value (in the image below, we're setting it to 1% of all the tokens we've deposited into the stake)

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FDwwxqW3NqZ8fcyykLmqK%2Fstake39.png?alt=media&#x26;token=c7cb31f9-c138-4eb4-b19e-51bfc24f65e9" alt=""><figcaption></figcaption></figure>

Validate and confirm the transaction. You should be able to see the changes reflected in the parameters' section of your parent stake (which is the stake you applied to or the stake you used to accept applications). If you do not see the changes but the update operation went smoothly, reload the page and check again.

## Depositing Tokens Into A Stake

To deposit tokens into your stake, make sure you find your parent stake and that you select your stake from its panel like in the image below where we've selected the stake with ID 1

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2Fr8jx5Tu0Fj8TNTPh3OnW%2Fstake10.png?alt=media&#x26;token=6f2efe63-e9ce-4ac5-90d0-fb458928820f" alt=""><figcaption></figcaption></figure>

Click on the **Control Panel** button and then on the **Deposit** button

<div><figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FqmkudjEDOQQMImj89QoD%2Fstake29.png?alt=media&#x26;token=a63fa60a-0659-40a5-8609-4c80072f6e8d" alt=""><figcaption></figcaption></figure> <figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FRJABAXTcZ9HaAnQz45lZ%2Fstake37.png?alt=media&#x26;token=1f90d7b0-1acf-4748-92d8-b204a0d818d1" alt=""><figcaption></figcaption></figure></div>

Enter the amount of tokens you wish to deposit and validate the transaction. You should be able to see the changes reflected in the parameters' section of your stake through the **Paid Receivable** parameter which should have increased by the amount you've just deposited minus PaySwap's share of 1%

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2Fh7DRhigtK21Jq2sfAbK4%2Fstake38.png?alt=media&#x26;token=09f50b5e-2574-4fd3-8adb-08201af7501f" alt=""><figcaption></figcaption></figure>

You should also be able to see the **Total Liquidity** parameter on your panel increase by the amount you've just deposited

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2Fa9KXdQXt0cWgYeOf2U6c%2Fstake34.png?alt=media&#x26;token=0576e5c6-9638-47e5-802a-88541a7dd9a4" alt=""><figcaption></figcaption></figure>

If you do not see the changes but the transaction went smoothly, reload the page and check again.

## Voting Compensation

PaySwap enables you to be compensated for participating in litigation votes regardless of how you vote.

<figure><img src="https://1098290585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgbtC1OtK6WPXJAWRcR%2Fuploads%2FGfxktpru3DQDNJGXSUZQ%2Fstake31.png?alt=media&#x26;token=424afe98-296c-4488-bf2e-c45f3c99be92" alt=""><figcaption></figcaption></figure>

Each litigation has a weight associated with it representing the extent to which each of them has contributed to the total reward pool. The reward pool is distributed among voters with respect to how many votes they've participated in and the litigations they've voted on.

[Get further support from the community here.](https://paychat.payswap.org/#/room/%23paycom%3Amatrix.org?via=matrix.org)
