mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 06:25:51 +00:00
deploy: e7a7bb83c1
This commit is contained in:
@@ -324,7 +324,7 @@ $(function() {
|
||||
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> <span class="comment">// Check if either of the assets is frozen, AMMDeposit is not allowed</span></div>
|
||||
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> <span class="comment">// if either asset is frozen</span></div>
|
||||
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> <span class="keyword">auto</span> checkAsset = [&](<a class="code hl_class" href="classripple_1_1Issue.html">Issue</a> <span class="keyword">const</span>& asset) -> <a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a> {</div>
|
||||
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> ter = <a class="code hl_function" href="namespaceripple.html#a3e046f4b7ab06562107485513edb7098">requireAuth</a>(ctx.<a class="code hl_variable" href="structripple_1_1PreclaimContext.html#a05d5cf6207c1127c25dcd7c3f763b9c5">view</a>, asset, accountID))</div>
|
||||
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> ter = <a class="code hl_function" href="namespaceripple.html#a16b466cc38b73c15e032e268db4c4de7">requireAuth</a>(ctx.<a class="code hl_variable" href="structripple_1_1PreclaimContext.html#a05d5cf6207c1127c25dcd7c3f763b9c5">view</a>, asset, accountID))</div>
|
||||
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> {</div>
|
||||
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> JLOG(ctx.<a class="code hl_variable" href="structripple_1_1PreclaimContext.html#aeb55565e34b187925992ba6c2f4a1d98">j</a>.<a class="code hl_function" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>())</div>
|
||||
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> << <span class="stringliteral">"AMM Deposit: account is not authorized, "</span> << asset;</div>
|
||||
@@ -362,7 +362,7 @@ $(function() {
|
||||
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> <span class="comment">// Account is not authorized to hold the assets it's depositing,</span></div>
|
||||
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> <span class="comment">// or it doesn't even have a trust line for them</span></div>
|
||||
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> <span class="keyword">const</span> ter =</div>
|
||||
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> <a class="code hl_function" href="namespaceripple.html#a3e046f4b7ab06562107485513edb7098">requireAuth</a>(ctx.<a class="code hl_variable" href="structripple_1_1PreclaimContext.html#a05d5cf6207c1127c25dcd7c3f763b9c5">view</a>, amount->issue(), accountID))</div>
|
||||
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> <a class="code hl_function" href="namespaceripple.html#a16b466cc38b73c15e032e268db4c4de7">requireAuth</a>(ctx.<a class="code hl_variable" href="structripple_1_1PreclaimContext.html#a05d5cf6207c1127c25dcd7c3f763b9c5">view</a>, amount->issue(), accountID))</div>
|
||||
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> {</div>
|
||||
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> <span class="comment">// LCOV_EXCL_START</span></div>
|
||||
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> JLOG(ctx.<a class="code hl_variable" href="structripple_1_1PreclaimContext.html#aeb55565e34b187925992ba6c2f4a1d98">j</a>.<a class="code hl_function" href="classbeast_1_1Journal.html#a556228cb60bcf405c225d3f64b7b01ae">debug</a>())</div>
|
||||
@@ -1081,13 +1081,13 @@ $(function() {
|
||||
<div class="ttc" id="anamespaceripple_html_a0a4a286d1662cbca7a134981b70e65b6"><div class="ttname"><a href="namespaceripple.html#a0a4a286d1662cbca7a134981b70e65b6">ripple::invalidAMMAmount</a></div><div class="ttdeci">NotTEC invalidAMMAmount(STAmount const &amount, std::optional< std::pair< Issue, Issue > > const &pair=std::nullopt, bool validZero=false)</div><div class="ttdoc">Validate the amount.</div><div class="ttdef"><b>Definition:</b> <a href="AMMCore_8cpp_source.html#l00095">AMMCore.cpp:95</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a0ad557cc32ca87dcea19af8e30c63c6a"><div class="ttname"><a href="namespaceripple.html#a0ad557cc32ca87dcea19af8e30c63c6a">ripple::divide</a></div><div class="ttdeci">STAmount divide(STAmount const &amount, Rate const &rate)</div><div class="ttdef"><b>Definition:</b> <a href="Rate2_8cpp_source.html#l00093">Rate2.cpp:93</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a0ed77e69d4873a1bb710b5a0d510bcd2"><div class="ttname"><a href="namespaceripple.html#a0ed77e69d4873a1bb710b5a0d510bcd2">ripple::adjustAssetInByTokens</a></div><div class="ttdeci">std::pair< STAmount, STAmount > adjustAssetInByTokens(Rules const &rules, STAmount const &balance, STAmount const &amount, STAmount const &lptAMMBalance, STAmount const &tokens, std::uint16_t tfee)</div><div class="ttdef"><b>Definition:</b> <a href="AMMHelpers_8cpp_source.html#l00349">AMMHelpers.cpp:349</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a16b466cc38b73c15e032e268db4c4de7"><div class="ttname"><a href="namespaceripple.html#a16b466cc38b73c15e032e268db4c4de7">ripple::requireAuth</a></div><div class="ttdeci">TER requireAuth(ReadView const &view, Issue const &issue, AccountID const &account, AuthType authType)</div><div class="ttdoc">Check if the account lacks required authorization.</div><div class="ttdef"><b>Definition:</b> <a href="View_8cpp_source.html#l02301">View.cpp:2301</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a17a9a9b903b66e49f5413d82ce79f085a852cabbbe21a9b4d63aff777eceab2fd"><div class="ttname"><a href="namespaceripple.html#a17a9a9b903b66e49f5413d82ce79f085a852cabbbe21a9b4d63aff777eceab2fd">ripple::fhZERO_IF_FROZEN</a></div><div class="ttdeci">@ fhZERO_IF_FROZEN</div><div class="ttdef"><b>Definition:</b> <a href="View_8h_source.html#l00078">View.h:78</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a17a9a9b903b66e49f5413d82ce79f085a91e3c4f8089025c7ecf66dd62b822d90"><div class="ttname"><a href="namespaceripple.html#a17a9a9b903b66e49f5413d82ce79f085a91e3c4f8089025c7ecf66dd62b822d90">ripple::fhIGNORE_FREEZE</a></div><div class="ttdeci">@ fhIGNORE_FREEZE</div><div class="ttdef"><b>Definition:</b> <a href="View_8h_source.html#l00078">View.h:78</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a20d30277b9c78756b3d14493055a307c"><div class="ttname"><a href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">ripple::isXRP</a></div><div class="ttdeci">bool isXRP(AccountID const &c)</div><div class="ttdef"><b>Definition:</b> <a href="AccountID_8h_source.html#l00090">AccountID.h:90</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a29c200b51e582524768ea6a9f3d9b279"><div class="ttname"><a href="namespaceripple.html#a29c200b51e582524768ea6a9f3d9b279">ripple::isIndividualFrozen</a></div><div class="ttdeci">bool isIndividualFrozen(ReadView const &view, AccountID const &account, Currency const &currency, AccountID const &issuer)</div><div class="ttdef"><b>Definition:</b> <a href="View_8cpp_source.html#l00215">View.cpp:215</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a308162f4d3c7b3c005ee6907ab576da1"><div class="ttname"><a href="namespaceripple.html#a308162f4d3c7b3c005ee6907ab576da1">ripple::getTradingFee</a></div><div class="ttdeci">std::uint16_t getTradingFee(ReadView const &view, SLE const &ammSle, AccountID const &account)</div><div class="ttdoc">Get AMM trading fee for the given account.</div><div class="ttdef"><b>Definition:</b> <a href="AMMUtils_8cpp_source.html#l00179">AMMUtils.cpp:179</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a3d22714f28b806ea5c702eba2db5fbc2"><div class="ttname"><a href="namespaceripple.html#a3d22714f28b806ea5c702eba2db5fbc2">ripple::solveQuadraticEq</a></div><div class="ttdeci">Number solveQuadraticEq(Number const &a, Number const &b, Number const &c)</div><div class="ttdoc">Positive solution for quadratic equation: x = (-b + sqrt(b**2 + 4*a*c))/(2*a)</div><div class="ttdef"><b>Definition:</b> <a href="AMMHelpers_8cpp_source.html#l00264">AMMHelpers.cpp:264</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a3e046f4b7ab06562107485513edb7098"><div class="ttname"><a href="namespaceripple.html#a3e046f4b7ab06562107485513edb7098">ripple::requireAuth</a></div><div class="ttdeci">TER requireAuth(ReadView const &view, Issue const &issue, AccountID const &account)</div><div class="ttdoc">Check if the account lacks required authorization.</div><div class="ttdef"><b>Definition:</b> <a href="View_8cpp_source.html#l02301">View.cpp:2301</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a5401fd4c42f637dc456a79af094a960d"><div class="ttname"><a href="namespaceripple.html#a5401fd4c42f637dc456a79af094a960d">ripple::tfLimitLPToken</a></div><div class="ttdeci">constexpr std::uint32_t tfLimitLPToken</div><div class="ttdef"><b>Definition:</b> <a href="TxFlags_8h_source.html#l00214">TxFlags.h:214</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a573eb2cecf652856fc74fb1dfbaf8c2a"><div class="ttname"><a href="namespaceripple.html#a573eb2cecf652856fc74fb1dfbaf8c2a">ripple::ammAssetIn</a></div><div class="ttdeci">STAmount ammAssetIn(STAmount const &asset1Balance, STAmount const &lptAMMBalance, STAmount const &lpTokens, std::uint16_t tfee)</div><div class="ttdoc">Calculate asset deposit given LP Tokens.</div><div class="ttdef"><b>Definition:</b> <a href="AMMHelpers_8cpp_source.html#l00080">AMMHelpers.cpp:80</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a5c4fa33b0b13deab58e07744afe0f7ed"><div class="ttname"><a href="namespaceripple.html#a5c4fa33b0b13deab58e07744afe0f7ed">ripple::ammEnabled</a></div><div class="ttdeci">bool ammEnabled(Rules const &)</div><div class="ttdoc">Return true if required AMM amendments are enabled.</div><div class="ttdef"><b>Definition:</b> <a href="AMMCore_8cpp_source.html#l00129">AMMCore.cpp:129</a></div></div>
|
||||
|
||||
Reference in New Issue
Block a user