Skip to content

Update timestamp validation and typo #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/smart-contract-devs/get-started/redstone-core.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ For all the supported feeds we provide [UI with charts and historical data](http

💡 Note: You can also override the following functions (do it at your own risk):

- `isTimestampValid(uint256 receivedTimestamp) returns (bool)` - to enable custom logic of timestamp validation. You may specify a shorter delay to accept only the most recent price fees. However, on networks with longer block times you may extend this period to avoid rejecting too many transactions.
- `validateTimestamp(uint256 receivedTimestampMilliseconds)` - to enable custom logic of timestamp validation. You may specify a shorter delay to accept only the most recent price fees. However, on networks with longer block times you may extend this period to avoid rejecting too many transactions.

- `aggregateValues(uint256[] memory values) returns (uint256)` - to enable custom logic of aggregating values from different providers (by default this function takes the median value). For example, you may request values from providers to be strictly equal while dealing with discrete numbers.

- `getAuthorisedSignerIndex(address _signerAddress) returns (uint256)` - to whitelist additional signers or remove corrupted ones.
- `getAuthorisedSignerIndex(address _signerAddress) returns (uint8)` - to whitelist additional signers or remove corrupted ones.


- `getUniqueSignersThreshold() returns (unt256)` - to modify number of required signers. The higher number means greater reliability but also higher gas costs.
- `getUniqueSignersThreshold() returns (uint8)` - to modify number of required signers. The higher number means greater reliability but also higher gas costs.

### 2. Adjust Javascript code of your dApp

Expand Down