diff --git a/backend/src/models/Round.js b/backend/src/models/Round.js index 8acf016..e2483f5 100644 --- a/backend/src/models/Round.js +++ b/backend/src/models/Round.js @@ -17,10 +17,6 @@ const RoundSchema = new mongoose.Schema({ type: Number, required: true }, - lengthBlocks: { - type: Number, - required: false - }, startBlock: { type: Number, required: false diff --git a/src/components/RoundViewer.js b/src/components/RoundViewer.js index 95ce7a1..d996135 100644 --- a/src/components/RoundViewer.js +++ b/src/components/RoundViewer.js @@ -49,46 +49,52 @@ const Round = (obj) => { Round {obj.round.number}

+
{ obj.round.mintableTokens && obj.round.mintableTokens > 0 ? -
-

+

+

Has {parseFloat(obj.round.mintableTokens).toFixed(2)} mintable tokens

: null } +
{ obj.round.volumeEth && obj.round.volumeUsd && obj.round.volumeEth > 0 && obj.round.volumeUsd > 0 ? -
-

+

+

A volume of {parseFloat(obj.round.volumeEth).toFixed(2)} Eth ({parseFloat(obj.round.volumeUsd).toFixed(2)}$)

: null } +
{ obj.round.totalSupply && obj.round.totalActiveStake && obj.round.totalSupply > 0 && obj.round.totalActiveStake > 0 ? -
-

+

+

A total supply of {parseFloat(obj.round.totalSupply).toFixed(2)} LPT, of which {parseFloat(obj.round.totalActiveStake).toFixed(2)} is staked ({(parseFloat(obj.round.participationRate) * 100).toFixed(2)}%)

: null } +
{ obj.round.newStake && obj.round.newStake > 0 ? -
-

+

+

{parseFloat(obj.round.newStake).toFixed(2)} LPT new stake

: null } +
{ obj.round.movedStake && obj.round.movedStake > 0 ? -
-

+

+

{parseFloat(obj.round.movedStake).toFixed(2)} LPT stake moved around

: null } +