# Introduction

Astrolescent is a decentralized exchange aggregator that finds the best rates across multiple exchanges to swap, bridge, or set limit orders.

Astrolescent is a decentralized exchange (DEX) aggregator on the Radix network that provides you with the best trading routes for your swaps. By analyzing all leading DEXes, Astrolescent ensures you get the optimal price, maximizing the number of tokens you receive. For larger trades, the algorithm splits up trades across multiple DEXes to minimize price impact, further enhancing your returns.

By using Astrolescent, you automatically participate in the weekly airdrop, and by staking its token, $ASTRL, you receive a share of the fees generated by Astrolescent’s aggregator, bridge, limit order, pools, and validator node.

\ <br>


# Official Links

* Website: [https://astrolescent.com](https://docs.astrolescent.com/astrolescent-docs/decentralized-exchange-aggregator/description) (or <https://astrl.trade> if you need something shorter)
* Telegram: <https://t.me/astrolescent_official>
* Twitter: <https://twitter.com/Astrolescent>
* Github: <https://github.com/Astrolescent-Official>
* Docs: [https://docs.astrolescent.com/](https://docs.astrolescent.com/astrolescent-docs/decentralized-exchange-aggregator/description)
* Logos and icons <https://drive.google.com/drive/folders/1WDuVqeTKzwpxmsYIROyo8Vp8N8bPD6pl?usp=sharing>


# Team

Astrolescent was founded by Timan Rebel and Meronym in 2021, but is currently ran by Timan.

The Astrolescent team's path to building on Radix is a story of teamwork, smart moves, and seizing opportunities.

### Timan Rebel

Timan Rebel, a seasoned startup founder with over two decades of experience, is the driving force behind Astrolescent's operations. With a background in software development, Timan founded his first startup at the age of 24 and has since been a prominent figure in mentoring and investing in startups in Amsterdam.&#x20;

His proficiency encompasses frontend development, analytics, and online marketing. Notably, he's recognized within the Radix community for his adeptness at pairing each opportunity with a fitting Taylor Swift gif. Timan's foray into the world of crypto commenced three years ago, leading him to contribute to projects like Astrolescent, DefiPlaza, and HUG.


# Fees

### Swap

No fees are charged when *swapping* on Astrolesent. We add a small fee when third-parties that use our APIs or trading widgets add their fee.

### Bridge

A 0.1% fee is charged when using the cross-chain bridge.

### Limit Orders

A 0.1% fee is charged when adding limit orders.&#x20;

However, traders can earn fees by providing liquidity on Astrolescent. This means placing limit orders that aren't immediately matched on the orderbook. Once the order is eventually matched, the liquidity provider receives a fee of up to 0.35% of the trade's value.

This means it is possible that a negative fee is "charged" when creating the limit orders.


# ASTRL token

$ASTRL is the official governance and yield bearing token of the Astrolescent project.

{% hint style="success" %}
Radix Babylon resource address

`resource_rdx1t4tjx4g3qzd98nayqxm7qdpj0a0u8ns6a0jrchq49dyfevgh6u0gj3`
{% endhint %}

**Please note:** to use the latest features of the Radix Babylon network, the original Olympia ASTRL token is undergoing a migration program. Go to <https://astrolescent> to quickly and for free upgrade your (old) $astrl tokens to the new $ASTRL tokens.&#x20;

The Olympia token can be recognized by the lowercase $astrl symbol and its resource address below.

{% hint style="danger" %}
Radix Olympia resource address

`resource_rdx1t5ga7j04ek4laprf7xryxlu4hl04373sskdaaptfnjhnsns98vma8m`
{% endhint %}

### Utility

#### Staking

All of the profits of Astrolescent will be used to buy back ASTRL and will be deposited into the staking contract. &#x20;

The expected staking APY based on 3 million staked ASTRL is 10% to 15% yearly.&#x20;

At the start of each quarter, an overview of all the earned fees and the direct operating cost of the previous quarter will be published. The profit share for ASTRL stakers will be converted to ASTRL via the Astrolescent aggregator (bought on the market) and distributed linearly over the 12 weeks of the new quarter at a random day and time each week to prevent gaming of the staking system. This should ensure tokens stay staked over a longer period.&#x20;

The distribution of the fees will start on January 1st, 2024, with the distribution of the fees earned in Q4 2023.&#x20;

#### Voting

ASTRL and sASTRL can both be used to vote on governance votes by the AstrolescentDAO.

### Tokenomics

ASTRL has a total of 36 million tokens, after burning 64 million tokens in early 2023.

| Destination                                                                                                                                           | Percentage | Amount     |
| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | ---------- |
| [Community incentives and airdrops](https://dashboard.radixdlt.com/account/account_rdx16yz5f663lgzmef9p4ht6nu7aw4jza53lpgltrsa2hehyg7svllvc0a/tokens) | 75%        | 27 million |
| [Team](https://dashboard.radixdlt.com/account/account_rdx168zmr4v967a9n2pg6qkpce0njnvnfdd7lj8zxpuhpm3g3zmahm9kh0/tokens)                              | 19.4%      | 7 million  |
| [Marketing](https://dashboard.radixdlt.com/account/account_rdx16y6spuy7pvxj3v9ruezge6dvnvjkjja70wmv8fa4c73n4csl9p3pr5/tokens)                         | 5,6%       | 2 million  |

#### Distribution

**Airdrops**\
12,000,000 is reserved for monthly airdrops up to 100,000 ASTRL per month to incentivize the usage of Astrolescent products for 10 years.

2,000,000 ASTRL is reserved to refund lost tokens as a result of bugs and edge cases during the usage of Astrolescent products for up to $2000 per incident.

The additional supply of tokens will be used for special occasions.&#x20;

**Team**\
Up to 100,000 ASTRL will be distributed among the team members of Astrolescent each month for 6 years.

**Marketing**\
The 2,000,000 tokens will be used to run marketing campaigns

**Operating cost**\
The operating cost of Astrolescent will be funded from the revenue generated.

#### Locking

The tokens that are not needed during the present year will be locked with RadLock in October 2024.&#x20;

If vesting is available in time on RadLock a vesting schedule will be created to automatically unlock airdrop and team tokens each month. Otherwise, the tokens will be locked until October 2025 and relocked with a vesting schedule afterwards.


# sASTRL token

$sASTRL is the *Pool Unit* used to hold staked ASTRL and can be redeemed for ASTRL on <https://astrolescent.com/staking> or in the future directly via the Radix Mobile Wallet.

{% hint style="success" %}
Radix resource address

`resource_rdx1tkm0z9pkz0e59yf2258drzjwaq7axtcf2mupjz2ag9kwww4jvdfd6c`
{% endhint %}

Read more about [ASTRL Staking](/astrolescent-docs/tokens/rewards/staking).


# Airdrops

There are currently two ways supporters of Astrolescent are rewarded: [Providing Liquidity](/astrolescent-docs/tokens/rewards/providing-liquidity) and [Validator Staking](/astrolescent-docs/tokens/rewards/staking).

Besides doing Airdrops, we share 100% of our profits with[ ASTRL Stakers](/astrolescent-docs/tokens/tokenomics#staking) weekly, so stake your airdrop rewards to receive more ASTRL automatically!

{% hint style="info" %}
Only rewards larger than 1 ASTRL are distributed due to the transaction cost involved.

So, if you earn only 0.5 ASTRL per week, you can claim your rewards every two weeks.
{% endhint %}


# Trading

The weekly trading airdrops ended on December 31st, 2024.


# Providing Liquidity

Providing ASTRL liquidity on DefiPlaza makes users eligible for our Liquidity rewards, which are deposited weekly to our [Rewards Page](https://astrolescent.com/rewards).

{% hint style="info" %}
DefiPlaza Liquidity Pool

*Please note that only the ASTRL-side of the liquidity pool is rewarded. Providing only DFP2 does not yield rewards.*

[Direct Link](https://radix.defiplaza.net/liquidity/add/resource_rdx1t4tjx4g3qzd98nayqxm7qdpj0a0u8ns6a0jrchq49dyfevgh6u0gj3?direction=base)
{% endhint %}

5000 ASTRL is distributed weekly across all liquidity providers.


# Validator Staking

Staking on our Validator Node allows users to be eligible for the Staking rewards, which are uploaded every week to our [Rewards Page](https://astrolescent.com/rewards). &#x20;

{% hint style="info" %}
Validator Node

\`validator\_rdx1sw54cuswwzlcgw2zh3ax93pddnsm78qwwhmtvz650q84yyckzkh7nk\`

[Direct Link](https://dashboard.radixdlt.com/network-staking/validator_rdx1sw54cuswwzlcgw2zh3ax93pddnsm78qwwhmtvz650q84yyckzkh7nk)
{% endhint %}

7500 ASTRL is distributed weekly across all stakes on Astrolescent, which is 30,000 ASTRL per month.

The staked XRD amount may be weighted linearly or non-linearly to guarantee a smooth distribution of tokens.


# Getting started

### Onboard onto Radix

Before using Astrolescent, there are three things you’ll need, if you are not already familiar with the Radix network:

1. If you haven’t already, you’ll need to download the [Radix Wallet](https://wallet.radixdlt.com/)
2. Have enough XRD in your Radix Wallet to conduct simple transactions and pay fees, $10 should do it; you[ can buy XRD quite easily](https://www.radixdlt.com/token).
3. Have your mobile device and laptop/PC with you to perform and authorize transactions.&#x20;

### Connect wallet to Astrolescent

Connect your Radix Wallet by clicking on the Connect button in the top right corner:

![](https://lh7-qw.googleusercontent.com/docsz/AD_4nXd3tN6WPiW308uU8Fb71ZfQmD5bVxdX-SPw0Ly3NnS8e-EKEzDHiK58jEUa1s2QxW4LhXvt6DuCizgcu9Ya4YonyGbPMjbhuT2HNtq2O1OUxqqw_LINSgjfDUgFX5oUv58WpgrQlA5DCLw6Cy66vVB977g?key=Hb-UY9VdIzXWWVF_csZPvg)

Open your mobile Radix wallet to allow Astrolescent to connect to one or more of your accounts.

Done!


# Swap

Swapping tokens is the core of Astrolescent. Simply select the tokens you’d like to sell and buy and enter the amount. Astrolescent automatically analyses the best possible trading routes to give you the best possible price. Without any additional fees!

### How to Swap tokens

Start by going to [Astrolescent.com](http://astrolescent.com/), you will  immediately see the trade interface to make a swap.

<figure><img src="https://lh7-qw.googleusercontent.com/docsz/AD_4nXeN6_WWKHoaKvU9rViRIgsCf4qf6KozZGhHH2g8JmU5M9vBPewtsLS_z3WAVXBpmluIYuC9hWvTVDOHIHUWUG2CI1jA5wbf9TZ6j6PcK9KFG_4Zshf1k4_Q_coetI7ThymxCNUXkeakCWh4QfnK0fTCy3I?key=Hb-UY9VdIzXWWVF_csZPvg" alt="" width="375"><figcaption></figcaption></figure>

Connect your Radix Wallet by clicking on the Connect button in the top right corner:

<figure><img src="https://lh7-qw.googleusercontent.com/docsz/AD_4nXd3tN6WPiW308uU8Fb71ZfQmD5bVxdX-SPw0Ly3NnS8e-EKEzDHiK58jEUa1s2QxW4LhXvt6DuCizgcu9Ya4YonyGbPMjbhuT2HNtq2O1OUxqqw_LINSgjfDUgFX5oUv58WpgrQlA5DCLw6Cy66vVB977g?key=Hb-UY9VdIzXWWVF_csZPvg" alt="" width="375"><figcaption></figcaption></figure>

Now that your wallet is connected, you can select the token you’d like to sell, the token you’d like to buy and the amount of tokens you are selling.

<figure><img src="https://lh7-qw.googleusercontent.com/docsz/AD_4nXe0B3R9gOfhXNcAiPabYpKmBVxtdOJgF-CH0KAEWAqm4_NPJzpUfatrPK8uYmeoSjGseAAt-OFNJ9ccwARmU-5Qum7xUoTf-GMhM5yJQWGh5zypBGdQ1ZpqQZyVQL75Wkrcs2W1zWaItdJa16BLTggjJEo?key=Hb-UY9VdIzXWWVF_csZPvg" alt="" width="375"><figcaption></figcaption></figure>

Before clicking **Swap >**, preview if you like the deal that Astrolescent proposes.

<figure><img src="https://lh7-qw.googleusercontent.com/docsz/AD_4nXfkzyhU8p_yO8kaDlMYu-43mrPx1GTu6LFybScbnTbc7Q0NC9jg-_PQsyrxh1Vic4ZPuZyxn037qWMS8nsgPPquQof6mpSsrg_FyIeWkJnHrTgAN7Pr0BKgTw_AFQM0bwrCu-iPh12UFC-UwB6cilcOnFyL?key=Hb-UY9VdIzXWWVF_csZPvg" alt="" width="375"><figcaption></figcaption></figure>

If you like the trade proposal, click **Swap >** to start the trade. Open your mobile Radix wallet and check in the transaction preview if everything is in order.

<figure><img src="https://lh7-qw.googleusercontent.com/docsz/AD_4nXdRJXBwk96i5BOLe4JpPhdSvBzJDGNrrpqfZoy7BiklNTv9_y95nvfSIMJnUpkDNktHbcaWMs0htlsTED0pa7TZUWyLQt_YZzp3d_ABBpDo9gj9m0GD84iTdM1gJtRAIlRcc4yX1s6w7v5KLs62GQ4Hz5M?key=Hb-UY9VdIzXWWVF_csZPvg" alt="" width="375"><figcaption></figcaption></figure>

Congratulations! You just made your first optimized trade on Astrolescent.&#x20;


# Bridge

Cross-chain swapping, powered by Astrolescent

### How to Bridge tokens

Start by going to [astrolescent.com](http://astrolescent.com/), and click on [Bridge](https://astroelscent.com/bridge) in the header.

<figure><img src="https://2756210696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgpo8KnJwdPsTreA6fcK4%2Fuploads%2FVJ5atSsdmFhzkuC3Q6XN%2FScreenshot%202024-09-09%20at%2014.51.47.png?alt=media&amp;token=35796143-743f-4cb3-9adc-85d04dfe9926" alt="" width="375"><figcaption></figcaption></figure>

Here you can select the token you’d like to sell on any of the supported chains, the token you’d like to buy, and the amount of tokens you are selling.

<figure><img src="https://2756210696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgpo8KnJwdPsTreA6fcK4%2Fuploads%2FkOdpoZDrlyipEtPParwv%2FScreenshot%202024-09-09%20at%2014.51.59.png?alt=media&amp;token=a437cd2d-6620-4a15-8fe1-745cffc88d5b" alt="" width="375"><figcaption></figcaption></figure>

When you have selected the chains, tokens, and amounts of your choice, you need to connect the wallet of the chain you are selling from by clicking on the **Connect Wallet >** button. Astrolescent supports a wide variety of wallets, from MetaMask, Rabby, and Brave to WalletConnect, Ctrl, and of course the Radix Mobile wallet.

<figure><img src="https://2756210696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgpo8KnJwdPsTreA6fcK4%2Fuploads%2FOLwyJFgUP7rgXerGwtqh%2FScreenshot%202024-09-09%20at%2014.52.16.png?alt=media&amp;token=66635dcd-90c5-4cc3-92fe-2125e21126f7" alt="" width="375"><figcaption></figcaption></figure>

Make sure you enter a recipient address where the tokens you are buying are sent to, and click **Bridge >**.

<figure><img src="https://2756210696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgpo8KnJwdPsTreA6fcK4%2Fuploads%2FFiw3SrHIU0cEeQ1jiIjS%2FScreenshot%202024-09-09%20at%2014.52.39.png?alt=media&amp;token=63250d09-f0e6-485f-8dcb-c0240a747375" alt="" width="375"><figcaption></figcaption></figure>

For some tokens on Ethereum or other EVM chains, you may need to approve the spending of the tokens because of how the EVM chains operate.


# Advanced Settings

The bridge uses a set of sensible defaults to make trading as easy as possible for the average trader. We do however offer some more advanced settings.

### Optimize swap for

By default, we optimize swap for the best price and not for the fastest execution speed. To get you the best price, we may use something called Streaming Swaps from Maya and Thorchain.

#### Streaming swaps

Streaming swaps break up your trade into smaller bits that are executed over time. By default one part is executed every 5 blocks, which is about a minute, and the network automatically calculates the amount of parts to get you the best price.

It can happen that part of the transaction does not meet the slippage that you set, and that the price you want for the trade is not met. Without streaming swaps, the whole transaction is canceled, but with streaming swaps only the parts that fail are refunded. So if you get fewer tokens than expected, check your original wallet account to see if any refunds happened.

### Slippage

To protect you against large price fluctuations you can set the maximum slippage you want on the trade. By default, this is set to `3%`, but you can choose `1%`, `3%`, `5%` or even `10%`. The bigger the slippage, to more likely it is the trade will succeed, but you can get up to the slippage percentage less than expected.

### Transaction Priority Fees

When network congestion occurs on a chain, transactions might fail. To get your transaction executed you can set higher priority fees. We set the priority fees to `Fast` by default, to get a good balance between transaction fees and succeeded transactions. If you know what you are doing, you can lower or increase the priority fees.


# Limit Orders (Coming soon)


# ASTRL Staking

Astrolescent has a unique feature where 33% of its revenue is shared with people who stake their ASTRL tokens. The estimated APY is around 10% and is paid out on a weekly basis into the staking contract. This way the amount of ASTRL you have staked is slowly increasing and you get back more ASTRL then you put in.

Start by going to [astrolescent.com](http://astrolescent.com/), and click on [Stake](https://astrolescent.com/stake) in the header. Here you can see a graph displaying the value increase of the staked ASTRL per week

![](https://lh7-qw.googleusercontent.com/docsz/AD_4nXdWsOfdeG1zFs2ZT9tdewTyiLzqmnqZ59OqSpIjd2fhdq_g6A4hXhvdtCmer_BkyZnsFrD7BCcGHLgXd59kkzdkLrtJrnR_dmW16Dn47gRADOGadtz1k-wJ5xNRRadSVh49FNBteDgZIzD3SDf6BANFa59K?key=Hb-UY9VdIzXWWVF_csZPvg)<br>

### Stake ASTRL

To stake ASTRL click Add Stake to go to the add stake page.&#x20;

Add the number of ASTRL tokens you’d like to stake and then click **Add Stake >**.

![](https://lh7-qw.googleusercontent.com/docsz/AD_4nXcjjl1XUagcZHrLPq3kINUWy7jYaLBlwZuuQCf6g3GFfV4prWR9g9Fe9lX9-SbxWgQ9-EzufyGbCjAwq8vs8oZlamKRn1zWmbtNReJQr07MyAYOnLgPaG5zWeDOjkxF4bCJqtIM_p5bSCH_R6p9iMAz5C_g?key=Hb-UY9VdIzXWWVF_csZPvg)

Open your mobile Radix wallet and check in the transaction preview if everything is in order.

![](https://lh7-qw.googleusercontent.com/docsz/AD_4nXfKQ5knwWUmHPRWgCbBeAFB6QTcHJPEUuwSzKLfS6BnwvZ1EEqKoCS9R4qDUiJ7Oe2CMuvPFFUWKqEYog98Qupqdy0KE-WuOnWKwCCWNHCew1rVL379OVZfeJlHqtcNf_1SnvVuLx6bQ0NTuMa9RiSeA8Gw?key=Hb-UY9VdIzXWWVF_csZPvg)

Every week your staked ASTRL will increase when Astrolescent deposits the staking rewards.

### Unstake ASTRL

To unstake ASTRL click Remove Stake to go to the unstake page.&#x20;

Add the number of sASTRL tokens you’d like to unstake and then click **Remove Stake >**.

\ <br>


# API

Please get in touch with us if you would like to use our APIs in a third-party application.

We have the following endpoints available:

* Tokens (<https://api.astrolescent.com/partner>/\<apiKey>/tokens)
* Prices (<https://api.astrolescent.com/[partner>]\(<https://api.astrolescent.com/partner)/\\><apiKey>/prices)
* Swap ([https://api.astrolescent.com/partner/\<apiKey>/swap](https://api.astrolescent.com/partner/%3CapiKey%3E/swap))

## Tokens&#x20;

Returns an overview of all tokens available on Astrolescent.

Return value:

```json
[{
    "address": "resource_rdx1t4tjx4g3qzd98nayqxm7qdpj0a0u8ns6a0jrchq49dyfevgh6u0gj3",
    "symbol": "ASTRL",
    "name": "Astrolescent",
    "description": "Official yield-bearing and governance token of Astrolescent.",
    "iconUrl": "https://astrolescent.com/assets/img/babylon/astrl-icon.png",
    "infoUrl": "https://astrolescent.com/",
    "divisibility": 18
  }]
```

## Prices

Returns an overview of all token prices and their price history across the Radix network.

The prices are currently refreshed every 10 minutes and are a liquidity-weighted average of the prices on the most important DEXes on Radix (DefiPlaza, Ociswap, and CaviarNine).&#x20;

Return value:

```json
{
    "resource_rdx1t4tjx4g3qzd98nayqxm7qdpj0a0u8ns6a0jrchq49dyfevgh6u0gj3": {
        "address": "resource_rdx1t4tjx4g3qzd98nayqxm7qdpj0a0u8ns6a0jrchq49dyfevgh6u0gj3",
        "symbol": "ASTRL",
        "name": "Astrolescent",
        "description": "Official yield-bearing and governance token of Astrolescent.",
        "iconUrl": "https://astrolescent.com/assets/img/babylon/astrl-icon.png",
        "infoUrl": "https://astrolescent.com/",
        "divisibility": 18,
        "tokenPriceXRD": 1.062598098730236,
        "tokenPriceUSD": 0.05351588111136494,
        "diff24H": -0.004460795201074588,
        "diff24HUSD": -0.03278713163358024,
        "diff7Days": -0.035580778487088474,
        "diff7DaysUSD": -0.033143834640006045,
        "icon_url": "https://astrolescent.com/assets/img/babylon/astrl-icon.png"
  },
}
```

## Swap

Calculates the optimal route for a given input and output token and the number of input tokens

Swap accepts as POST parameters:

* `inputToken` as token address&#x20;
* `outputToken` as token address
* `inputAmount` in 10^1, not 10^18&#x20;
* `fromAddress` as account address
* `feeComponent` the component address of an instantiation of our fee component, to capture your own fees
* `fee` the percentage fee (0.01 is 1%)

Return value

```json
{
    "inputTokens": 1000,
    "outputTokens": 612.0492827471103,
    "priceImpact": 2,
    "swapFee": "0.612661944691802078525450114506979586034416769007540559028443355",
    "manifest": "\nCALL_METHOD\n\tAddress(\"account_rdx16y6spuy7pvxj3v9ruezge6dvnvjkjja70wmv8fa4c73n4csl9p3pr5\")\n\t\"withdraw\"\n\tAddress(\"resource_rdx1t4tjx4g3qzd98nayqxm7qdpj0a0u8ns6a0jrchq49dyfevgh6u0gj3\")\n\tDecimal(\"1000\")\n; \n\nTAKE_FROM_WORKTOP\n\tAddress(\"resource_rdx1t4tjx4g3qzd98nayqxm7qdpj0a0u8ns6a0jrchq49dyfevgh6u0gj3\")\n\tDecimal(\"545.454545454545454546\")\n  \tBucket(\"Astro_Multi_mi5ln\")\n;\n\n\nCALL_METHOD\n\tAddress(\"component_rdx1cqg95d25q8sa26k6996yxl3qg95edwqn4a775nf3s2zxy6tt22s9xf\")\n\t\"swap\"\n\tBucket(\"Astro_Multi_mi5ln\")\n\tAddress(\"resource_rdx1t52pvtk5wfhltchwh3rkzls2x0r98fw9cjhpyrf3vsykhkuwrf7jg8\")\n;\n\nTAKE_FROM_WORKTOP\n\tAddress(\"resource_rdx1t4tjx4g3qzd98nayqxm7qdpj0a0u8ns6a0jrchq49dyfevgh6u0gj3\")\n\tDecimal(\"454.545454545454545454\")\n  \tBucket(\"OciSimple_nkh67\")\n;\n\n\nCALL_METHOD\n\tAddress(\"component_rdx1cq7tc2pgyzawwjp4qf7ddfeq36scmkghmgl7ww4zp9tqpjuc452mp7\")\n\t\"swap\"\n\tBucket(\"OciSimple_nkh67\")\n;\n\nTAKE_ALL_FROM_WORKTOP\n\tAddress(\"resource_rdx1tknxxxxxxxxxradxrdxxxxxxxxx009923554798xxxxxxxxxradxrd\")\n  \tBucket(\"OciSimple_8dh5h\")\n;\n\n\nCALL_METHOD\n\tAddress(\"component_rdx1cz89w3ecvh9jvdd892vycs44rr042lteg75zgdydq9csn5d87snvdw\")\n\t\"swap\"\n\tBucket(\"OciSimple_8dh5h\")\n;\n\nTAKE_FROM_WORKTOP\n  Address(\"resource_rdx1t52pvtk5wfhltchwh3rkzls2x0r98fw9cjhpyrf3vsykhkuwrf7jg8\")\n  Decimal(\"0.612661944691802079\")\n  Bucket(\"fee_bucket\")\n;\n\nCALL_METHOD\n\tAddress(\"component_rdx1cpxvjgh5a0mewtzkx7j8gzpq0dh676gq5t4hh3svjm02xwakmxa6l7\")\n\t\"deposit\"\n\tBucket(\"fee_bucket\")\n;\n\nCALL_METHOD\n\tAddress(\"account_rdx16y6spuy7pvxj3v9ruezge6dvnvjkjja70wmv8fa4c73n4csl9p3pr5\")\n\t\"deposit_batch\"\n\tExpression(\"ENTIRE_WORKTOP\")\n;",
    "routes": [
        {
            "pools": [
                {
                    "type": "Astro_Multi",
                    "baseToken": "resource_rdx1t4tjx4g3qzd98nayqxm7qdpj0a0u8ns6a0jrchq49dyfevgh6u0gj3",
                    "quoteToken": "resource_rdx1t52pvtk5wfhltchwh3rkzls2x0r98fw9cjhpyrf3vsykhkuwrf7jg8"
                }
            ],
            "startPrice": "0",
            "endPrice": "0.614051695126398528",
            "impact": 1,
            "tokensIn": 545.4545454545455,
            "tokensOut": 334.93728825076283
        },
        {
            "pools": [
                {
                    "type": "OciSimple",
                    "baseToken": "resource_rdx1t4tjx4g3qzd98nayqxm7qdpj0a0u8ns6a0jrchq49dyfevgh6u0gj3",
                    "quoteToken": "resource_rdx1tknxxxxxxxxxradxrdxxxxxxxxx009923554798xxxxxxxxxradxrd"
                },
                {
                    "type": "OciSimple",
                    "baseToken": "resource_rdx1tknxxxxxxxxxradxrdxxxxxxxxx009923554798xxxxxxxxxradxrd",
                    "quoteToken": "resource_rdx1t52pvtk5wfhltchwh3rkzls2x0r98fw9cjhpyrf3vsykhkuwrf7jg8"
                }
            ],
            "startPrice": "0",
            "endPrice": "0.610994244170286339",
            "impact": 1,
            "tokensIn": 454.54545454545456,
            "tokensOut": 277.72465644103926
        }
    ]
}
```

The `manifest` field can be directly sent to the Radix dApp Toolkit to initiate a transaction.

#### Fees

On swaps made via our API we take a 0.1% fee, or 30% of any fee you set.

We have developed a custom fee component that we might be able to offer to our partners to insert their fees into the manifest as well. Contact us to see how we can best offer this to you and integrate it into our API.

### Partners<br>

Partners that currently use our widgets and APIs include ShardSpace, DefiPlaza, Attos Earn, and RadixHub.


# MCP

Connect Astrolescent to your LLM or AI Agents

Most LLMs are pretty isolated and have a hard time executing actions or fetching real-time information. The Model Context Protocol (MCP) fixes that. It gives the LLM or your AI Agent the options to interact with external services like Astrolescent. To fetch the latest price of $ASTRL for example, or the current staking yield. Or even to fetch a quote to buy 1k ASTRL.

### Tools

An MCP server consists of several tools you can call from your prompt. All our tools return both a `raw` variable containing the JSON data from our API and a `text` variable that is human readable and helps the LLM to more easily interpret the `raw` JSON data.

#### Price

Returns the current price in XRD and USD, including the 24H and 7 days differences.

**Example**\
`Hey, use Astrolescent to display the current price of ASTRL in XRD.`

#### Quote

Returns a quote to swap token A for token B, including all information needed to make the swap afterwards if you're an AI agent.

**Example**\
`Hey, use Astrolescent to get a quote for a swap from 100 XRD to ASTRL using account address account_rdx1abcdefg`

The quote tool has 3 operations: `buy`, `sell`, and `swap` . When you buy, the sell token is automatically set to XRD and we try to predict how much XRD you need to sell to get to the wanted amount, and when you sell, you're buying XRD.

#### APY

Returns the current APYs for ASTRL staking, and the ASTRL rewards for staking on our validator node and providing liquidity on DefiPlaza.

**Example**\
`Hey, use Astrolescent to get the current APY on ASTRL staking.`

### Installation

You can use our remove MCP server by adding it to Claude Desktop, Cursor, Windsurf or any other tool that currently supports adding MCP servers. Unfortunately, none of the current web interfaces support MCP.

#### URL

{% embed url="<https://mcp.astrolescent.com/sse>" %}

**Claude Desktop**

```
{
	"mcpServers": {
	  "astrolescent": {
		 "command": "npx",
		 "args": ["mcp-remote", "https://mcp.astrolescent.com/sse"]
	  }
	}
 }
```

**Cursor**

To connect Cursor with our remote MCP server, choose `Type`: "Command" and in the `Command`field, combine the command and args fields into one: `npx mcp-remote https://mcp.astrolescent.com/sse`

**Windsurf**

```
{
  "mcpServers": {
    "astrolescent": {
      "command": "npx",
      "args": ["mcp-remote", "https://mcp.astrolescent.com/sse"]
    }
  }
}
```


# Swap Widget

We offer an easy-to-integrate swap widget that allows Astrolescent to be integrated directly into your website.

You can add our swap widget by simply adding the following code to your website:

```html
<iframe 
    src="https://astrolescent.com/widget" 
    width="467px" height="750px" frameborder="0">
</iframe>    
```

#### Setting defaults

The swap widget supports setting a selling and buying token and a default amount by adding it to the URL.

* `from`: the resource address the widget is selling
* `to`: the resource address the widget is buying
* `amount`: the amount of tokens that will be sold
* `feeComponent`:  address of your fee component address
* `fee`: the fee you'd like to charge, `0.01` = 1%, `0.003` is 0.3%

To set up your own fee component, reach out to use on Telegram and we'll help you set it up.

For example, HUG uses the following settings:

```html
<iframe 
    src="https://astrolescent.com/widget?to=resource_rdx1t5kmyj54jt85malva7fxdrnpvgfgs623yt7ywdaval25vrdlmnwe97&amount=100" 
    width="467px" height="750px" frameborder="0">
</iframe>
```

Where `to` is set to HUG's token address *resource\_rdx1t5kmyj54jt85malva7fxdrnpvgfgs623yt7ywdaval25vrdlmnwe97,* and the `amount` to *100*, letting the widget display a trade of selling 100 XRD for HUG.

<figure><img src="https://2756210696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgpo8KnJwdPsTreA6fcK4%2Fuploads%2FfjY3TDhim5HnLdChNol7%2FScreenshot%202025-02-16%20at%2016.53.56.png?alt=media&amp;token=a707ee7f-726c-4199-ad28-82096ac44ff5" alt="" width="375"><figcaption><p>Example of the swap widget on a white background.</p></figcaption></figure>


# Validator Node

Astrolescent operates a Radix validator node named **“Astrolescent”**.

**Validator address**

{% hint style="info" %}
validator\_rdx1sw54cuswwzlcgw2zh3ax93pddnsm78qwwhmtvz650q84yyckzkh7nk
{% endhint %}

The validator fee is **5%**, resulting in a competitive base return from Radix network staking rewards.

To further incentivize delegation, Astrolescent distributes approximately **2% annual rewards in ASTRL**, paid weekly. These ASTRL rewards are funded from the Astrolescent **airdrop budget** and are intended to boost validator participation.

ASTRL rewards can be **claimed weekly** via\
<https://astrolescent.com/rewards>

Validator fee income is treated as part of Astrolescent’s overall revenue. Any resulting profits are shared with **ASTRL stakers**, in line with the Astrolescent token model.

The validator is operated with monitoring and redundancy in place to ensure reliable participation in the Radix network and consistent reward distribution.


