@@ -432,10 +432,10 @@ export function EulerSwapViz(props) {
432432 let priceToOracleRatio = priceFloat / oraclePrice ;
433433
434434 if ( isNaN ( priceFloat ) ) priceWarning = 'Missing price' ;
435- else if ( priceFloat < 1e-7 ) priceWarning = 'Price unexpectedly small' ;
436- else if ( priceFloat > 1e7 ) priceWarning = 'Price unexpectedly large' ;
437- else if ( priceToOracleRatio < 1 / 1.1 ) priceWarning = 'Price less than 10% oracle price' ;
438- else if ( priceToOracleRatio > 1.1 ) priceWarning = 'Price greater than 10% oracle price' ;
435+ else if ( priceFloat < 1e-7 ) priceWarning = 'Equilibrium price unexpectedly small' ;
436+ else if ( priceFloat > 1e7 ) priceWarning = 'Equilibrium price unexpectedly large' ;
437+ else if ( priceToOracleRatio < 1 / 1.1 ) priceWarning = 'Equilibrium price less than 10% oracle price' ;
438+ else if ( priceToOracleRatio > 1.1 ) priceWarning = 'Equilibrium price greater than 10% oracle price' ;
439439 }
440440
441441
@@ -733,13 +733,19 @@ export function EulerSwapViz(props) {
733733 </ div >
734734 </ div >
735735
736- { priceWarning && < div className = "mt-6" style = { { textAlign : 'center' , } } >
737- < Message severity = "warn" text = { priceWarning } />
738- </ div > }
736+ { ! props . viewMode && < div >
737+ < div className = "mt-6" style = { { textAlign : 'center' , paddingLeft : '20%' , paddingRight : '20%' , fontSize : '110%' , color : '#ff7c7c' , } } >
738+ Maglev is an advanced interface. Please carefully verify all parameters are correct before submitting any transaction. Neither Euler Labs nor Euler DAO are responsible for any losses resulting from the use of this tool.
739+ </ div >
739740
740- { ! props . viewMode && < div className = "mt-4 flex align-items-center justify-content-center" >
741- < Button className = "mr-6" label = "Install" disabled = { params . concentrationX === undefined || params . concentrationY === undefined || params . fee === undefined || ! parsedPrice [ 0 ] || ! parsedPrice [ 1 ] } onClick = { installEulerSwap } />
742- < Button className = "mr-6" label = "Show Raw" onClick = { ( ) => setShowRawDialog ( true ) } />
741+ { priceWarning && < div className = "mt-4" style = { { textAlign : 'center' , } } >
742+ < Message severity = "warn" text = { priceWarning } />
743+ </ div > }
744+
745+ < div className = "mt-4 flex align-items-center justify-content-center" >
746+ < Button className = "mr-6" label = "Install" disabled = { params . concentrationX === undefined || params . concentrationY === undefined || params . fee === undefined || ! parsedPrice [ 0 ] || ! parsedPrice [ 1 ] } onClick = { installEulerSwap } />
747+ < Button className = "mr-6" label = "Show Raw" onClick = { ( ) => setShowRawDialog ( true ) } />
748+ </ div >
743749 </ div > }
744750
745751 < Dialog header = "Header" visible = { showRawDialog } style = { { width : '90vw' } } onHide = { ( ) => { if ( ! showRawDialog ) return ; setShowRawDialog ( false ) ; } } >
0 commit comments