Minecraft wiki entry for Hero_of_the_Village, associated text: Players receive gifts‌[JE only] and discounts from villager trades while under the effect, which lasts 40 minutes. It does not affect the wandering trader's trades.