Prostitution in Overseas France were female, 20% male and 50% transsexual (known as "raerae"). When Captain Samuel Wallis discovered Tahiti in 1767, he traded with the islanders for fresh provisions. The Polynesians had no source of iron, and the women sold sex for nails. Wallis had to ban shore leave for the crew for fear of the ship collapsing as so many nails had been removed from the structure. When Captain Cook arrived in 1769, the price had risen from one nail to three nails. By the time of Cook's 3rd visit in 1774, the currency had changed from nails to European clothes and
Tahiti island. In 1819, Pōmare II, encouraged by the missionaries, introduced the first Tahitian legal code, known under the name of the Pōmare Legal Code, which consists of nineteen laws. The missionaries and Pōmare II thus imposed a ban on nudity (obliging them to wear clothes covering their whole body), banned dances and chants, described as immodest, tattoos and costumes made of flowers. In the 1820s, the entire population of Tahiti converted to Protestantism. Duperrey, who berthed in Tahiti in May 1823, attests to the change in Tahitian society in a letter dated 15 May 1823: "The missionaries of the Royal