@@ -11,10 +11,9 @@ import { useAppealCost } from "queries/useAppealCost";
1111import { useDisputeKitClassicMultipliers } from "queries/useDisputeKitClassicMultipliers" ;
1212import StageExplainer from "./StageExplainer" ;
1313import OptionCard from "../OptionCard" ;
14+ import { ONE_BASIS_POINT } from "consts/index" ;
1415import { Periods } from "consts/periods" ;
1516
16- const ONE_BASIS_POINT = BigNumber . from ( "1000" ) ;
17-
1817interface IOptions {
1918 selectedOption : undefined | number ;
2019 setSelectedOption : ( arg0 : number ) => void ;
@@ -39,14 +38,32 @@ const Options: React.FC<IOptions> = ({ selectedOption, setSelectedOption }) => {
3938 />
4039 < label > Which option do you want to fund? </ label >
4140 < OptionsContainer >
41+ < OptionCard
42+ key = { "RefuseToArbitrate" }
43+ text = { "Refuse to arbitrate" }
44+ selected = { 0 === selectedOption }
45+ winner = { "0" === winningChoice }
46+ funding = { paidFees ? BigNumber . from ( paidFees [ 0 ] ) : BigNumber . from ( 0 ) }
47+ required = {
48+ "0" === winningChoice
49+ ? multipliers . winner_stake_multiplier
50+ . mul ( appealCost )
51+ . div ( ONE_BASIS_POINT )
52+ : multipliers . loser_stake_multiplier
53+ . mul ( appealCost )
54+ . div ( ONE_BASIS_POINT )
55+ }
56+ onClick = { ( ) => setSelectedOption ( 0 ) }
57+ />
4258 { typeof paidFees !== "undefined" &&
4359 typeof multipliers !== "undefined" &&
60+ typeof appealCost !== "undefined" &&
4461 metaEvidence ?. rulingOptions ?. titles ?. map (
4562 ( answer : string , i : number ) => (
4663 < OptionCard
4764 key = { answer }
4865 text = { answer }
49- selected = { i === selectedOption }
66+ selected = { i + 1 === selectedOption }
5067 winner = { ( i + 1 ) . toString ( ) === winningChoice }
5168 funding = {
5269 paidFees [ i + 1 ]
@@ -62,7 +79,7 @@ const Options: React.FC<IOptions> = ({ selectedOption, setSelectedOption }) => {
6279 . mul ( appealCost )
6380 . div ( ONE_BASIS_POINT )
6481 }
65- onClick = { ( ) => setSelectedOption ( i ) }
82+ onClick = { ( ) => setSelectedOption ( i + 1 ) }
6683 />
6784 )
6885 ) }
0 commit comments