> For the complete documentation index, see [llms.txt](https://ethernal-elves.gitbook.io/ethernal-elves/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ethernal-elves.gitbook.io/ethernal-elves/archived/polygon-gameplay.md).

# Polygon Gameplay

Our Layer 2 Solution works by securely sending your Sentinel game state (DNA) between chains, Ethereum (L1) and Polygon (L2). This is achieved by only allowing a single operator to interact with the smart contract in Polygon, and by generating a single use signature to validate transactions back on Ethereum.

While your Elves are on Polygon, they are securely being held by our contract on Ethereum in a state of suspended animation. If you look up your Elf on the ETH view while it’s on Polygon you will see the last state it was in before the bridge.

When you bring assets back to ETH from Polygon, the DNA is transferred back into your Sentinel with the updated metadata.

Because the system is heavily dependent on the GUI, it is not possible to bridge out of Ethereum using the contract directly.

## **Bridging**

### Ethereum -> Polygon

1. Select *up to* 10 Elves that are not in Passive staking or in cooldown
2. **\[Transfer]** Initiate the Elves you are sending
3. **\[Approve Transfer]** Approve the Ethereum transaction and pay the minor gas fee
4. **\[Confirm Transfers]** Opens the transfer website to see approved but pending bridges
5. **\[Confirm Transfers to Polygon]** Select up to 10 Elves to finalize the bridging process

### Polygon -> Ethereum

1. The steps are the nearly identical, except when the gas fee is paid

{% hint style="danger" %}
**Warning:** When bridging an NFT from Polygon back to Ethereum, you *must* do an Action before initiating the bridge. If you do not do an Action, your NFT will get stuck.

The team will require an inconvenience tax of **10,000 $REN** to manually get the NFT unstuck (just kidding). But seriously, don't get your NFT stuck.
{% endhint %}

### Technical diagram

![](https://76336487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxfErf02MPB1Gl2AD0uCD%2Fuploads%2FGf4QgfV8ZhNtqN3zOI59%2F1.%20Icons.png?alt=media\&token=5788d498-bdba-488c-ae05-56201c04d54f)

{% tabs %}
{% tab title="L1 -> L2" %}
![](https://76336487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxfErf02MPB1Gl2AD0uCD%2Fuploads%2FSnPWIDXztf9ff4MZ8SVY%2F2.%20L1-L2.png?alt=media\&token=ec3a0169-8cda-4266-a42e-82f2ae54b3dd)
{% endtab %}

{% tab title="L2 -> L1" %}
![](https://76336487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxfErf02MPB1Gl2AD0uCD%2Fuploads%2F6PzcwNhAL33V3xdc9hdx%2F4.%20L2-L1.png?alt=media\&token=53224a72-b273-4412-99e4-29e28be2b134)
{% endtab %}
{% endtabs %}

## **Gasless Transactions**

Gameplay on Polygon is free, courtesy of the Ethernal Elves team. The operator is loaded with $MATIC to pay for all gameplay transactions done on Polygon. This does not include transactions paid with $REN, which is the token that powers the Elven universe.

{% hint style="warning" %}
**Note:** Be patient with metadata updates as it may take up to 10 minutes to process on Polygon. If you notice there are no changes to your NFT, press the top center green button to reset and restart your browser.&#x20;
{% endhint %}

{% tabs %}
{% tab title="Example gameplay on Ethereum" %}
![Diagram of an example interaction on Ethereum](https://76336487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxfErf02MPB1Gl2AD0uCD%2Fuploads%2FBwnPdPjCNbmdL0Ckc6ol%2FL1-vs-L2-eth-gameplay%20\(1\).png?alt=media\&token=6a59f704-51ac-4bf1-8f52-4c8daca911c4)
{% endtab %}

{% tab title="Example gameplay on Polygon" %}
![Diagram of an example interaction on Polygon](https://76336487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxfErf02MPB1Gl2AD0uCD%2Fuploads%2FqlEKCPRTy1UOXDCXOU6U%2FL1-vs-L2-polygon-gameplay.png?alt=media\&token=f0510614-2efe-431a-8033-26fab3043535)
{% endtab %}
{% endtabs %}

## **Transaction Limit**

While inconvenient for those with many Elves, for the security and stability of the project and to ensure smooth gameplay for all, there is currently a limit of **10 NFTs per transaction**.

As gameplay progresses, this may change this in the future.
