# GIMME FIVE Route

This route goes through [pDAI](https://affection.gitbook.io/docs/token-contracts/pdai-dai) to [GIMME FIVE](https://affection.gitbook.io/docs/token-contracts/gimme-five-5) to [AFFECTION™](https://affection.gitbook.io/docs/token-contracts/affection-tm-a).

This guide assumes you’ve read and understand [how to interact with contracts](https://affection.gitbook.io/docs/contract-gui).

{% hint style="info" %}
Check the current [exchange rates](https://affection.gitbook.io/docs/faq#what-are-the-current-prices) to know which route is profitable!
{% endhint %}

## Step-by-step Guide

1. Add [pDAI](https://affection.gitbook.io/docs/token-contracts/pdai-dai) to [scgui.aff.icu](https://scgui.aff.icu)\\

   <figure><img src="https://724266576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvpQTLAHrVaPSs8HZzOYQ%2Fuploads%2FW3WqhcddSy1s7s2JaG7p%2Fimage.png?alt=media&#x26;token=f53f7304-fc68-43c1-93ec-a5e0c34994f2" alt=""><figcaption></figcaption></figure>

2. Add [GIMME FIVE](https://affection.gitbook.io/docs/token-contracts/gimme-five-5) to [scgui.aff.icu](https://scgui.aff.icu)\\

   <figure><img src="https://724266576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvpQTLAHrVaPSs8HZzOYQ%2Fuploads%2FCDosH17C1GObfeUQNRX2%2Fimage.png?alt=media&#x26;token=ddfb455b-6b69-4878-99a5-3a5457942d71" alt=""><figcaption></figcaption></figure>

3. Add [AFFECTION™](https://affection.gitbook.io/docs/token-contracts/affection-tm-a) to [scgui.aff.icu](https://scgui.aff.icu)\\

   <figure><img src="https://724266576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvpQTLAHrVaPSs8HZzOYQ%2Fuploads%2FbDQelo8fLZUVYLV4HoCy%2Fimage.png?alt=media&#x26;token=2c5c7c8d-e97a-468b-92a7-a6188b86af0f" alt=""><figcaption></figcaption></figure>

4. Open the [pDAI](https://affection.gitbook.io/docs/token-contracts/pdai-dai) contract and call approve() with spender [GIMME FIVE](https://affection.gitbook.io/docs/token-contracts/gimme-five-5) and amount 5000000000000000000 for 5 tokens\\

   <figure><img src="https://724266576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvpQTLAHrVaPSs8HZzOYQ%2Fuploads%2FHkTHDGRFUSoC4gT04MPc%2Fimage.png?alt=media&#x26;token=fbbe13c0-4a4c-4f3c-ac09-2add73649c7b" alt=""><figcaption></figcaption></figure>

5. Open the [GIMME FIVE](https://affection.gitbook.io/docs/token-contracts/gimme-five-5) contract and call BuyWithDAI() to mint 1 token, this is sent straight to your wallet\\

   <figure><img src="https://724266576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvpQTLAHrVaPSs8HZzOYQ%2Fuploads%2FFawMmBGaU13Y15scLkvB%2Fimage.png?alt=media&#x26;token=df73ea58-63b2-4d7a-9d8e-c493a02700d8" alt=""><figcaption></figcaption></figure>

6. Open the [GIMME FIVE](https://affection.gitbook.io/docs/token-contracts/gimme-five-5) contract and call approve() with spender [AFFECTION™](https://affection.gitbook.io/docs/token-contracts/affection-tm-a) and amount 600000000000000000 for 0.6 tokens\\

   <figure><img src="https://724266576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvpQTLAHrVaPSs8HZzOYQ%2Fuploads%2FZfYXJqxinivML1JjvlxK%2Fimage.png?alt=media&#x26;token=b88acd41-1d10-418e-a936-adc6ff278854" alt=""><figcaption></figcaption></figure>

7. Open the [AFFECTION™](https://affection.gitbook.io/docs/token-contracts/affection-tm-a) contract and call Generate() or Rho() or Pi() to mint 3 tokens, this gets sent to the contract address\\

   <figure><img src="https://724266576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvpQTLAHrVaPSs8HZzOYQ%2Fuploads%2FtuCoN81boUVmD3EW4WJ5%2Fimage.png?alt=media&#x26;token=e4808cc9-369a-4934-a1d9-ca4577424c6c" alt=""><figcaption></figcaption></figure>

8. With [AFFECTION™](https://affection.gitbook.io/docs/token-contracts/affection-tm-a) contract open, call BuyWithG5() with amount 3000000000000000000, this will purchase all 3 tokens from the contract for 0.6 [GIMME FIVE](https://affection.gitbook.io/docs/token-contracts/gimme-five-5) tokens\\

   <figure><img src="https://724266576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvpQTLAHrVaPSs8HZzOYQ%2Fuploads%2FNpsziAO7E0S3lLMIjyub%2Fimage.png?alt=media&#x26;token=fe018d4e-8ac5-4729-9234-287c625f73d5" alt=""><figcaption></figcaption></figure>

9. Swap the [AFFECTION™](https://affection.gitbook.io/docs/token-contracts/affection-tm-a) on PulseX for PLS or [pDAI](https://affection.gitbook.io/docs/token-contracts/pdai-dai)

Repeat steps 4-9 as long as there is a decent profit margin. Once you are comfortable you can approve a higher amount of tokens to skip steps 4 and 6 and speed up your arbs!

Step 8 might fail because someone else buys it from the contract faster than you, most likely due to bots. Read on for a way to get around this problem.

## Optimizations

Use my [multi mint contracts](https://affection.gitbook.io/docs/multi-mint-contracts) to do this even faster, up to 400-500 times in a single transaction! By using this you can combine steps 7 and 8 into one function. This section will replace steps 4 to 8 from above with 10 to 15.

10. Open the [pDAI](https://affection.gitbook.io/docs/token-contracts/pdai-dai) contract on [scgui.aff.icu](https://scgui.aff.icu) and call approve() with spender [0xa4c61D20945c11855E7A390153fd29ceC9C7349b](https://affection.gitbook.io/docs/multi-mint-contracts/multi-g5) with any amount followed by 18 zeros, example: 100000000000000000000 for 100 tokens\\

    <figure><img src="https://724266576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvpQTLAHrVaPSs8HZzOYQ%2Fuploads%2FS4xLID7tGrE9BXH5h5qH%2Fimage.png?alt=media&#x26;token=06e271de-c4b1-4ade-92e2-a5539d48544c" alt=""><figcaption></figcaption></figure>

11. Add the [Multi G5](https://affection.gitbook.io/docs/multi-mint-contracts/multi-g5) contract to [scgui.aff.icu](https://scgui.aff.icu)\\

    <figure><img src="https://724266576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvpQTLAHrVaPSs8HZzOYQ%2Fuploads%2FR2lYl0ELtMF62ysW5YME%2Fimage.png?alt=media&#x26;token=4b34f750-2b48-4424-ba42-65c361644eae" alt=""><figcaption></figcaption></figure>

12. Open it and call the function multiBuyWithDAI() with iterations 100, this will purchase 100 [GIMME FIVE](https://affection.gitbook.io/docs/token-contracts/gimme-five-5) from the contract in one transaction\\

    <figure><img src="https://724266576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvpQTLAHrVaPSs8HZzOYQ%2Fuploads%2FxldHhoontUYG99gyrquS%2Fimage.png?alt=media&#x26;token=21508c85-62e5-4f69-a54f-66f2c6778999" alt=""><figcaption></figcaption></figure>

13. Open the [GIMME FIVE](https://affection.gitbook.io/docs/token-contracts/gimme-five-5) contract on [scgui.aff.icu](https://scgui.aff.icu) and call approve() with spender [0x81fcd03D2100A0fE9767C0CfC68050bdc6a2969d](https://affection.gitbook.io/docs/multi-mint-contracts/multi-affection-tm) and any amount followed by 18 zeros, example: 60000000000000000000 for 60 tokens\\

    <figure><img src="https://724266576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvpQTLAHrVaPSs8HZzOYQ%2Fuploads%2FuBFMGxSkHEMOHJTlPvwg%2Fimage.png?alt=media&#x26;token=3d7cd8a3-ea6a-44ec-bc9f-28784d3b6e8d" alt=""><figcaption></figcaption></figure>

14. Add the [Multi AFFECTIO&#x4E;**™**](https://affection.gitbook.io/docs/multi-mint-contracts/multi-affection-tm) contract to [scgui.aff.icu](https://scgui.aff.icu)\\

    <figure><img src="https://724266576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvpQTLAHrVaPSs8HZzOYQ%2Fuploads%2F44eH3iWBYszDU7AnZKFd%2Fimage.png?alt=media&#x26;token=2b3b0244-e3a4-47d0-ae16-3f9e7b9497a8" alt=""><figcaption></figcaption></figure>

15. Open it and call the function multiBuyWithG5() with iterations 100, this will purchase 300 [AFFECTION™](https://affection.gitbook.io/docs/token-contracts/affection-tm-a) from the contract in one transaction\\

    <figure><img src="https://724266576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvpQTLAHrVaPSs8HZzOYQ%2Fuploads%2FN0eZ2TwIxqQFyaDEQDOP%2Fimage.png?alt=media&#x26;token=a0c142b1-6c4d-46c7-8d5f-15428564d716" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
This contract will bypass bots sniping the [AFFECTION™](https://affection.gitbook.io/docs/token-contracts/affection-tm-a) mint function.
{% endhint %}

{% hint style="info" %}
This should help reduce the gas costs to mint each token down to 5-10 PLS
{% endhint %}
