// Numbas version: finer_feedback_settings {"name": "Audyt zaokr\u0105glenia w d\u00f3\u0142 w convertToShares ERC-4626", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Audyt zaokr\u0105glenia w d\u00f3\u0142 w convertToShares ERC-4626", "tags": ["blockchain", "ERC-4626", "Ethereum", "integer arithmetic", "rounding", "tokenized vaults"], "metadata": {"description": "
Deterministyczne \u0107wiczenie o zaokr\u0105glaniu w dó\u0142 w convertToShares zgodnie z ERC-4626, oparte na dok\u0142adnej arytmetyce ca\u0142kowitej i hipotetycznym stanie skarbca.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "Hipotetyczny skarbiec ERC-4626 zarz\u0105dza 1 000 003 jednostkami aktywa i ma totalSupply równy 800 000 udzia\u0142ów. W tym \u0107wiczeniu jego idealna konwersja proporcjonalna jest zdefiniowana jako convertToShares(assets) = floor(assets × totalSupply / totalAssets). Ile udzia\u0142ów zwróci convertToShares(123 456)?
", "advice": "Rozwi\u0105zanie
\nIloczyn wynosi 123 456 × 800 000 = 98 764 800 000. Dzielenie ca\u0142kowite przez 1 000 003 daje iloraz 98 764 i reszt\u0119 503 708. ERC-4626 wymaga, aby convertToShares zaokr\u0105gla\u0142o w dó\u0142, wi\u0119c wynikiem jest 98 764 udzia\u0142ów. Nie nale\u017cy zaokr\u0105gla\u0107 do najbli\u017cszej liczby.
\n\u0179ród\u0142o pierwotne
\n\nNiezale\u017cny materia\u0142 edukacyjny przygotowany przez Mushegha Manukyana, Founder & CEO ARMCP. CC BY 4.0. To nie jest porada inwestycyjna.
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "Liczba udzia\u0142\u00f3w", "marks": "10", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "Podaj liczb\u0119 udzia\u0142ów jako liczb\u0119 ca\u0142kowit\u0105.
", "minValue": "98764", "maxValue": "98764", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "98764", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false, "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}], "resources": []}]}], "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}]}