تجدر الإشارة إلى أن هذه هي نفس المكتبة التي @CetusProtocol إنشاؤها ، والتي يعتمد عليها حرفيا كل CLAMM على Sui.
الإصلاح يحول هذا الجزء المراوغ إلى حد ما:
متعة عامة فرعية (arg0: I128, arg1: I128): I128 {
let v0 = I128 {البتات: u128_neg(arg1.bits)};
إضافة (arg0 ، wrapping_add (v0 ، من (1)))
}
في الحماية المناسبة من الفائض:
متعة عامة فرعية (arg0: I128, arg1: I128): I128 {
دع v0 = wrapping_sub(arg0 ، arg1) ؛
دع v1 = sign(arg0) != sign(arg1) && sign(arg0) != sign(v0);
تاكيد! (!v1 ، 0) ؛
الخامس0
}
مجد هائل ل @bluefinapp لتأمين نظام Sui CLAMM البيئي بالكامل! هذا هو بالضبط نوع العمل الأمني الصارم الذي يفيد الجميع.
During our ongoing formal verification with our partners at @AsymptoticTech, of integer-mate – a core math library used across many Sui protocols – we identified an edge case where signed subtraction could behave incorrectly when the second operand reached its minimum possible value.
While the bug had no impact on Bluefin’s systems, the uncertainty around how others might use the library prompted us to act quickly - preparing an improved implementation with our security partners and working closely with Sui Foundation to spread the word to affected DEXs so they could fix this bug.
Thank you to everyone involved: @AsymptoticTech for the deep dive and spotting the edge case, @osec_io’s @NotDeGhost for jumping in on verification, and @SuiNetwork for leading a swift and coordinated response.
This is the kind of collaboration that sets Sui apart. Security is an ongoing commitment, and this quick identification and solve shows we're in this together.
We’ll continue investing in formal verification, architecture reviews, and ecosystem-wide coordination to raise the bar for secure and verifiable DeFi.
8.95 ألف
25
المحتوى الوارد في هذه الصفحة مُقدَّم من أطراف ثالثة. وما لم يُذكَر خلاف ذلك، فإن OKX ليست مُؤلِّفة المقالة (المقالات) المذكورة ولا تُطالِب بأي حقوق نشر وتأليف للمواد. المحتوى مٌقدَّم لأغراض إعلامية ولا يُمثِّل آراء OKX، وليس الغرض منه أن يكون تأييدًا من أي نوع، ولا يجب اعتباره مشورة استثمارية أو التماسًا لشراء الأصول الرقمية أو بيعها. إلى الحد الذي يُستخدَم فيه الذكاء الاصطناعي التوليدي لتقديم مُلخصَّات أو معلومات أخرى، قد يكون هذا المحتوى الناتج عن الذكاء الاصطناعي غير دقيق أو غير مُتسِق. من فضلك اقرأ المقالة ذات الصِلة بهذا الشأن لمزيدٍ من التفاصيل والمعلومات. OKX ليست مسؤولة عن المحتوى الوارد في مواقع الأطراف الثالثة. والاحتفاظ بالأصول الرقمية، بما في ذلك العملات المستقرة ورموز NFT، فيه درجة عالية من المخاطر وهو عُرضة للتقلُّب الشديد. وعليك التفكير جيِّدًا فيما إذا كان تداوُل الأصول الرقمية أو الاحتفاظ بها مناسبًا لك في ظل ظروفك المالية.