# FluxAggregator

This page outlines the uses of the FluxAggregator contract for the node operators that feed data into it.

# Contract Deploy

Import all the files located in tvm-contracts/v2.0 into Tronscan and compile the FluxAggregator.sol.

After compiling finished, you should type the arguments that the constructor needs.

Here is the paraphrase:

  • _win: The address of the WIN token.
  • _pay,entAmount: The amount paid of WIN paid to each oracle per submission, in wei (units of 10⁻6 WIN).
  • _timeout: the number of seconds after the previous round that are allowed to lapse before allowing an oracle to skip an unfinished round.
  • _validator: an optional contract address for validating external validation of answers.
  • _minSubmissionValue: an immutable check for a lower bound of what submission values are accepted from an oracle.
  • _maxSubmissionValue: an immutable check for an upper bound of what submission values are accepted from an oracle.
  • _decimals: represents the number of decimals to offset the answer by.
  • _description: a short description of what is being reported.

# Node Deployment

The node service deployment is the same as before as the service is compatible with both types of Aggregators.

# Withdrawing funds

Keep in mind the oracle variable is currently your node's address rather than your oracle contract's address.

# Testnet(Nile)

Pair Contract
TRX-USDT TGm9cecRyrHAUziKrmRASPLb8fgZbJJmF9

# Mainnet

Pair Contract
TRX/USD TXwZqjjw4HtphG4tAm5i1j1fGHuXmYKeeP
JST/USD TPMkqBh7kU16Zmv9EAtm6vfWYrTax4Aucb
WIN/USD TQU2nPFvemv6hbtmJ48Z749a7VcAmacV4D
SUNOLD/USD TYzFE7fC46yjs3p5JUidvxzg9XMFT7qWZy
BTC/USD TTzPaLxJMy8nwXe9NRfHopHW4KyUeavLdF
USDJ/USD TBxnH94m2Zsp869QpiAoCHt54wCsFSUsSP
USDT/USD TYWY6L4mECH2Gtiq3sg4zY4fvD1XZpwGrb
LIVE/USD TFFVcMViFUn3UEXVMPeuWjb4xo6TwUacog
BTTOLD/USD TM2CEasFpeREBtLWgkzMqASkn5mvtf12He
JST/TRX TXMSfKwBfvY6THwnTzRRteYHdB125rKBKK
TUSD/USD TXyKzmu2J2eXcVspbLnnzuQmU2krLxb8dG
NFT/USD TS15kJyth5F7vAE5bpzAUumEGFDsnYkEGF
SUN/USD TAKUV2gwwmAG7fCtwSW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