以太坊價格 以太坊價格
Ctrl+D 以太坊價格
ads
首頁 > PEPE > Info

ICE:Curve 穩定幣設計白皮書(中英文參照版本)

Author:

Time:1900/1/1 0:00:00

作者:MichaelEgorov,CurveFinance

編譯:JamesX,iZUMiResearch

Overview

Thedesignofthestablecoinhasfewconcepts:lending-liquidatingammalgorithm(LLAMMA),PegKeeper,MonetaryPolicyarethemostimportantones.ButthemainideaisinLLAMMA:replacingliquidationswithaspecial-purposeAMM.

這個穩定幣的設計中有幾個概念是最重要的:借貸-清算AMM算法,PegKeeper,貨幣政策。但主要的設計點是在LLAMMA:用一個特殊用途的AMM代替傳統超額抵押借貸的清算流程。

Figure2:Dependenceofthelossonthepriceshiftrelativetotheliquidationthreshold.Timewindowfortheobservationis3days

圖2:損失對相對于清算閾值的價格變動的依賴性。觀察的時間窗口為3天

Inthisdesign,ifsomeoneborrowsagainstcollateral,evenatliquidationthreshold,andthepriceofcollateraldipsandbounces-nosignificantlosshappen.Forexample,accordingtosimulationsusinghistoricdataforETH/USDsinceSep2017,ifoneleavestheCDPunattendedfor3daysandduringthistimethepricedropof10%belowtheliquidationthresholdhappened-only1%ofcollateralgetslost.

在這種設計中,如果有人用抵押品借款,即使是在清算閾值,抵押品的價格下跌后反彈--也不會發生明顯的損失。例如,根據自2017年9月以來使用ETH/USD的歷史數據進行的模擬,如果放著CDP無人看管3天,在此期間,價格下跌至低于清算價格10%的情況發生的話,也只有1%的抵押品被損失。

AMMforcontinuousliquidation/deliquidation(LLAMMA)

持續清算/無需清算的AMM

ThecoreideaofthestablecoindesignisLending-LiquidatingAMMAlgorithm.Theideaisthatitconvertsbetweencollateral(forexample,ETH)andthestablecoin(let’scallitUSDhere).Ifthepriceofcollateralishigh-auserhasdepositsallinETH,butasitgoeslower,itconvertstoUSD.ThisisverydifferentfromtraditionalAMMdesignswhereonehasUSDontopandETHonthebottominstead.

穩定幣設計的核心思想是Lending-LiquidatingAMM算法。這個想法是,它在抵押品和穩定幣之間進行轉換。如果抵押品的價格很高--用戶的存款都是ETH,但當價格降低時,它就會轉換為USD穩定幣。這與傳統的AMM設計有很大不同,傳統的AMM設計是將USD穩定幣放在上面,ETH放在下面。

Thebelowdescriptiondoesn’tserveasfullyself-consistentrigorousproofs.Alotofthat(especiallytheinvariant)areobtainedfromdimensionalconsiderations.Moreresearchmightberequiredtohaveafullmathematicaldescription,howeverthebelowisbelievedtobeenoughtoimplementinpractice.

Curve在Arbitrum推出兩個資金池,包含一個三池和一個二池:9月14日消息,穩定幣兌換平臺Curve核心團隊成員Charlie Watkins在推特上表示,已在以太坊擴容方案Arbitrum上推出一個包含資產USDT/ETH/WBTC的三池,和一個包含資產USDT/USDC的二池,CRV獎勵將在周三的DAO投票中提議。[2021/9/14 23:23:25]

下面的描述并不能作為一個完全自洽的嚴謹證明。很多東西都是從各種維度考慮得到的。要有一個完整的數學描述,可能需要更多的研究,然而下面的描述被認為足以支持在智能合約中實施。

Thisisonlypossiblewithanexternalpriceoracle.Inanutshell,ifonemakesatypicalAMM(forexamplewithabondingcurvebeingapieceofhyperbola)andrampsits“centerprice”from(forexample)downtoup,thetokenswilladiabaticallyconvertfrom(forexample)USDtoETHwhileprovingliquidityinbothwaysontheway(Fig.3).Itissomewhatsimilartoavoidedcrossing(alsocalledLandau-Zenertransition)inquantumphysics(thoughonlyasanidea:mathematicaldescriptionoftheprocesscouldbeverydifferent).Therangewheretheliquidityisconcentratediscalledbandhere,attheconstantpobandhasliquidityfrompcdtopcu.Weseekforpcd(po)andpcu(po)beingfunctionsofpoonly,functionsbeingmoresteepthanlinearand,hence,growingfasterthanpo(Fig.4).Inaddition,let’sdefifinepricesp↓andp↑beingpriceswherep↓(po)=po,andp↑(po)=po,definingendsofbandsinadiabaticlimit(e.g.p=po).

這只有通過外部預言機喂價才能實現。簡而言之,如果一個人做了一個典型的AMM,并將其"中心價格"從下降到上升,代幣將從USD“絕熱”地轉換為ETH,同時在過程中提供兩種方式的流動性。這有點類似于量子物理學中的“回避交叉”。

流動性集中的范圍在這里被稱為“波段”,在恒定的po波段有從pcd到pcu的流動性。我們尋求pcd(po)和pcu(po)只作為po的函數,函數比線性更陡峭,因此,增長速度比po快。此外,讓我們把價格p↓和p↑定義為p↓(po)=po和p↑(po)=po的價格,定義為絕熱極限中的波段兩端。

Figure3:Behaviorofan“AMMwithanexternalpricesource”.Externalpricepcenterdeterminesapricearoundwhichliquidityisformed.AMMsupportsliquidityconcentratedfrompricespcdtopcu,pcd<pcenter<pcu.Whencurrentpricepisoutofrangebetweenpcdandpcu,AMMiseitherfullyinstablecoin(whenatpcu)orfullyincollateral(whenatpcd).Whenpcd≤p≤pcu,AMMpriceisequaltothecurrentpricep.

Figure4:AMMwhichwesearchfor.WeseektoconstructanAMMwherepcdandpcuaresuchfunctionsofpothatwhenpogrows,theygrowevenfaster.Inthiscase,thisAMMwillbeallinETHwhenETHisexpensive,andallinUSDwhenETHischeap.

MakerDao社區發起提案,建議添加Curve stETH-ETH LP為抵押品:官方消息,MakerDao社區發起提案,建議添加Curve stETH-ETH LP為抵押品。[2021/9/9 23:12:40]

Westartfromanumberofbandswhere,similarlytoUniswap3,hyperbolicshapeofthebondingcurveispreservedbyaddingvirtualbalances.Letsay,theamountofUSDisx,andtheamountofETHisy,thereforethe“amplifified”constant-productinvariantwouldbe:

我們從一些波段開始,與Uniswap3類似,通過增加“虛擬余額”,保留了粘合曲線的雙曲形狀。比方說,USD的數量是x,ETH的數量是y,因此"增強的"常數-產品不變性將是:

Wealsocandenotex0≡x?+?fandy0≡y+gsothattheinvariantcanbewrittenasafamiliarI=?x0y0.However,fandgdonotstayconstant:theychangewiththeexternalpriceoracle(andsodoestheinvariantI,soitisonlytheinvariantwhiletheoraclepricepoisunchanged).Atagivenpo,fandgareconstantacrosstheband.Asmentionedbefore,wedenotep↑asthetoppriceofthebandandp↓asthebottompriceoftheband.WedefifineA(ameasureofconcentrationofliquidity)insuchawaythat:

我們也可以表示x0≡x+f和y0≡y+g,這樣不變式就可以寫成熟悉的I=x0y0。然而,f和g并不是保持不變的:它們隨著外部預言機價格的變化而變化。在給定的po下,f和g在整個波段內是不變的。如前所述,我們把p↑表示為波段的頂部價格,p↓表示為波段的底部價格。我們對A的定義是這樣的:

Thepropertywearelookingforissuchthathigherpriceposhouldleadtoevenhigherpriceatthesamebalances,sothatthecurrentmarketprice(whichwill,onaverage,followpo)islowerthanthat,andthebandwilltradetowardsbeingallinETH(andtheoppositeisalsotruefortheotherdirection).Itispossibletofindmanywaystosatisfythatbutweneedone:

我們正在尋找的屬性是這樣的:更高的價格po應該導致在相同的余額下更高的價格,因此,當前的市場價格低于這個價格,并且波段將朝著全部為ETH的方向交易。可以找到很多方法來滿足,但我們需要這樣一個:

wherey0isap0-dependentmeasureofdepositsinthecurrentband,denominatedinETH,defifinedinsuchawaythatwhencurrentpricep,p↑andpoareequaltoeachother,theny=y0andx=0(seethepointatpo=p↑onFig.4).Thenifwesubstituteyatthatmoment:

其中y0是一個與p0相關的衡量當前波段存款的指標,以ETH為單位,其定義是:當當前價格p、p↑和po相互相等時,則y=y0,x=0。那么,如果我們把那一刻的y替換掉:

Cryptocurrency Checkout已與Ergo公鏈達成合作接受ERG和SigmaUSD:據官方消息,近日,支付網關Cryptocurrency Checkout已跟Ergo公鏈平臺達成合作,已將Ergo公鏈平臺原生代幣ERG和算法穩定幣SigmaUSD接入Cryptocurrency Checkout。借助此網關,Woo Commence、WORDPRESS等商店以及YouTube、Twitter和Facebook等社交媒體平臺可隨時接受ERG和SigmaUSD支付和捐贈。除了ERG和SigmaUSD之外,Cryptocurrency Checkout業已接受比特幣、以太坊、萊特幣等多種加密貨幣。[2021/5/9 21:40:10]

Priceisequaltodx0/dy0whichthenforaconstant-productinvariantis:

價格等于dx0/dy0,那么對于一個恒定的產品不變量來說,就是:

Onecansubstitutesituationswherepo=p↑orpo=p↓withx=0ory=0correspndinglytoverifythattheaboveformulasareself-consistent.

我們可以用x=0或y=0來代替po=p↑或po=p↓的情況,以驗證上述公式是自洽的。

Typicallyforaband,weknowp↑and,hence,p↓,po,constantA,andalsoxandy(currentdepositsintheband).Tocalculateeverything,weneedtofindyo.Itcanbefoundbysolvingthequadraticequationfortheinvariant:

通常對于一個波段,我們知道p↑,因此也知道p↓、po、常數A,還有x和y。為了計算剩下的一切,我們需要找到yo。它可以通過解決不變量的二次方程來找到:

whichturnsintothequadraticequationagainstyo:

這就變成了針對yo的二次方程:

Inthesmartcontract,wesolvethisquadraticequationinget_y0function.

在智能合約中,我們在get_y0函數中解決這個二次方程。

Whileoraclepricepostaysconstant,theAMMworksinanormalway,e.g.sellsETHwhengoingup/buysETHwhengoingdown.Bysimplysubstitutingx=0forthe“currentdown”pricepcdory=0forthe“currentup”pricepcuvaluesintotheequationoftheinvariantrespectively,itispossibletoshowthatAMMpricesatthecurrentvalueofpoandthecurrentvalueofp↑are:

在預言機價格po保持不變的情況下,AMM以正常的方式工作,例如,上漲時賣出ETH/下跌時買入ETH。通過簡單地將x=0替換為"當前下跌"的價格pcd或y=0替換為"當前上漲"的價格pcu值分別代入不變量方程,就可以說明在po的當前值和p↑的當前值下的AMM價格是:

Anotherpracticallyimportantquestionis:ifpricechangesupordownsoslowlythattheoraclepricepoisfullycapabletofollowitadiabatically,whatamounty↑ofETH(ifthepricegoesup)orx↓ofUSD(ifthepricegoesdown)willthebandendupwith,givencurrentvaluesxandyandthatwestartalsoatp=po.Whileit’snotanimmediatelytrivialmathematicalproblemtosolve,numericcomputationsshowedaprettysimpleanswer:

動態 | 日本加密交易所DeCurret開通在線KYC功能:2月25日,虛擬貨幣交易所DeCurret運營公司導入了在線完成KYC的“智能手機eKYC”功能,采用了Liquid公司提供的“Liquid eKYC”。通過智能手機APP申請eKYC后,最短第二天就可以開戶,而不需要郵寄本人確認的明信片。(Crypto.Watch)[2020/2/25]

另一個重要的實際問題是:如果價格的變化如此緩慢,以至于預言機價格po完全能夠”絕熱地”跟隨它,那么在給定當前值x和y,并且我們也從p=po開始的情況下,這個波段最終會得到多少y↑的ETH或x↓的USD。雖然這不是一個立即可以解決的數學問題,但數字計算顯示了一個相當簡單的答案:

WewillusetheseresultswhenevaluatingsafetyoftheloanaswellasthepotentiallossesoftheAMM.

在評估借貸的安全性以及AMM的潛在損失時,我們將使用這些結果。

Nowwehaveadescriptionofoneband.Wesplitallthepricespaceintobandswhichtoucheachotherwithpricesp↓andp↑sothatifwesetabasepricepbaseandhaveabandnumbern:

現在我們有了對一個波段的描述。我們把所有的價格空間分成若干波段,這些波段的價格p↓和p↑相互接觸,因此,如果我們設定一個基礎價格pbase,并有一個波段號n:

ItispossibletoprovethatthesolutionofEq.7andEq.5foranybandgives:

對于任何一個波段,可以證明公式7和公式5的解都可以得到:

whichshowsthattherearenogapsbetweenthebands.

這表明波段之間沒有空隙。

TradesoccurwhilepreservingtheinvariantfromEq.1,howeverthecurrentpriceinsidetheAMMshiftswhenthepricepo:itgoesupwhenpogoesdownandviceversacubically,ascanbeseenfromEq.8.

交易發生的同時保留了公式1的不變性,然而,當價格為po時,AMM內部的當前價格會發生變化:當po下降時,它就會上升,反之亦然,從公式8可以看出。

LLAMMAvsStablecoin

StablecoinisaCDPwhereoneborrowsstablecoinagainstavolatilecollateral(cryptocurrency,forexample,againstETH).ThecollateralisloadedintoLLAMMAinsuchapricerange(suchbands)thatifpriceofcollateralgoesdownrelativelyslowly,theETHgetsconvertedintoenoughstablecointocoverclosingtheCDP(whichcanhappenviaaself-liquidation,orviaanexternalliquidationifthecoverageistooclosetodangerouslimits,ornotcloseatallwhilewaitingforthepricebounce).

穩定幣是一種CDP,人們以不穩定的抵押品來借入穩定幣。抵押品被加載到LLAMMA的價格范圍內,如果抵押品的價格下降相對緩慢,ETH被轉換成足夠的穩定幣來覆蓋關閉CDP。

Whenauserdepositscollateralandborrowsastablecoin,theLLAMMAsmartcontractcalculatesthebandswheretolocatethecollateral.?Whenthepriceofthecollateralchanges,itstartsgettingconvertedtothestablecoin.Whenthesystemis“underwater”,useralreadyhasenoughUSDtocovertheloan.Theamountofstablecoinswhichcanbeobtainedcanbecalculatedusingapublicget_x_downmethod.Ifitgivesvaluestooclosetotheliquidationthresholds-anexternalliquidatorcanbeinvolved(typicallyshouldn’thappenwithinafewdaysorevenweeksafterthecollateralpricewentdownandsideways,orevenwillnothappeneverifcollateralpricenevergoesuporgoesbackuprelativelyquickly).Ahealthmethodreturnsaratioofget_x_downtodebtplusthevalueincreaseincollateralwhenthepriceiswellabove“liquidation”.

動態 | 在線銀行Current獲得Galaxy Digital等公司投資2000萬美元:在線銀行Current已從Galaxy Digital的EOS風投基金、資產管理公司Wellington Management Company和CUNA Mutual Group的風險投資部門CMFG Ventures處獲得了2000萬美元的投資。據悉,該在線銀行支持由應用程序控制的預付借記卡和父母監督的個人支票賬戶。(cointelegraph)[2019/10/25]

當用戶存入抵押品并借入一個穩定幣時,LLAMMA智能合約會計算出抵押品所在的波段。當抵押品的價格變化時,它開始被轉換為穩定幣。當系統處于"水下"時,用戶已經有足夠的USD來支付貸款。可以獲得的穩定幣數量可以通過一個公共的get_x_down方法來計算。如果它給出的數值過于接近清算閾值--外部清算人可以參與進來。當價格遠高于"清算"時,一個健康的方法會返回get_x_down與債務的比率,再加上抵押品的價值增加。

Whenastablecoinchargesinterest,thisshouldbereflectedintheAMM,too.Thisisdonebyadjustingallthegridofprices.So,whenastablecoinchargesinterestrater,allthegridofpricesintheAMMshiftsupwardswiththesameraterwhichisdoneviaabase_pricemultiplier.So,themultipliergoesupovertimeaslongasthechargedrateispositive.

當一個穩定幣收取利息時,這應該反映在AMM中。也要反映出來。這是通過調整價格的所有網格來實現的。因此,當一個穩定幣收取利率r時,AMM中的所有價格格都會向上移動,與相同的利率r,這是通過一個基礎價格乘數完成的。所以,只要收取的利率是正的,乘數會隨著時間的推移而上升。

Whenwecalculateget_x_downorget_y_up,wearefirstlookingfortheamountsofstablecoinandcollateralx?andy?ifcurrentpricemovestothecurrentpricepo.Thenwelookathowmuchstablecoinorcollateralwegetifpoadiabaticallychangestoeitherthelowestpriceofthelowestband,orthehighestpriceofthehighestbandrespectively.Thisway,wecangetameasureofhowmuchstablecoinwewillwhichisnotdependentonthecurrentinstantaneousprice,whichisimportantforsandwichattackresistance.

當我們計算get_x_down或get_y_up時,我們首先要找的是如果當前價格移動到當前價格po的穩定幣和抵押品x?和y?的數量。然后我們看一下,如果po絕熱地變化到最低區間的最低價格,或最高區間的最高價格,我們分別得到多少穩定幣或抵押品。這樣,我們就可以得到一個衡量我們將獲得多少穩定幣的標準,它不依賴于當前的瞬時價格,這對夾層攻擊的阻力很重要。****

ItisimportanttopointoutthattheLLAMMAusespodefinedasETH/USDpriceasapricesource,andourstablecoincouldbetradedunderthepeg(ps<1)oroverpeg(ps>1).Ifps<1,thenpriceintheLLAMMAisp>po.

需要指出的是,LLAMMA使用定義為ETH/USD價格的po作為價格來源,我們的穩定幣可以在掛鉤之下或超過掛鉤進行交易。如果ps<1,那么LLAMMA中的價格就是p>po。

Inadiabaticapproximation,p=po/ps,andallthecollateral<>stablecoinconversionwouldhappenatahigheroracleprice/asiforaclepricewaslowerandequalto:

在絕熱近似中,p=po/ps,所有抵押品<>穩定幣的轉換將發生在較高的預言機價格上/就像預言機價格較低且等于:

Atthisprice,theamountofstablecoinsobtainedatconversionishigherbyfactorof1/ps(ifps<1).

在這個價格下,轉換時獲得的穩定幣的數量要高出1/ps的系數。

Itislessdesirabletohaveps>1forprolongedtimes,andforthatwewillusethestabilizer(seenext)

在長時間內,ps>1是不太理想的,為此我們將使用穩定器。

AutomaticStabilizerandMonetaryPolicy

自動穩定器和貨幣政策

Whenps>1(forexample,becauseoftheincreaseddemandforstablecoin),thereispeg-keepingreserveformedbyanasymmetricdepositintoastableswapCurvepoolbetweenthestablecoinandaredeemablereferencecoinorLPtoken.Onceps>1,thePegKeepercontractisallowedtomintuncollateralizedstablecoinand(only!)depositittothestableswappoolsingle-sidedinsuchawaythatthefinalpriceafterthisisstillnolessthan1.Whenps<1,thePegKeeperisallowedtowithdraw(asymmetrically)andburnthestablecoin.

當ps>1時,就會有錨定的儲備,由穩定幣和可贖回的參考幣或LP代幣之間的不對稱存款到stableswapCurve池形成。一旦ps>1,PegKeeper合約被允許鑄造無抵押的穩定幣,并且只將其單邊存入stableswap池,這樣做之后的最終價格仍然不低于1。當ps<1時,PegKeeper被允許提取并燒毀穩定幣。

Theseactionscausepricepstoquicklydepreciatewhenit’shigherthan1andappreciateiflowerthan1becauseasymmetricdepositsandwithdrawalschangetheprice.Eventhoughthemintisuncollateralized,thestablecoinappearstobeimplicitlycollateralizedbyliquidityinthestablecoinpool.Thewholemint/burncycleappears,attheend,tobeprofitablewhileprovidingstability.

這些行為導致價格ps高于1時迅速貶值,低于1時升值,因為不對稱的存款和提款改變了價格。即使這部分“鑄幣”是沒有抵押的,但穩定幣似乎是由穩定幣池中的流動性隱性抵押支持的。整個鑄幣/燃燒周期在最后似乎是有利可圖的,同時提供了穩定性。

Let’sdenotetheamountofstablecoinmintedtothestabilizer(debt)asdstandthefunctionwhichcalculatesnecessaryamountofredeemableUSDtobuythestablecoininastableswapAMMget_dxasfdx().Then,inordertokeepreservesnotverylarge,weusethe“slow”mechanismofstabilizationviavaryingtheborrowr:

讓我們把鑄造給穩定器的穩定幣數量表示為dst,把計算在stableswapAMMget_dx中購買穩定幣所需的可贖回USD數量的函數表示為fdx。然后,為了保持“儲備”不是非常大,我們通過改變借款r來使用"緩慢"的穩定機制。

wherehisthechangeinpsatwhichtheraterchangesbyfactorof2(higherpsleadstolowerr).Theamountofstabilizerdebtdstwillequilibrateatdifferentvaluedependingontherateatps=1r0.Therefore,wecan(insteadofsettingmanually)bereducingr0whiledst/supplyislargerthansometargetnumber(forexample,5%)(therebyincentivizingborrowerstoborrow-and-dumpthestablecoin,decreasingitspriceandforcingthesystemtoburnthedst)orincreasingifit’slower(therebyincentivizingborrowerstoreturnloansandpushingpsup,forcingthesystemtoincreasethedebtdstandthestabilizerdeposits).

其中h是ps的變化,速率r的變化為2倍。穩定器債務dst的數量將根據ps=1r0的速率在不同的值上平衡。因此,我們可以在dst/supply大于某個目標數字時減少r0,或者在它較低時增加。

Conclusion/總結

Thepresentedmechanismscan,hopefully,solvetheriskinessofliquidationsforstablecoin-makingandborrowingpurposes.Inaddition,stabilizerandautomaticmonetarypolicymechanismscanhelpwithpeg-keepingwithouttheneedofkeepingoverlybigPSMs.

希望所提出的機制能夠解決為制造穩定幣和借貸目的而進行清算的風險性。此外,穩定器和自動貨幣政策機制可以幫助保持價格錨定,而不需要保持過大的PSM。

Tags:THEANDICERICETHEPEPEZen Panda CoinICEBRK幣Frax Price Index

PEPE
ITT:趙長鵬:將繼續為馬斯克收購 Twitter 提供資金支持

幣安首席執行官趙長鵬周二在FutureInvestmentInitiative大會上表示會兌現承諾,將為馬斯克以440億美元收購Twitter的計劃提供資金支持.

1900/1/1 0:00:00
LOC:The Block 創始人:在 2021 年已賣掉公司,FTX 崛起過程中未參與業務

TheBlock創始人MikeDudas對SuZhu指責他攔下了關于Alameda的負面報道進行回應,他表示在2021年就賣掉了TheBlock.

1900/1/1 0:00:00
比特幣:晚報 | 幣安計劃賣出賬面上的所有 FTT; Alameda 和 FTX 正為熱錢包補給

整理:念青,鏈捕手 “過去24小時都發生了哪些重要事件”?1、Alameda回應“資不抵債”傳言:另有逾100億美元資產未列出.

1900/1/1 0:00:00
ANK:福布斯:盤點 SBF 的資產現狀

編譯:倩雯,ChainCatcherSBF的身價是多少?一年前,根據《福布斯》的統計,SBF身價高達265億美元。一個星期前,是171億美元.

1900/1/1 0:00:00
SUSHI:SushiSwap 提議建立 Meiji DAO,使用不可轉讓的股票進行治理投票

據TheBlock報道,SushiSwap正在討論一個新的提案,旨在建立一個名為Meiji的DAO,并考慮在Sushi治理投票中使用不可轉讓的“股票”.

1900/1/1 0:00:00
WOR:公鏈 Sei 發布白皮書:引入 Twin-Turbo 共識和并行化 Cosmos 鏈

公鏈SeiNetwork發布白皮書,“在協議級別,Sei利用Twin-Turbo共識和并行化來提高性能,Sei還擁有一個本地訂單匹配引擎,以及進行重大的協議改進.

1900/1/1 0:00:00
ads