五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

字畫/書畫拍賣競拍商城系統(tǒng)開發(fā)(案例開發(fā))/設(shè)計方案/成熟項目/源碼部署

2023-07-04 09:34 作者:bili_36625761919  | 我要投稿

 Dapp:代表去中心化應(yīng)用程序。它們是在去中心化網(wǎng)絡(luò)或區(qū)塊鏈上運行后端代碼(主要用Solidity編寫的智能合約)的應(yīng)用程序??梢允褂肦eact、Vue或Angular等前端框架構(gòu)建Dapp。


  The technical architecture of dapp mainly includes the following three levels:


  Application layer:The application layer refers to the DAPP application that users directly come into contact with,including interface design,interaction methods,user experience,etc.,which needs to fully consider user needs and usage habits.


  Protocol layer:The protocol layer refers to the protocols and rules of DAPP,including communication protocols,transaction rules,financial protocols,contract protocols,etc.,which need to ensure their security,stability,and transparency.


  Blockchain layer:The blockchain layer is the underlying technical support for DAPP,including blockchain nodes,smart contracts,decentralized storage,consensus algorithms,etc.It requires algorithms and technical means to achieve decentralization,security,and scalability.


  function _modifyPosition(ModifyPositionParams memory params)


  private


  noDelegateCall


  returns(


  Position.Info storage position,


  int256 amount0,


  int256 amount1


  )


  {


  ...


  Slot0 memory _slot0=slot0;//SLOAD for gas optimization


  position=_updatePosition(


  ...


  );


  ...


  }


  function _modifyPosition(ModifyPositionParams memory params)


  private


  noDelegateCall


  returns(


  Position.Info storage position,


  int256 amount0,


  int256 amount1


  )


  {


  ...


  if(params.liquidityDelta!=0){


  //計算三種情況下amount0和amount1的值,即x token和y token的數(shù)量


  if(_slot0.tick<params.tickLower){


  amount0=SqrtPriceMath.getAmount0Delta(


  //計算lower/upper tick對應(yīng)的價格


  TickMath.getSqrtRatioAtTick(params.tickLower),


  TickMath.getSqrtRatioAtTick(params.tickUpper),


  params.liquidityDelta


  );


  }else if(_slot0.tick<params.tickUpper){


  //current tick is inside the passed range


  uint128 liquidityBefore=liquidity;//SLOAD for gas optimization


  ...


  amount0=SqrtPriceMath.getAmount0Delta(


  _slot0.sqrtPriceX96,


  TickMath.getSqrtRatioAtTick(params.tickUpper),


  params.liquidityDelta


  );


  amount1=SqrtPriceMath.getAmount1Delta(


  TickMath.getSqrtRatioAtTick(params.tickLower),


  _slot0.sqrtPriceX96,


  params.liquidityDelta


  );


  liquidity=LiquidityMath.addDelta(liquidityBefore,params.liquidityDelta);


  }else{


  amount1=SqrtPriceMath.getAmount1Delta(


  TickMath.getSqrtRatioAtTick(params.tickLower),


  TickMath.getSqrtRatioAtTick(params.tickUpper),


  params.liquidityDelta


  );


  }


  }


  }


字畫/書畫拍賣競拍商城系統(tǒng)開發(fā)(案例開發(fā))/設(shè)計方案/成熟項目/源碼部署的評論 (共 條)

分享到微博請遵守國家法律
陆丰市| 乳山市| 宜宾县| 灯塔市| 舞阳县| 元阳县| 青海省| 静宁县| 盈江县| 遂宁市| 丹江口市| 白沙| 武定县| 宁海县| 扶余县| 高阳县| 岗巴县| 衡阳市| 巴南区| 芜湖市| 太谷县| 沂水县| 南召县| 鹤壁市| 枣阳市| 泗水县| 临清市| 丰城市| 尉犁县| 铜鼓县| 汉沽区| 通城县| 商河县| 兰坪| 高唐县| 永州市| 义马市| 平舆县| 虎林市| 若尔盖县| 农安县|