> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gains.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# GTokenRateProvider

*Balancer rate provider to return the value of a gToken in terms of its collaterals token*

## gToken

```solidity theme={null}
contract IGToken gToken
```

## constructor

```solidity theme={null}
constructor(contract IGToken _gToken) public
```

## getRate

```solidity theme={null}
function getRate() external view returns (uint256)
```

*Fetches the price rate of a gToken*

### Return Values

| Name | Type | Description |
| - | - | - |
| \[0] | uint256 | the value of gToken in collateral token, in 1e18 precision |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.