> For the complete documentation index, see [llms.txt](https://stargateprotocol.gitbook.io/stargate/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stargateprotocol.gitbook.io/stargate/stargate-router-methods/addliquidity.md).

# addLiquidity()

`addLiquidity()` empowers users to earn fees by loaning their ERC20 tokens to the Stargate protocol. It's as easy as calling `addLiquidity().`

Heres a description of the arguments:

```javascript
function addLiquidity(
    uint _poolId,         // the stargate poolId representing the specific ERC20 token
    uint256 _amountLD,    // the amount to loan. quantity in local decimals
    address _to           // the address to receive the LP token. ie: shares of the pool
)
```
