您现在的位置是:首页 > 股票技术

股票技术

年化与无偿损失的计算

2021-05-24 09:22:31 236财经网
骞村寲涓庢棤鍋挎崯澶辩殑璁$畻浠€涔堟槸骞村寲浣滀负鐭垮伐棣栧厛瑕佷簡瑙g殑灏辨槸APY锛圓nnualPrecentageYield锛夊勾鍖栫巼鎸夌収鍏紡鐨勬帹瀵硷紝浼氬彂鐜板湪姣忔棩閲婃斁閲忔亽瀹氱殑鎯呭喌涓嬶紝瀹為檯涓婂勾鍖栫巼鐨勫彉鍖栧彧鏄拰甯佷环浠ュ強姹犲瓙鎬婚噺鏈夊叧绯汇€?/p>姹犲瓙鎬婚噺涓婂崌锛屽竵浠蜂笅璺岋紝APY涓嬭穼銆傛睜瀛愭€?
骞村寲涓庢棤鍋挎崯澶辩殑璁$畻

骞村寲涓庢棤鍋挎崯澶辩殑璁$畻

浠€涔堟槸骞村寲

浣滀负鐭垮伐棣栧厛瑕佷簡瑙g殑灏辨槸 APY 锛圓nnual Precentage Yield锛夊勾鍖栫巼

骞村寲涓庢棤鍋挎崯澶辩殑璁$畻

鎸夌収鍏紡鐨勬帹瀵硷紝浼氬彂鐜板湪姣忔棩閲婃斁閲忔亽瀹氱殑鎯呭喌涓嬶紝瀹為檯涓婂勾鍖栫巼鐨勫彉鍖栧彧鏄拰甯佷环浠ュ強姹犲瓙鎬婚噺鏈夊叧绯汇€?/p>

姹犲瓙鎬婚噺涓婂崌锛屽竵浠蜂笅璺岋紝APY 涓嬭穼銆傛睜瀛愭€婚噺涓嬭穼锛屽竵浠蜂笂鍗囷紝APY 涓婃定銆傚彧瑕佸竵浠蜂笂鍗囩殑鎸囨暟澶т簬姹犲瓙鎬婚噺涓婂崌鐨勬寚鏁帮紝APY 灏变細涓婃定銆?/p>

浣嗗崟绾彧鐪嬭繖涓勾鍖栫巼鏉ュ仛鍐冲畾灏变簭澶у彂浜嗭紝鍥犱负褰撳竵浠锋尝鍔ㄥ法澶х殑鏃跺€欙紝鏃犲父鎹熷け浼氶珮鍒颁綘鎯宠薄涓嶅埌鐨勫湴姝ャ€?/p>

浠€涔堟槸鏃犲父鎹熷け

浣犳槸鍚︽湁杩囪繖鏍风殑缁忓巻锛屽悜鏌愪釜娴佸姩鎬ф寲鐭挎睜涓彁渚涙祦鍔ㄦ€э紝缁撴灉鎷垮洖鏉ョ殑鏃跺€欙紝鍙戠幇鑷繁鐨勫竵鍙樺皯浜嗭紵鍦ㄦ湰鏂囦腑锛屾垜浠皢浜嗚В浠€涔堟槸鈥滄棤甯告崯澶扁€濓紝鈥滄案涔呮崯澶扁€濓紝浠ュ強瀹冨浣曞奖鍝嶆祦鍔ㄦ€ф彁渚涜€呯殑鍒╂鼎銆?/p>

鏈川涓婏紝鏃犲父鎹熷け鏄彁渚涙祦鍔ㄦ€ф椂鍙戠敓鐨勮祫閲戞殏鏃舵崯澶?/ 闈炴案涔呮€ф崯澶便€備箣鎵€浠ュ彨鍋氶潪姘镐箙鎬ф崯澶憋紝鏄洜涓哄彧瑕佸湪 AMM 涓殑浠e竵鐩稿浠锋牸鎭㈠鍒板叾鍒濆鐘舵€侊紝閭d箞锛岃鎹熷け灏辨秷澶变簡銆備絾鏄紝杩欑鎯呭喌寰堝皯鍙戠敓銆傞€氬父锛屾棤甯告崯澶变細鍙樻垚姘镐箙鎬ф崯澶憋紝鍚炴帀浣犵殑浜ゆ槗璐圭敤鏀跺叆鐢氳嚦瀵艰嚧璐熷洖鎶ャ€?/p>

褰?AMM 涓殑浠e竵甯傚満浠锋牸鍦ㄦ定鎴栬穼鏃讹紝灏变細浜х敓鏃犲父鎹熷け銆傛尝鍔ㄨ秺澶э紝鏃犲父鎹熷け瓒婂ぇ銆?/p>

鏃犲父鎹熷け绠€鍗曟渚?/h2>

鍏呭垎鐞嗚В鏃犲父鎹熷け鐨勬渶绠€鍗曟柟娉曪紝灏辨槸鐪嬩竴涓畝鍗曠殑渚嬪瓙銆?/p>

鍋囪浣犱綔涓烘祦鍔ㄦ€х殑鎻愪緵鑰咃紙鍗?LP锛夊悜 DAI / ETH Uniswap 50/50 姹犳彁渚涙祦鍔ㄦ€с€備负浜嗗悜 50/50 姹犳彁渚涙祦鍔ㄦ€э紝娴佸姩鎬ф彁渚涜€咃紙LP锛夊繀椤诲悜姹犳彁渚涗袱涓瓑鍊肩殑 token銆傦紙鍗虫彁渚?DAI/ETH 鏃讹紝浣犳彁渚涗袱涓竵绉嶆祦鍔ㄦ€х殑浠峰€硷紙鍗充环鏍?鏁伴噺锛夐渶瑕佺浉鍚屻€?/p>

鍋囪姝ゆ椂 DAI=1 USD, ETH=500 USD锛?浣犻渶瑕佹彁渚?20 涓?ETH锛屽拰 10000 涓?DAI銆?/p>

骞村寲涓庢棤鍋挎崯澶辩殑璁$畻

浣犳彁渚涘畬娴佸姩鎬у悗锛屾鏃讹紝涓や釜 token 鐨勪环鍊兼槸鐩稿悓鐨勩€?/p>

鍋囪锛孍TH 鐨勪环鏍煎湪澶栭儴鐨勪氦鏄撴墍涓紑濮嬩笂娑ㄣ€備腑蹇冨寲浜ゆ槗鎵€鐨?ETH 浠锋牸浠?500 娑ㄥ埌浜?550 缇庡厓銆備簬鏄叾浠栧競鍦哄弬涓庤€咃紙绉颁负濂楀埄鑰咃級灏卞紑濮嬪伐浣滀簡銆傚鍒╄€呮敞鎰忓埌涓績鍖栦氦鏄撴墍鍜?Uniswap 涔嬮棿鐨勪环鏍煎樊寮傦紝骞跺皢鍏惰涓哄鍒╂満浼氥€?/p>

闅忕潃濂楀埄鑰呬粠姹犱腑璐蛋鏇村鐨?ETH 锛堝嵆鍙栬蛋 ETH 娴佸姩鎬э級锛孍TH 鐨勪环鏍煎氨鍙樺緱瓒婇珮銆傚鍒╄€呬笉鏂湪 Uniswap 涓婅喘涔版洿渚垮疁鐨?ETH锛岀洿鍒颁氦鏄撴墍涔嬮棿涓嶅啀瀛樺湪浠锋牸宸紓涓烘銆?/p>

浣跨敤鎭掑畾涔樼Н鍏紡锛屾垜浠彲浠ョ湅鍒?Uniswap ETH 浠锋牸灏嗚揪鍒?550 缇庡厓鐨勬椂鍊欙紝姹犱腑鐨勬儏鍐典細琚鍒╄€呭彉涓烘湁 10488.09 涓?DAI 鍜?19.07 涓?ETH銆?/p>

涔熷氨鏄濂楀埄鑰呰姳璐?488.09 涓?DAI 涔拌蛋浜?0.93 ETH锛屼互瀹炵幇 Uniswap 鍜?Coinbase 鐨?ETH 浠锋牸涔嬮棿鐨勫钩琛°€傛鏃讹紝濂楀埄鑰呯殑鎴愭湰鏄?1 ETH=524.83 DAI 銆傚鍒╄€呰喘涔扮殑 ETH 鍙互鍦ㄥ閮ㄧ殑涓績鍖栦氦鏄撴墍浠?DAI 鎴栦换浣曞叾浠栧熀浜庣編鍏冪殑绋冲畾甯佸嵆鏃跺嚭鍞紝浠锋牸涓?550 缇庡厓銆備簬鏄鍒╄€呬粠涓禋鍙栦簡绾?25 缇庡厓锛堝噺鍘绘墜缁垂锛夈€?/p>

骞村寲涓庢棤鍋挎崯澶辩殑璁$畻

璁╂垜浠湅鐪嬭繖濡備綍褰卞搷鎴戜滑鐨勬祦鍔ㄨ祫閲戞彁渚涜€咃紙LP锛夈€?/p>

鎴戜滑鍙互鐪嬪埌锛屽鏋滄祦鍔ㄦ€ф彁渚涜€呬竴寮€濮嬩笉鎻愪緵娴佸姩鎬э紝鑰屾槸鎶?ETH 鍜?DAI 鏀惧湪閽卞寘閲岄潰锛屼粬浠皢鎷ユ湁 $ 23.41 鐨勬敹鐩娿€傝繖 23.41 缇庡厓鍩烘湰涓婃槸 LP 鐨勬棤甯告崯澶便€?/p>

鏃犲父鎹熷け琚О涓洪潪姘镐箙鎬э紝鍥犱负鍦ㄦ鏃舵鍒伙紝LP 鍙槸鍦ㄨ处闈笂鎹熷け浜?23.41 缇庡厓銆傚鏋?LP 閫夋嫨涓嶆挙鍥炲叾娴佸姩鎬э紝褰撳悗闈互澶潑鐨勪环鏍煎洖鍒?500 缇庡厓鏃跺啀鍙栧嚭鏉ワ紝姝ゆ椂鏃犲父鎹熷け琚姷娑堜负 0銆?/p>

鍙︿竴鏂归潰锛屽鏋?LP 鍐冲畾鍦ㄤ互澶潑 550 缇庡厓鏃跺喅瀹氭挙鍥炲叾娴佸姩鎬э紝浠栦滑灏嗘案涔呮€х殑鎹熷け 23.41 缇庡厓銆?/p>

褰撶劧浜嗭紝涓婅堪鎯呭喌娌℃湁鍖呭惈娴佸姩鎬ф彁渚涜€咃紙LP锛夊湪鎻愪緵娴佸姩鎬ф湡闂存墍璧氬彇鐨勬墜缁垂锛?.4% 姣忕瑪浜ゆ槗锛夛紝浠ュ強娴佸姩鎬ф寲鐭跨殑鏀剁泭锛堜笉鏄瘡涓€涓祦鍔ㄦ€ф彁渚涜€呴兘鏈夋鏀剁泭锛岃€屼笖娴佸姩鎬ф寲鐭跨殑鏀剁泭鏄殢鏃跺彉鍖栫殑锛夈€?/p>

涔熷氨鏄锛屽嵆浣夸綘鍙傚姞鐨勬祦鍔ㄦ€ф寲鐭匡紝鍙兘灞曠ず鍑烘潵鏋侀珮鐨勬敹鐩婏紝浣嗘槸濡傛灉鎸栫熆鐨勮祫浜т环鏍肩獊鐒舵毚璺岋紝骞舵案杩滃洖涓嶅埌浣犳彁渚涙祦鍔ㄦ€ф椂鐨勬按骞筹紝浣犵殑鏃犲父鎹熷け灏变細鍙樻垚姘镐箙鎹熷け銆傝€屼笖浣犵殑姘镐箙鎹熷け锛屽彲鑳藉ぇ浜庝綘鐨勬寲鐭挎敹鐩娿€?/p>

涓€鑸儏鍐典笅锛屼环鏍兼毚璺岀殑璧勪骇灏辨槸浣犳寲鐭挎墍寰楃殑璧勪骇锛屼竴鏃﹀叾浠锋牸鏆磋穼锛屾寲鐭挎敹鐩婄巼涔熶細鏆磋穼锛屽悓鏃舵棤甯告崯澶变細鍓у銆傝繖浼氬紩鍙戝叾浠栨祦鍔ㄦ€ф彁渚涜€呭仠姝㈡彁渚涙祦鍔ㄦ€э紝涓€鏃︽祦鍔ㄦ€ф挙璧帮紝璧勪骇鐨勪环鏍煎氨鏇村鏄撶户缁毚璺屻€傝繖灏辨槸鎵€璋撶殑鈥滄浜¤灪鏃嬧€濓紝鎴栬€呰鈥滅熆闅锯€濄€?/p>

鏃犲父鎹熷け璁$畻鍣?/h2>

濡傛灉浣犵殑鏁板骞朵笉鏄嬁鎵嬬殑瀛︾锛屾垨鑰呭鎭掑畾涔樼Н鍏紡浠€涔堢殑娌℃湁涓濇鍏磋叮锛屽彲浠ヤ娇鐢ㄤ竴浜涚綉绔欐彁渚涚殑璁$畻宸ュ叿銆?/p>

姣斿杩欎釜锛歨ttps://yieldfarmingtools.com/tools

鍙互鐪嬪埌褰撹祫浜?2 鐩稿綋浜庤祫浜?1 鍙樺寲鍓х儓锛屼笅鍥炬樉绀哄湪 419%锛?.19 鍊嶏級浠ヤ笂鏃讹紝鏃犲父鎹熷け楂樿揪 26.39%銆?/p>

骞村寲涓庢棤鍋挎崯澶辩殑璁$畻

鎯虫繁鍏ヤ簡瑙?AMM 鏈哄埗鍙婃棤甯告崯澶辫绠楃殑锛屽彲浠ョ户缁槄璇讳笅鏂硅祫鏂欙細

AMM 鍙婃棤甯告崯澶辩殑鎵嬪姩璁$畻

Uniswap 鐨勭熆姹犱环鍊兼瘮渚嬮兘涓?50/50銆傚亣璁句綘鍦?UniSwap 涓婁唬甯?A/B 鐭挎睜涓寜鐓?1A=50B 鐨勪环鏍煎瓨鍏ヤ簡 10 涓?A 鍜?500 涓?B銆傝€岃繖涓睜涓竴鍏辨湁 100 涓?A 鍜?5000 涓?B锛屼綘鐨勪唤棰濆崰 10%銆?/p>

骞村寲涓庢棤鍋挎崯澶辩殑璁$畻

鐢?AMA 鐨勫浐瀹氫箻绉叕寮忓彲鐭ワ紝K=100*5000=500,000

褰撳競鍦轰环鏍兼尝鍔ㄨ嚦 1A=100B锛岃€屾鏃?Uniswap 涓殑 A/B 娴佸姩鎬ф睜浠锋牸杩樻槸 1A=50B銆傝繖鏃跺鍒╄€呭氨浼氳繘鍏ワ紝鍦ㄦ祦鍔ㄦ€ф睜涓敤 B 鎹㈠彇 A锛屽啀鍦ㄥ叾瀹冧腑蹇冨寲浜ゆ槗鎵€鍗栧嚭銆傝繖鏍峰氨浼氶€犳垚 A 鏁伴噺涓嬮檷锛孊 鏁伴噺鍗囬珮锛屼粠鑰岄噸鏂拌揪鍒颁竴涓钩琛★紝浣夸环鏍肩ǔ瀹氬湪 1A=100B銆?/p>

鑰?AMA 鐨勫浐瀹氫箻绉叕寮忎腑锛孠 涓哄畾鍊硷紝淇濇寔涓嶅彉銆傚亣璁惧湪绋冲畾鍚庢睜涓?A 鎬绘暟鏁伴噺鍙樻垚 X锛孊 鐨勬暟閲忓彉鎴?Y锛岄偅涔堬細

X*Y=K=500,000

100X=Y

瑙e嚭 X,Y锛屽緱鍒帮細

骞村寲涓庢棤鍋挎崯澶辩殑璁$畻

浠锋牸娉㈠姩鍚庯紝鐢变簬浣犵殑浠介鍗犳嵁姹犱腑鐨?10%锛屼綘鐨勬寔鏈変唬甯佷环鍊间负 7.071A+707.1B=14.14A

鑰屽亣璁惧鏋滀綘娌℃湁杩涜娴佸姩鎬ф彁渚涳紝鎸佹湁鐨?A 鍜?B 閮藉湪涓汉閽卞寘閲屾斁鐫€锛岄偅涔堜綘鐜板湪杩樻槸鎷ユ湁 10A+500B=15A

浣犵殑鏃犲父鎹熷け涓猴細

15A-14.14A=0.86A

鍥犳锛屽彲浠ュ彂鐜帮紝鍥犱负浣犳彁渚涗簡娴佸姩鎬э紝浠e竵瀵逛环鏍兼尝鍔ㄥ悗锛屼綘鐨勮祫浜т环鍊煎弽鑰岀缉姘翠簡銆傚綋鐒朵簡锛屽洜涓虹殑娴佸姩鎬т腑鍋氬競鍟嗗彲浠ユ敹鍙栨墜缁垂锛屾墜缁垂鏄惁鑳借窇璧㈡棤甯告崯澶卞氨鏄竴涓湭鐭ユ暟浜嗐€?/p>

鏈枃绱犳潗鏉ユ簮锛?/strong>

銆奤niswap 涓婄殑鏃犲父鎹熷け璁$畻銆?鐜嬪績鐜?/p>

https://news.huoxing24.com/20201014121625230356.html

銆婄鏅細鍒板簳浠€涔堟墠鏄棤甯告崯澶憋紒銆?瀹濅簩鐖?/p>

https://baijiahao.baidu.com/s?id=1679406785176472238饾敶=spider&for;=pc

閫兼垜瀛︿細 DeFi 鐨勫熀鏈暟瀛?APY 鍜屾棤甯告崯澶辫绠楋紙闄勪竾鑳藉叕寮忥級

https://bihu.com/article/1462342870

銆怐eFi 鐜╁蹇呰-鏃犲父鎹熷け鐨勮绠椼€?/p>

https://www.yuque.com/idefi/tutorial/impermanent

留言与评论(共有 条评论)
验证码: