• lynn's avatar
    feat: remaining swap events (#4169) · 3c5cc21e
    lynn authored
    * init commit
    
    * add amplitude ts sdk to package.json
    
    * add more comments and documentation
    
    * respond to vm comments
    
    * respond to cmcewen comments
    
    * fix: remove unused constants
    
    * init commit
    
    * adapt to web
    
    * add optional event properties to trace
    
    * correct telemetry to analytics
    
    * init commit
    
    * change telemetry to analytics in doc
    
    * init commit
    
    * fix: respond to cmcewen comments + initialize analytics in app.tsx + add missing return statement
    
    * add element name constant
    
    * init commit
    
    * correct price_impact calculation
    
    * resolve vm comments
    
    * fixes in response to comments
    
    * respond to vm
    
    * use ALL significant digits for token amounts
    
    * init commit
    
    * logged all properties
    
    * create helper function getPriceImpactPercentageNumber
    
    * 4 decimal points for percentages
    
    * price percentage fn
    
    * only log event on FIRST price fetch
    
    * init commit
    
    * add swap transaction completed event
    
    * respond to cmcewen comments
    
    * add two events
    
    * remove console.logs
    
    * move transaction completed logging to reducer
    
    * simplify and remove unnecessary logic and constants
    
    * respond to cmcewen comments
    
    * respond to cmcewen comments
    
    * respond to vm comment
    3c5cc21e
SwapModalHeader.tsx 8.79 KB